BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcRecCrystal.h File Reference
#include <iostream>
#include "CLHEP/Geometry/Point3D.h"
#include "CLHEP/Units/PhysicalConstants.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

Function Documentation

◆ operator<<()

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

Definition at line 3 of file EmcRecCrystal.cxx.

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