BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcRecCrystal.cxx File Reference
#include "EmcRecGeoSvc/EmcRecCrystal.h"

Go to the source code of this file.

Functions

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

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}