31 void runEEmcA2EMaker( Int_t nevents = 50,
32 Char_t *name =
"mcpi0_5000_06TC05_3.MuDst.root",
33 Char_t *ofile=
"test.root",
34 Char_t *path =
"./test/",
39 TString pathname = path;
51 mChain =
new StChain(
"eemcAnalysisChain");
57 mMuDstMaker =
new StMuDstMaker(0,0,path,name,
"MuDst",nfiles);
66 mStarDatabase =
new St_db_Maker(
"StarDb",
"MySQL:StarDb");
73 mStarDatabase->SetFlavor(
"sim",
"eemcPMTcal");
74 mStarDatabase->SetFlavor(
"sim",
"eemcPIXcal");
75 mStarDatabase->SetFlavor(
"sim",
"eemcPMTped");
76 mStarDatabase->SetFlavor(
"sim",
"eemcPMTstat");
77 mStarDatabase->SetFlavor(
"sim",
"eemcPMTname");
78 mStarDatabase->SetFlavor(
"sim",
"eemcADCconf");
79 mStarDatabase->SetDateTime(20050101,0);
86 gMessMgr -> SwitchOff(
"D");
87 gMessMgr -> SwitchOn(
"I");
108 mEEanalysis->
source(
"MuDst",1);
117 mEEanalysis->
scale(1.2);
132 while ( stat == 0 ) {
138 if ( count++ >= nevents )
if ( nevents > 0 )
break;
149 stat = mChain ->
Make();
154 if ( (count%10) )
continue;
156 std::cout <<
"------------------------------------------------";
157 std::cout <<
"event=" << count << std::endl;
162 for (
int i = 0; i < 4; i++ ) {
163 std::cout <<
" layer=" << i
171 for ( Int_t sec=0;sec<12;sec++ )
176 std::cout <<
" layer=u nhits=" << nu << std::endl;
177 std::cout <<
" layer=v nhits=" << nv << std::endl;
188 mEEmcDatabase = (
StEEmcDb*)mChain->GetDataSet(
"StEEmcDb");
189 if (mEEmcDatabase) mEEmcDatabase->exportAscii(
"dbdump.dat");
214 gSystem->Load(
"libMinuit");
216 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
217 loadSharedLibraries();
219 gSystem->Load(
"StDbLib");
220 gSystem->Load(
"StDbBroker");
221 gSystem->Load(
"St_db_Maker");
222 gSystem->Load(
"StEEmcUtil");
223 gSystem->Load(
"StEEmcDbMaker");
224 gSystem->Load(
"StEEmcSimulatorMaker");
226 gSystem->Load(
"StEEmcA2EMaker");
227 gSystem->Load(
"StEEmcClusterMaker");
228 gSystem->Load(
"StEEmcPointMaker");
StEEmcA2EMaker(const Char_t *name="mEEanalysis")
EEmc ADC –> energy maker.
void source(const Char_t *, Int_t=0)
void setAddPed(Bool_t a=true)
Add pedestal offsets from DB.
Int_t numberOfHitStrips(Int_t sector, Int_t plane) const
Int_t numberOfHitTowers(Int_t layer) const
virtual void ls(Option_t *option="") const
void setOverwrite(Bool_t o=true)
Overwrite the muDst values.
void setDropBad(Bool_t d=true)
Drop bad channels marked as "fail" in DB.
void SetStatus(const char *arrType, int status)
void setSmearPed(Bool_t s=true)
Smear the pedestal with sigma from DB.
virtual void Clear(Option_t *opts="")
Clear the maker for next event.
void database(const Char_t *)
Set the name of the EEMC database, init obtains pointer.
virtual Int_t Make()
Read and process one event.