1 void runSimuGammaTreeMaker
3 char *inputFile =
"/star/institutions/uky/betan/mit0026_10.MuDst.root",
4 char *outputFile =
"test.root"
9 TString muDstFile(inputFile);
10 TString geantFile = muDstFile;
11 geantFile.ReplaceAll(
"MuDst",
"geant");
13 cout <<
"****************************************" << endl;
14 cout <<
"Reading MuDst File : " << muDstFile << endl;
15 cout <<
"Reading Geant File : " << geantFile << endl;
16 cout <<
"Writing Output File : " << outputFile << endl;
19 cout <<
"Loading common libraries..." << endl;
20 gROOT->Macro(
"loadMuDst.C");
21 gROOT->Macro(
"LoadLogger.C");
23 gSystem->Load(
"libMinuit");
24 gSystem->Load(
"StDetectorDbMaker");
25 gSystem->Load(
"StDbUtilities");
26 gSystem->Load(
"StDbBroker");
27 gSystem->Load(
"St_db_Maker");
28 gSystem->Load(
"StSpinDbMaker");
30 gSystem->Load(
"StMcEvent");
31 gSystem->Load(
"StMcEventMaker");
33 gSystem->Load(
"libgeometry_Tables");
34 gSystem->Load(
"StDaqLib");
35 gSystem->Load(
"StPreEclMaker");
36 gSystem->Load(
"StEmcSimulatorMaker");
38 gSystem->Load(
"StEEmcDbMaker");
39 gSystem->Load(
"StEEmcUtil");
40 gSystem->Load(
"StEEmcSimulatorMaker");
41 gSystem->Load(
"StEEmcA2EMaker");
42 gSystem->Load(
"StEEmcClusterMaker");
44 gSystem->Load(
"StMCAsymMaker");
45 gSystem->Load(
"StJetSkimEvent");
46 gSystem->Load(
"StGammaMaker");
56 ioMaker->SetFile(geantFile.Data());
58 ioMaker->SetBranch(
"*", 0,
"0");
59 ioMaker->SetBranch(
"geantBranch", 0,
"r");
62 mcEventMaker->doPrintEventInfo =
false;
70 muDstMaker->
SetStatus(
"PrimaryVertices", 1);
71 muDstMaker->
SetStatus(
"PrimaryTracks", 1);
82 StarDatabase->SetDateTime(20060522, 112810);
116 EEanalysis->
source(
"MuDst", 1);
135 gammaMaker->setOutputFile(outputFile);
136 gammaMaker->storeEmptyEvents();
138 gammaMaker->setClusterEtThreshold(5.1);
139 gammaMaker->setConeRadius(0.4);
140 gammaMaker->setBsmdRange(0.05237);
141 gammaMaker->setEsmdRange(20.0);
143 gammaMaker->setSeedEnergyThreshold(3.6);
144 gammaMaker->setClusterEnergyThreshold(5.1);
146 gammaMaker->setTrackEtRawThreshold(0.0);
147 gammaMaker->setTowerEtRawThreshold(0.0);
149 gammaMaker->setEemcTowerClusterThreshold(0.1);
155 cout <<
"Starting up the chain..." << endl;
162 cout <<
"Looping over events..." << endl;
166 for(
int iev = 0; iev < ntotal; ++iev)
169 cout <<
"******************************************" << endl;
170 cout <<
"Processing Event: " << iev << endl;
171 cout <<
"*************************1****************" << endl;
174 stat = chain->
Make();
178 cout <<
"Bad return code!" << endl;
188 cout <<
"****************************************** " << endl;
189 cout << total <<
" Total Events" << endl;
190 cout <<
"****************************************** " << endl;
EEmc ADC –> energy maker.
void setMaximumAdc(StDetectorId det, float adc)
maximum possible ADC for a channel. Defaults are 4095 (TOW), 1023 (PRS), 1023 (SMDs) ...
virtual void SetIOMode(Option_t *iomode="w")
number of transactions
void setCalibOffset(StDetectorId det, float offset)
scale simulator calibration coefficients by 1.0 + offset. Default is zero
void source(const Char_t *, Int_t=0)
virtual void Clear(Option_t *option="")
User defined functions.
void threshold(Float_t cut, Int_t layer)
Filling of all StMcEvent classes from g2t tables Transform all the data in the g2t tables into the co...
virtual void ls(Option_t *option="") const
void setMaximumAdcSpread(StDetectorId det, float spread)
maximum possible ADC will be calculated by sampling Gaussian with this spread. Default is 0 for all d...
Bool_t doPrintMemoryInfo
lots of screen output
void setMaxCrossTalkPercentage(StDetectorId det, float percentage)
this setting has no effect if det!=kBarrelSmdEtaStripId. Simulate cross-talk from cross-capacitance...
void SetStatus(const char *arrType, int status)
void database(const Char_t *)
Set the name of the EEMC database, init obtains pointer.
void setCalibSpread(StDetectorId det, float spread)
smear simulator calibration coefficients using Gaussian with this RMS.