7 void RunJetSimu(
int nevents = 10,
8 const char *dir =
"/star/data19/reco/pp200/pythia6_203/default/pt15/y2004x/gheisha_on/trs_ii/",
9 const char* file =
"pds1214_02_5000evts.MuDst.root",
10 const char *fname=
"/star/data19/reco/pp200/pythia6_203/default/pt15/y2004x/gheisha_on/trs_ii/pds1214_02_5000evts.geant.root",
11 const char *filter =
"",
12 const char *outfile=
"test",
13 const char *Eout =
"EMC_test.root")
16 if (gClassTable->GetID(
"TTable") < 0) {
17 gSystem->Load(
"libStar");
18 gSystem->Load(
"libPhysics");
20 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
21 loadSharedLibraries();
22 gSystem->Load(
"StMagF");
23 gSystem->Load(
"StTpcDb");
24 gSystem->Load(
"StDbUtilities");
25 gSystem->Load(
"StMcEvent");
26 gSystem->Load(
"StMcEventMaker");
27 gSystem->Load(
"StAssociationMaker");
28 gSystem->Load(
"StMcAnalysisMaker");
29 gSystem->Load(
"StDaqLib");
30 gSystem->Load(
"StEmcADCtoEMaker");
31 gSystem->Load(
"StEpcMaker");
32 gSystem->Load(
"StDaqLib");
33 gSystem->Load(
"StEmcUtil");
34 gSystem->Load(
"StDbLib");
35 gSystem->Load(
"StDbBroker");
36 gSystem->Load(
"St_db_Maker");
37 gSystem->Load(
"StEEmcUtil");
38 gSystem->Load(
"StEEmcDbMaker");
39 gSystem->Load(
"StJetFinder");
40 gSystem->Load(
"StJetMaker");
41 assert(gSystem->Load(
"StRFEvalMaker")==0);
43 double pi = atan(1.0)*4.0;
44 cout <<
" loading done " << endl;
48 gMessMgr->SwitchOff(
"D");
49 gMessMgr->SwitchOff(
"I");
53 ioMaker->SetFile(fname);
55 ioMaker->SetBranch(
"*",0,
"0");
56 ioMaker->SetBranch(
"geantBranch",0,
"r");
57 ioMaker->SetBranch(
"eventBranch",0,
"r");
62 mcEventReader->doPrintEventInfo =
false;
63 mcEventReader->doPrintMemoryInfo =
false;
70 StJetSimuTrigMaker *trig=
new StJetSimuTrigMaker(
"SimuTrig");
71 trig->setPrintOption(0);
75 dbMk->SetDateTime(20031120,0);
76 dbMk->SetFlavor(
"sim",
"bemcPed");
77 dbMk->SetFlavor(
"sim",
"bemcStatus");
78 dbMk->SetFlavor(
"sim",
"bemcCalib");
79 dbMk->SetFlavor(
"sim",
"bemcGain");
80 dbMk->SetFlavor(
"sim",
"eemcPMTcal");
81 dbMk->SetFlavor(
"sim",
"eemcPIXcal");
93 StEmcTpcFourPMaker* emcFourPMaker =
new StEmcTpcFourPMaker(
"EmcTpcFourPMaker", muDstMaker, 30, 30, .3, .3, .003, adc);
94 emcFourPMaker->setUseType(StEmcTpcFourPMaker::Hits);
97 StJetSimuWeightMaker *weight=
new StJetSimuWeightMaker(
"SimuWeight");
98 weight->setPrintOption(0);
101 char* emcOutfile =
new char[256];
102 strcpy(emcOutfile, outfile); strcat(emcOutfile,
"emc");
106 StRFEvalMaker *eval =
new StRFEvalMaker(
"RFEval",Eout);
107 eval->setPrintOption(1);
117 anapars->setFlagMin(0);
118 anapars->setNhits(15);
119 anapars->setCutPtMin(0.2);
120 anapars->setAbsEtaMax(1.6);
121 anapars->setJetPtMin(5.0);
122 anapars->setJetEtaMax(100.0);
123 anapars->setJetEtaMin(0);
124 anapars->setJetNmin(0);
140 emcJetMaker->addAnalyzer(anapars, cpars,
"MkConeJetsPt02R07");
146 emcJetMaker->addAnalyzer(anapars, ktpars,
"MkKtJet");
154 for (Int_t iev=0;iev<nevents; iev++) {
155 cout <<
"****************************************** " << endl;
156 cout <<
"Working on eventNumber " << iev << endl;
157 cout <<
"*************************1***************** " << endl;
159 int iret = chain->
Make(iev);
162 cout <<
"Bad return code!" << endl;
167 cout <<
"****************************************** " << endl;
168 cout <<
"total number of events " << total << endl;
169 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 setR(double r)
Set the distance measure, called d by Ellis/Soper.
void setSeedEtMin(double v)
minimum et threshold to be considered a seed
virtual void ls(Option_t *option="") const
void setDebug(bool v)
Toggle the debug stream on/off.
void setAssocEtMin(double v)
minimum et threshold to be considered for addition to the seed
void setRequireStableMidpoints(bool v)
Require stable midpoints?
void setPerformMinimization(bool v)
Let jet wander to minimum?