BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcRecCrystal.h File Reference
#include <iostream>
#include "CLHEP/Units/PhysicalConstants.h"
#include "CLHEP/Geometry/Point3D.h"

Go to the source code of this file.

Classes

class  EmcRecCrystal
 

Typedefs

typedef HepGeom::Point3D< double > HepPoint3D
 

Functions

ostream & operator<< (ostream &os, const EmcRecCrystal &aCrystal)
 

Typedef Documentation

◆ HepPoint3D

typedef HepGeom::Point3D<double> HepPoint3D

Definition at line 21 of file EmcRecCrystal.h.

Function Documentation

◆ operator<<()

ostream & operator<< ( ostream & os,
const EmcRecCrystal & aCrystal )

Definition at line 3 of file EmcRecCrystal.cxx.

4{
5 int i;
6 if(aCrystal.Type()==EmcRecCrystal::SixPlane()) {
7 for(i=0;i<8;i++){
8 if(i<7) {
9 os<<aCrystal.Get(i)<<endl;
10 } else {
11 os<<aCrystal.Get(i);
12 }
13 }
14 }
15 if(aCrystal.Type()==EmcRecCrystal::SevenPlane()) {
16 for(i=0;i<10;i++){
17 if(i<9) {
18 os<<aCrystal.Get(i)<<endl;
19 } else {
20 os<<aCrystal.Get(i);
21 }
22 }
23 }
24 return os;
25}
HepPoint3D Get(int index) const
static int SixPlane()
int Type() const
static int SevenPlane()