10 void RunJetSimuFinder(
12 const char* file=
"/star/data40/reco/pp200/pythia6_205/above_35gev/cdf_a/y2004y/gheisha_on/trs_p05ie/rcf1230_10_4000evts.MuDst.root",
13 const char *fname=
"/star/data40/reco/pp200/pythia6_205/above_35gev/cdf_a/y2004y/gheisha_on/trs_p05ie/rcf1230_10_4000evts.event.root",
16 const char *outfile=
"Jets_out.root",
17 const char *soutfile=
"Simu_out.root"
22 const char *filter =
"";
24 if (gClassTable->GetID(
"TTable") < 0) {
25 gSystem->Load(
"libStar");
26 gSystem->Load(
"libPhysics");
28 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
29 loadSharedLibraries();
31 gSystem->Load(
"StTpcDb");
32 gSystem->Load(
"StDbUtilities");
33 gSystem->Load(
"StMcEvent");
34 gSystem->Load(
"StMcEventMaker");
35 gSystem->Load(
"StDaqLib");
36 gSystem->Load(
"StEmcRawMaker");
37 gSystem->Load(
"StEmcADCtoEMaker");
38 gSystem->Load(
"StPreEclMaker");
39 gSystem->Load(
"StEpcMaker");
40 gSystem->Load(
"StEmcSimulatorMaker");
41 gSystem->Load(
"StEmcUtil");
42 gSystem->Load(
"StDbBroker");
43 gSystem->Load(
"StDetectorDbMaker");
44 gSystem->Load(
"St_db_Maker");
45 gSystem->Load(
"StEEmcUtil");
46 gSystem->Load(
"StEEmcDbMaker");
47 gSystem->Load(
"StEmcTriggerMaker");
48 gSystem->Load(
"StSpinDbMaker");
49 gSystem->Load(
"StJetFinder");
50 gSystem->Load(
"StJetMaker");
52 double pi = atan(1.0)*4.0;
53 cout <<
" loading done " << endl;
57 gMessMgr->SwitchOff(
"D");
58 gMessMgr->SwitchOff(
"I");
62 ioMaker->SetFile(fname);
64 ioMaker->SetBranch(
"*",0,
"0");
65 ioMaker->SetBranch(
"geantBranch",0,
"r");
69 mcEventMaker->doPrintEventInfo =
false;
78 dbMk->SetDateTime(20040427,101529);
103 StJetEmcTrigSim *htTrig =
new StJetEmcTrigSim(
"StJetEmcTrigSim",dbMk,muDstMaker);
108 emcTrig->setDbMaker(dbMk);
111 StJetSimuTrigMaker *trig =
new StJetSimuTrigMaker(
"SimuTrig");
112 trig->setPrintOption(0);
115 StJetSimuWeightMaker *weight =
new StJetSimuWeightMaker(
"SimuWeight");
116 weight->setPrintOption(0);
117 weight->setUnpolPDF(101);
118 weight->setPolPDF(103);
121 StJetSimuTreeMaker *stree =
new StJetSimuTreeMaker(
"SimuTree",soutfile);
122 stree->setPrintOption(0);
125 bool doTowerSwapFix =
false;
140 anapars->setFlagMin(0);
141 anapars->setNhits(20);
142 anapars->setCutPtMin(0.2);
143 anapars->setAbsEtaMax(1.6);
144 anapars->setJetPtMin(3.0);
145 anapars->setJetEtaMax(100.0);
146 anapars->setJetEtaMin(0);
147 anapars->setJetNmin(0);
168 emcJetMaker->addAnalyzer(anapars, cpars4, bet4pMaker,
"MkConeR04");
172 pythiapars->setFlagMin(0);
173 pythiapars->setNhits(0);
174 pythiapars->setCutPtMin(0.0001);
175 pythiapars->setAbsEtaMax(5.0);
176 pythiapars->setJetPtMin(3.0);
177 pythiapars->setJetEtaMax(5.0);
178 pythiapars->setJetEtaMin(0);
179 pythiapars->setJetNmin(0);
199 emcJetMaker->addAnalyzer(pythiapars, pythia_cpars4, pythiaFourPMaker,
"PythiaConeR04");
206 controlEmcSimulatorMaker_st* simControl = emcSim->getControlSimulator()->GetTable();
207 simControl->keyDB[0] = controlVal;
208 simControl->keyDB[1] = 0;
209 simControl->keyDB[2] = controlVal;
210 simControl->keyDB[3] = controlVal;
219 TChain* fileChain = muDstMaker->
chain();
221 int ntotal = fileChain->GetEntries();
223 for (Int_t iev=0;iev<nevents; iev++) {
224 cout <<
"****************************************** " << endl;
225 cout <<
"Working on eventNumber:\t" << iev <<
"\tof:\t"<<ntotal<<endl;
226 cout <<
"*************************1***************** " << endl;
228 int iret = chain->
Make(iev);
231 cout <<
"Bad return code!" << endl;
237 cout <<
"****************************************** " << endl;
238 cout <<
"total number of events " << total << endl;
239 cout <<
"****************************************** " << endl;
void setConeRadius(double v)
Set cone radius:
void setAddMidpoints(bool v)
Add seeds at midpoints?
virtual void SetIOMode(Option_t *iomode="w")
number of transactions
virtual void Clear(Option_t *option="")
User defined functions.
void setSplitFraction(double v)
split jets if E_shared/E_neighbor>splitFraction
static void setLevel(unsigned int level)
sets the debug level
void setGridSpacing(int nEta, double etaMin, double etaMax, int nPhi, double phiMin, double phiMax)
Set the grid spacing:
void setDoSplitMerge(bool v)
Do Split/Merge step?
void setDebug(bool v)
Toggle debug streams on/off.
Filling of all StMcEvent classes from g2t tables Transform all the data in the g2t tables into the co...
void setSeedEtMin(double v)
minimum et threshold to be considered a seed
virtual void ls(Option_t *option="") const
Bool_t doPrintMemoryInfo
lots of screen output
void setAssocEtMin(double v)
minimum et threshold to be considered for addition to the seed
TChain * chain()
In read mode, returns pointer to the chain of .MuDst.root files that where selected.
void setRequireStableMidpoints(bool v)
Require stable midpoints?
void setPerformMinimization(bool v)
Let jet wander to minimum?