23 void runStEEmcPointTreeMaker( Int_t nevents = 500,
24 Char_t *name =
"mc_06TC02_eemc_2500_1_pt10.event.root",
25 Char_t *ofile =
"mc_06TC02_eemc_2500_1_pt10.mix.root",
27 Char_t *path =
"/star/data04/sim/jwebb/MonteCarlo/TowerScan/",
36 TString pathname = path;
40 gROOT -> LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
41 loadSharedLibraries();
44 gROOT->LoadMacro(
"StRoot/StEEmcPool/StMaxStripPi0/macros/loadlibs.C");
48 mChain =
new StChain(
"eemcAnalysisChain");
52 ioMaker->SetFile( pathname );
54 ioMaker->SetBranch(
"*",0,
"0");
55 ioMaker->SetBranch(
"eventBranch",0,
"r");
59 mStarDatabase =
new St_db_Maker(
"StarDb",
"MySQL:StarDb");
62 #ifdef MONTE_CARLO // flags for M-C events
63 TDatime *time =
new TDatime();
64 mStarDatabase -> SetDateTime( time -> GetDate(), time -> GetTime() );
65 mStarDatabase->SetDateTime(20031120,0);
66 mStarDatabase->SetFlavor(
"sim",
"eemcPMTcal");
67 mStarDatabase->SetFlavor(
"sim",
"eemcPIXcal");
68 mStarDatabase->SetFlavor(
"sim",
"eemcPMTped");
69 mStarDatabase->SetFlavor(
"sim",
"eemcPMTstat");
70 mStarDatabase->SetFlavor(
"sim",
"eemcPMTname");
71 mStarDatabase->SetFlavor(
"sim",
"eemcADCconf");
76 std::cout <<
"mEEmcDatabase=" << mEEmcDatabase << std::endl;
77 gMessMgr -> SwitchOff(
"D");
78 gMessMgr -> SwitchOn(
"I");
93 mEEanalysis -> source(
"StEventMaker",2);
94 mEEanalysis -> database (
"eemcDb" );
98 mEEclusters->
analysis(
"StEEmcA2EMaker");
105 mEEpoints->analysis(
"StEEmcA2EMaker");
106 mEEpoints->clusters(
"StEEmcClusterMaker");
107 mEEpoints->setFillStEvent();
108 mEEpoints->setFilename(ofile);
120 while ( stat == 0 ) {
123 if ( count++ >= nevents )
break;
129 stat = mChain ->
Make();
134 std::cout <<
"Event = " << count <<
" ";
135 std::cout <<
"N hit = " << mEEanalysis -> numberOfHitTowers(0) <<
" ";
150 std::cout <<
"N stcl = " <<
" "
151 << tow->cluster()->numberOfClusters() <<
" "
152 << pqr->cluster()->numberOfClusters() <<
" "
153 << smdu->cluster()->numberOfClusters() <<
" "
154 << smdv->cluster()->numberOfClusters() <<
" ";
155 std::cout << std::endl;
const StEEmcA2EMaker * mEEanalysis
ADC–>E maker.
virtual void Clear(Option_t *opts="")
Clear clusters for next event.
void analysis(const Char_t *name)
Set the name of the ADC–>E maker.
EEmc ADC –> energy maker.
void setSeedFloor(Float_t f=2.0)
StEEmcClusterMaker(const Char_t *name="mEEclusters")
Int_t numberOfClusters(Int_t sec, Int_t layer) const
Return number of clusters for a given sector, layer.
Int_t numberOfSmdClusters(Int_t sec, Int_t plane) const
Return number of smd clusters for a given sector, plane.
virtual void SetIOMode(Option_t *iomode="w")
number of transactions
void setMaxExtent(Int_t m)
Maximum distance around seed strip to cluster smd strips.
virtual void ls(Option_t *option="") const
virtual Int_t Make()
Make clusters for this event.
A cluster maker for the EEMC.