/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Emc/EmcRecGeoSvc/EmcRecGeoSvc-01-01-07/src/EmcRecCrystal.cxx File Reference

#include "EmcRecGeoSvc/EmcRecCrystal.h"

Go to the source code of this file.

Functions

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


Function Documentation

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

Definition at line 3 of file EmcRecCrystal.cxx.

References EmcRecCrystal::Get(), genRecEmupikp::i, EmcRecCrystal::SevenPlane(), EmcRecCrystal::SixPlane(), and EmcRecCrystal::Type().

00004 {
00005    int i;
00006    if(aCrystal.Type()==EmcRecCrystal::SixPlane()) {
00007       for(i=0;i<8;i++){
00008          if(i<7) {
00009             os<<aCrystal.Get(i)<<endl;
00010          } else {
00011             os<<aCrystal.Get(i);
00012          }
00013       }
00014    }
00015    if(aCrystal.Type()==EmcRecCrystal::SevenPlane()) {
00016       for(i=0;i<10;i++){
00017          if(i<9) {
00018             os<<aCrystal.Get(i)<<endl;
00019          } else {
00020             os<<aCrystal.Get(i);
00021          }
00022       }
00023    }
00024    return os;
00025 }


Generated on Tue Nov 29 23:15:01 2016 for BOSS_7.0.2 by  doxygen 1.4.7