41 void makeEEmcTreePart2and3_IU(
const Char_t *eemcTreePart1FileName =
"eemcTreeP1.root",
42 const Char_t *eemcTreePart2FileName =
"eemcTreeP2.root",
43 const Char_t *eemcTreePart3FileName =
"eemcTreeP3.root",
46 Int_t displayFreq = 100 ){
49 std::cout <<
"***** Loading libraries *****" << endl;
52 std::cout <<
"***** Done loading libraries *****" << endl;
53 std::cout <<
"***** Instanciating all the classes *****" << endl;
58 analysisChain =
new StChain(
"eemcAnalysisChain");
64 treeReaderPtr->
setTreeStatus( StEEmcTreeMaker_t::PART_1, StEEmcTreeMaker_t::READ, eemcTreePart1FileName );
65 treeReaderPtr->
setTreeStatus( StEEmcTreeMaker_t::PART_2, StEEmcTreeMaker_t::IGNORE,
"" );
66 treeReaderPtr->
setTreeStatus( StEEmcTreeMaker_t::PART_3, StEEmcTreeMaker_t::IGNORE,
"" );
67 treeReaderPtr->doSpinInfoIO( !isMC );
68 treeReaderPtr->doEvtHddrIO( 1 );
69 treeReaderPtr->setMaxNumEvents( neventsIn );
82 stripClusterFinderPtr->setSeedFloorConst(1);
89 energyApportionerPtr->setCheckTowerBits(0);
94 towerClusterFinderPtr,
95 stripClusterFinderPtr,
100 hitMakerPtr->doClusterPreShower1( 0 );
101 hitMakerPtr->doClusterPreShower2( 0 );
102 hitMakerPtr->doClusterPostShower( 0 );
117 treeWriterPtr->
setTreeStatus( StEEmcTreeMaker_t::PART_1, StEEmcTreeMaker_t::IGNORE,
"" );
118 treeWriterPtr->
setTreeStatus( StEEmcTreeMaker_t::PART_2, StEEmcTreeMaker_t::WRITE, eemcTreePart2FileName );
119 treeWriterPtr->
setTreeStatus( StEEmcTreeMaker_t::PART_3, StEEmcTreeMaker_t::WRITE, eemcTreePart3FileName );
120 treeWriterPtr->doSpinInfoIO( 0 );
121 treeWriterPtr->doEvtHddrIO( 0 );
122 treeWriterPtr->doMakePairs( 1 );
123 treeWriterPtr->setEEmcTreeReader( treeReaderPtr );
124 treeWriterPtr->setEEmcHitMkr( hitMakerPtr );
127 std::cout <<
"***** Done instanciating all the classes *****" << endl;
134 std::cout <<
"***** Initializing all makers in the analysis chain *****" << std::endl;
136 analysisChain->Init();
138 std::cout <<
"***** Initialization done *****" << std::endl;
151 for( nIn = 0; nIn < neventsIn && !ierr; ++nIn ){
154 analysisChain->
Clear();
157 ierr = analysisChain->
Make();
160 nhits += hitMakerPtr->getHitVecSize();
163 if( (nIn+1) % displayFreq == 0 )
164 std::cout <<
"***** Entries read " << nIn+1 <<
", total hits = " << nhits << endl;
167 std::cout <<
"***** Entries read " << nIn+1 <<
", total hits = " << nhits << endl;
169 if( ierr && ierr != 2 )
170 std::cout <<
"***** ERROR FLAG " << ierr << endl;
188 void loadEEmcTreeLibs(){
190 gROOT->Macro(
"loadMuDst.C");
193 gSystem->Load(
"StSpinDbMaker");
194 gSystem->Load(
"StEEmcUtil");
196 gSystem->Load(
"libSpectrum");
197 gSystem->Load(
"libMinuit");
199 gSystem->Load(
"StEEmcPoolEEmcTreeContainers");
200 gSystem->Load(
"StEEmcHitMaker");
201 gSystem->Load(
"StEEmcPointMap");
202 gSystem->Load(
"StEEmcTreeMaker");
virtual void Clear(Option_t *option="")
User defined functions.
void setTreeStatus(treeTypeEnum_t type, iostatus_t iostatus, const Char_t *fileName)
modifiers
void doClusterSMDStrips(Bool_t flag=1)
Set whether to cluster SMD strips.
void doClusterTowers(Bool_t flag=1)
modifiers
StEEmcTreeMaker_t(const Char_t *myName)
constructor