12 const char* infile =
"/star/data18/reco/pp200/pythia6_203/default/pt15/y2004x/gheisha_on/trs_ij/pds1214_69_5000evts.MuDst.root",
13 const char* outdir =
"./processed/")
20 TString ofile =
"blah_simu.jet.root";
21 TString sofile =
"blah_simu.out.root";
22 const char* outfile = ofile.Data();
23 const char *soutfile = sofile;
25 cout <<
"write files:\t"<<outfile<<
"\tand:\t"<<soutfile<<endl;
27 if (gClassTable->GetID(
"TTable") < 0) {
28 gSystem->Load(
"libStar");
29 gSystem->Load(
"libPhysics");
31 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
32 loadSharedLibraries();
33 gSystem->Load(
"StMagF");
34 gSystem->Load(
"StTpcDb");
35 gSystem->Load(
"StDbUtilities");
36 gSystem->Load(
"StMcEvent");
37 gSystem->Load(
"StMcEventMaker");
38 gSystem->Load(
"StDaqLib");
39 gSystem->Load(
"StEmcRawMaker");
40 gSystem->Load(
"StEmcADCtoEMaker");
41 gSystem->Load(
"StEpcMaker");
42 gSystem->Load(
"StDbLib");
43 gSystem->Load(
"StDbBroker");
44 gSystem->Load(
"St_db_Maker");
45 gSystem->Load(
"StJetFinder");
46 gSystem->Load(
"StJetMaker");
48 double pi = atan(1.0)*4.0;
49 cout <<
" loading done " << endl;
56 ioMaker->SetFile(infile);
59 ioMaker->SetBranch(
"*",0,
"0");
60 ioMaker->SetBranch(
"geantBranch",0,
"r");
64 mcEventMaker->doPrintEventInfo =
false;
73 dbMk->SetDateTime(20031120,0);
79 StEmcTpcFourPMaker* emcFourPMaker =
new StEmcTpcFourPMaker(
"EmcTpcFourPMaker", muDstMaker, 30, 30, .3, .3, .003, adc);
80 emcFourPMaker->setUseType(StEmcTpcFourPMaker::Hits);
81 emcFourPMaker->setMaxPoints(150);
82 emcFourPMaker->setMinPointThreshold(.3);
85 StJetSimuTrigMaker *trig=
new StJetSimuTrigMaker(
"SimuTrig");
86 trig->setPrintOption(0);
89 StJetSimuWeightMaker *weight=
new StJetSimuWeightMaker(
"SimuWeight");
90 weight->setPrintOption(0);
93 StJetSimuTreeMaker *stree=
new StJetSimuTreeMaker(
"SimuTree",soutfile);
94 stree->setPrintOption(0);
104 anapars->setFlagMin(0);
105 anapars->setNhits(0);
106 anapars->setCutPtMin(0.0001);
107 anapars->setAbsEtaMax(5.0);
108 anapars->setJetPtMin(5.0);
109 anapars->setJetEtaMax(5.0);
110 anapars->setJetEtaMin(0);
111 anapars->setJetNmin(0);
136 emcJetMaker->addAnalyzer(anapars, ktpars, emcFourPMaker,
"RecoKtJet");
141 TChain* muchain = muDstMaker->
chain();
143 for (Int_t iev=0;iev<nevents; iev++) {
144 cout <<
"****************************************** " << endl;
146 cout <<
"Working on eventNumber:\t" << iev <<endl;
147 cout <<
"*************************1***************** " << endl;
149 int iret = chain->
Make(iev);
152 cout <<
"Bad return code!" << endl;
157 cout <<
"****************************************** " << endl;
158 cout <<
"total number of events " << total << endl;
159 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
Bool_t doPrintMemoryInfo
lots of screen output
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
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?