9 void RunChargedPion(
const char *muPath,
11 const char *jetPath = NULL,
16 gROOT->Macro(
"LoadLogger.C");
17 gROOT->Macro(
"$STAR/StRoot/StSpinPool/StChargedPionAnalysisMaker/macros/LoadLibs.C");
19 double pi = atan(1.0)*4.0;
25 TString muString(muPath);
26 TString geantString(muString.ReplaceAll(
"MuDst",
"geant"));
27 ioMk.SetFile(geantString.Data());
29 ioMk.SetBranch(
"*", 0,
"0");
30 ioMk.SetBranch(
"geantBranch", 0,
"r");
39 filterMk.addTrigger(96011);
40 filterMk.addTrigger(96201);
41 filterMk.addTrigger(96211);
42 filterMk.addTrigger(96221);
43 filterMk.addTrigger(96233);
45 filterMk.addTrigger(5);
46 filterMk.addTrigger(8);
47 filterMk.addTrigger(117001);
48 filterMk.addTrigger(117300);
49 filterMk.addTrigger(117402);
50 filterMk.addTrigger(137213);
51 filterMk.addTrigger(137221);
52 filterMk.addTrigger(137222);
53 filterMk.addTrigger(137271);
54 filterMk.addTrigger(137272);
55 filterMk.addTrigger(137273);
56 filterMk.addTrigger(137501);
57 filterMk.addTrigger(137551);
58 filterMk.addTrigger(137571);
59 filterMk.addTrigger(137575);
60 filterMk.addTrigger(137580);
61 filterMk.addTrigger(137581);
62 filterMk.addTrigger(137585);
63 filterMk.addTrigger(137586);
64 filterMk.addTrigger(137611);
65 filterMk.addTrigger(137622);
66 filterMk.addTrigger(137641);
67 filterMk.addTrigger(137652);
70 St_db_Maker dbMk(
"StarDb",
"MySQL:StarDb",
"$STAR/StarDb");
74 dbMk.SetDateTime(20050506,214129);
78 dbMk.SetDateTime(20060522, 055000);
104 trgSimuMk.setMC(simu);
107 trgSimuMk.bemc->setConfig(StBemcTriggerSimu::kOffline);
111 simL2Mk.setSetupPath(
"/afs/rhic.bnl.gov/star/users/kocolosk/public/StarTrigSimuSetup/");
112 simL2Mk.setOutPath(
"./outL2");
113 trgSimuMk.useL2(&simL2Mk);
122 bool doTowerSwapFix =
true;
123 StBET4pMaker bet4pMk(
"BET4pMaker", &muMk, doTowerSwapFix);
126 bet4pMk.setUse2005Cuts(
true);
130 bet4pMk.setUseEndcap(
true);
131 bet4pMk.setUse2006Cuts(
true);
135 StJetMaker emcJetMk(
"emcJetMaker", &muMk,
"blah.jet.root");
140 anapars.setFlagMin(0);
141 anapars.setNhits(20);
142 anapars.setAbsEtaMax(1.6);
143 if(simu) anapars.setJetPtMin(3.0);
144 else anapars.setJetPtMin(5.0);
148 anapars.setFlagMin(0);
149 anapars.setNhits(12);
150 anapars.setAbsEtaMax(2.0);
151 if(simu) anapars.setJetPtMin(3.5);
152 else anapars.setJetPtMin(5.0);
155 anapars.setCutPtMin(0.2);
156 anapars.setJetEtaMax(100.0);
157 anapars.setJetEtaMin(0);
158 anapars.setJetNmin(0);
164 pypars.setFlagMin(0);
166 pypars.setCutPtMin(0.0001);
167 pypars.setAbsEtaMax(5.0);
168 pypars.setJetPtMin(3.0);
169 pypars.setJetEtaMax(5.0);
170 pypars.setJetEtaMin(0);
171 pypars.setJetNmin(0);
198 emcJetMk.addAnalyzer(&anapars, &cpars, &bet4pMk,
"ConeJets");
203 emcJetMk.addAnalyzer(&anapars, &cpars, &bet4pMk,
"ConeJets5");
205 anapars.setNhits(12);
206 emcJetMk.addAnalyzer(&anapars, &cpars, &bet4pMk,
"ConeJets12");
208 anapars.setNhits(10000000);
209 emcJetMk.addAnalyzer(&anapars, &cpars, &bet4pMk,
"ConeJetsEMC");
215 if(year == 2005) pycpars.setGridSpacing(200, -5.0, 5.0, 120, -pi, pi);
216 emcJetMk.addAnalyzer(&pypars, &pycpars, &pythia4pMk,
"PythiaConeJets");
223 cpMk.addTrigger(96011);
224 cpMk.addTrigger(96201);
225 cpMk.addTrigger(96211);
226 cpMk.addTrigger(96221);
227 cpMk.addTrigger(96233);
233 cpMk.addTrigger(117001);
234 cpMk.addTrigger(117300);
235 cpMk.addTrigger(117402);
236 cpMk.addTrigger(137213);
237 cpMk.addTrigger(137221);
238 cpMk.addTrigger(137222);
239 cpMk.addTrigger(137271);
240 cpMk.addTrigger(137272);
241 cpMk.addTrigger(137273);
242 cpMk.addTrigger(137501);
243 cpMk.addTrigger(137551);
244 cpMk.addTrigger(137571);
245 cpMk.addTrigger(137575);
246 cpMk.addTrigger(137580);
247 cpMk.addTrigger(137581);
248 cpMk.addTrigger(137585);
249 cpMk.addTrigger(137586);
250 cpMk.addTrigger(137611);
251 cpMk.addTrigger(137622);
252 cpMk.addTrigger(137641);
253 cpMk.addTrigger(137652);
265 while(i<nevents && chain.
Make()==
kStOk) {
267 cout <<
"done with event " << i
268 <<
"\tcpu: " << timer.CpuTime()
269 <<
"\treal: " << timer.RealTime()
270 <<
"\tratio: " << timer.CpuTime()/timer.RealTime() << endl;
272 memory.PrintMem(NULL);
279 cout <<
"my macro processed " << i <<
" events"
280 <<
"\tcpu: " << total.CpuTime()
281 <<
"\treal: " << total.RealTime()
282 <<
"\tratio: " << total.CpuTime()/total.RealTime() << 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
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
void setAssocEtMin(double v)
minimum et threshold to be considered for addition to the seed
void setRequireStableMidpoints(bool v)
Require stable midpoints?
void setCalibSpread(StDetectorId det, float spread)
smear simulator calibration coefficients using Gaussian with this RMS.
void setPerformMinimization(bool v)
Let jet wander to minimum?