7 void RunJetFinder2009emb(
int nevents = 1e6,
8 const char* mudstfile =
"../eliza17/SL11d_embed/10120032/pt11_15_*.MuDst.root",
9 const char* geantfile =
"../eliza17/SL11d_embed/10120032/pt11_15_*.geant.root",
10 const char* jetfile =
"jets.root",
11 const char* skimfile =
"skim.root",
14 cout <<
"Read MuDst file:\t" << mudstfile << endl;
15 cout <<
"Read geant file:\t" << geantfile << endl;
16 cout <<
"Write jet file:\t" << jetfile << endl;
17 cout <<
"Write skim file:\t" << skimfile << endl;
19 gROOT->Macro(
"loadMuDst.C");
20 gROOT->Macro(
"LoadLogger.C");
22 gSystem->Load(
"StDetectorDbMaker");
23 gSystem->Load(
"StTpcDb");
24 gSystem->Load(
"StDbUtilities");
25 gSystem->Load(
"StMcEvent");
26 gSystem->Load(
"StMcEventMaker");
27 gSystem->Load(
"StDaqLib");
28 gSystem->Load(
"StEmcRawMaker");
29 gSystem->Load(
"StEmcADCtoEMaker");
30 gSystem->Load(
"StPreEclMaker");
31 gSystem->Load(
"StEmcSimulatorMaker");
32 gSystem->Load(
"StDbBroker");
33 gSystem->Load(
"St_db_Maker");
34 gSystem->Load(
"StEEmcUtil");
35 gSystem->Load(
"StEEmcDbMaker");
36 gSystem->Load(
"StSpinDbMaker");
37 gSystem->Load(
"StEmcTriggerMaker");
38 gSystem->Load(
"StTriggerUtilities");
39 gSystem->Load(
"StMCAsymMaker");
40 gSystem->Load(
"StRandomSelector");
41 gSystem->Load(
"fastjet-install/lib/libfastjet.so");
42 gSystem->Load(
"fastjet-install/lib/libfastjettools.so");
43 gSystem->Load(
"fastjet-install/lib/libsiscone.so");
44 gSystem->Load(
"fastjet-install/lib/libsiscone_spherical.so");
45 gSystem->Load(
"fastjet-install/lib/libfastjetplugins.so");
46 gSystem->Load(
"StJetFinder");
47 gSystem->Load(
"StJetSkimEvent");
48 gSystem->Load(
"StJets");
49 gSystem->Load(
"StJetEvent");
50 gSystem->Load(
"StJetMaker");
51 gSystem->Load(
"StEEmcSimulatorMaker");
58 ioMaker->SetFile(geantfile);
60 ioMaker->SetBranch(
"*",0,
"0");
61 ioMaker->SetBranch(
"geantBranch",0,
"r");
65 mcEventMaker->doPrintEventInfo =
false;
89 simL2Mk->setSetupPath(
"/home/pibero/public/StarTrigSimuSetup/");
90 simL2Mk->setOutPath(
"../eliza14/L2/");
96 simuTrig->bemc->setConfig(StBemcTriggerSimu::kOffline);
97 if (useL2) simuTrig->useL2(simL2Mk);
104 simuTrig->setOverlapJetPatchTh(0,19);
105 simuTrig->setOverlapJetPatchTh(1,26);
106 simuTrig->setOverlapJetPatchTh(2,34);
108 simuTrig->setEndcapJetPatchTh(0,18);
109 simuTrig->setEndcapJetPatchTh(1,25);
110 simuTrig->setEndcapJetPatchTh(2,32);
112 simuTrig->setBarrelHighTowerTh(0,11);
113 simuTrig->setBarrelHighTowerTh(1,15);
114 simuTrig->setBarrelHighTowerTh(2,18);
115 simuTrig->setBarrelHighTowerTh(3,25);
117 simuTrig->setEndcapHighTowerTh(0,16);
118 simuTrig->setEndcapHighTowerTh(1,25);
122 simuTrig->emc->defineTrigger(1,
"BHT3",240530,0x00000001,0x2da11477,0x12c3a299,0xa6a96c01,0xc81b8346,0xc3887411,0x9011b0b1,0x3c7f7e17);
123 simuTrig->emc->defineTrigger(5,
"L2JetHigh",240652,0x00000002,0x8c8d4c11,0x63235304,0xd41b4de0,0xe256967e,0xb895a59f,0x299d9bfb,0x077c6927);
124 simuTrig->emc->defineTrigger(18,
"JP1",240411,0x00000040,0x5a488156,0xff7eacd8,0x57f9d3db,0x58073140,0x00000016,0x57ef7ff4,0x00000016);
127 simuTrig->setLastDsmRegister(0,1696);
128 simuTrig->setLastDsmRegister(1,24);
129 simuTrig->setLastDsmRegister(2,20);
130 simuTrig->setLastDsmRegister(3,0);
131 simuTrig->setLastDsmRegister(4,1000);
132 simuTrig->setLastDsmRegister(5,0);
133 simuTrig->setLastDsmRegister(6,0);
134 simuTrig->setLastDsmRegister(7,0);
135 simuTrig->setLastDsmRegister(8,7);
136 simuTrig->setLastDsmRegister(9,11);
137 simuTrig->setLastDsmRegister(10,1);
138 simuTrig->setLastDsmRegister(11,13);
139 simuTrig->setLastDsmRegister(12,3);
140 simuTrig->setLastDsmRegister(13,4);
141 simuTrig->setLastDsmRegister(14,100);
148 skimEventMaker->addSimuTrigger(240530);
149 skimEventMaker->addSimuTrigger(240652);
150 skimEventMaker->addSimuTrigger(240411);
154 jetmaker->setJetFile(jetfile);
160 anapars12->useTpc =
true;
161 anapars12->useBemc =
true;
162 anapars12->useEemc =
true;
163 anapars12->randomSelectorProb = 1.00;
165 const double randomAccept = 0.93;
202 anapars5->useTpc =
true;
203 anapars5->useBemc =
true;
204 anapars5->useEemc =
true;
205 anapars5->randomSelectorProb = 1.00;
241 anaparsEMC->useTpc =
true;
242 anaparsEMC->useBemc =
true;
243 anaparsEMC->useEemc =
true;
267 anaparsParticle->useMonteCarlo =
true;
278 anaparsParton->useMonteCarlo =
true;
289 StarMidpointR070Pars->
setGridSpacing(105,-3.0,3.0,120,-TMath::Pi(),TMath::Pi());
298 StarMidpointR070Pars->
setDebug(
false);
301 const double coneRadius = 0.7;
305 CdfMidpointR070Pars->setRparam(coneRadius);
308 CdfMidpointR070Pars->setPtMin(1.5);
310 const double overlapThreshold = 0.75;
311 const double seedThreshold = 0.5;
312 const double coneAreaFraction = 1.0;
315 CdfMidpointR070Pars->setPlugin(cdf);
320 AntiKtR060Pars->setRparam(0.6);
323 AntiKtR060Pars->setPtMin(1.5);
328 AntiKtR050Pars->setRparam(0.5);
331 AntiKtR050Pars->setPtMin(1.5);
333 jetmaker->addBranch(
"CdfMidpointR070NHits12",anapars12,CdfMidpointR070Pars);
334 jetmaker->addBranch(
"CdfMidpointR070NHits5",anapars5,CdfMidpointR070Pars);
335 jetmaker->addBranch(
"CdfMidpointR070EMC",anaparsEMC,CdfMidpointR070Pars);
336 jetmaker->addBranch(
"AntiKtR060NHits12",anapars12,AntiKtR060Pars);
337 jetmaker->addBranch(
"AntiKtR060NHits5",anapars5,AntiKtR060Pars);
338 jetmaker->addBranch(
"AntiKtR060EMC",anaparsEMC,AntiKtR060Pars);
339 jetmaker->addBranch(
"AntiKtR050NHits12",anapars12,AntiKtR050Pars);
340 jetmaker->addBranch(
"AntiKtR050NHits5",anapars5,AntiKtR050Pars);
341 jetmaker->addBranch(
"AntiKtR050EMC",anaparsEMC,AntiKtR050Pars);
342 jetmaker->addBranch(
"CdfMidpointR070Particle",anaparsParticle,CdfMidpointR070Pars);
343 jetmaker->addBranch(
"CdfMidpointR070Parton",anaparsParton,CdfMidpointR070Pars);
344 jetmaker->addBranch(
"AntiKtR060Particle",anaparsParticle,AntiKtR060Pars);
345 jetmaker->addBranch(
"AntiKtR060Parton",anaparsParton,AntiKtR060Pars);
346 jetmaker->addBranch(
"AntiKtR050Particle",anaparsParticle,AntiKtR050Pars);
347 jetmaker->addBranch(
"AntiKtR050Parton",anaparsParton,AntiKtR050Pars);
352 chain->EventLoop(nevents);
void setConeRadius(double v)
Set cone radius:
void setBarrelJetPatchTh(int i, int value)
Use these setters to overwrite thresholds from the database (2009)
void setAddMidpoints(bool v)
Add seeds at midpoints?
static const int plugin_algorithm
any plugin algorithm supplied by the user
virtual void SetIOMode(Option_t *iomode="w")
number of transactions
void setSplitFraction(double v)
split jets if E_shared/E_neighbor>splitFraction
static const int Best
automatic selection of the best (based on N)
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
Bool_t doPrintMemoryInfo
lots of screen output
void setAssocEtMin(double v)
minimum et threshold to be considered for addition to the seed
static const int plugin_strategy
the plugin has been used...
static const int E_scheme
void setRequireStableMidpoints(bool v)
Require stable midpoints?
static const int antikt_algorithm
void saveAllStEvent(Bool_t a)
Set to kTRUE if all hits are to be saved on StEvent.
void setPerformMinimization(bool v)
Let jet wander to minimum?