7 void RunJetSkim2009sim(
int nevents = 1e6,
8 const char* mudstfile =
"/star/data47/reco/pp200/pythia6_410/15_25gev/cdf_a/y2006c/gheisha_on/p07ic/rcf1307_01_2000evts.MuDst.root",
9 const char* geantfile =
"/star/data47/reco/pp200/pythia6_410/15_25gev/cdf_a/y2006c/gheisha_on/p07ic/rcf1307_01_2000evts.geant.root",
10 const char* skimfile =
"rcf1307_01_2000evts.skim.root",
13 cout <<
"Read MuDst file:\t" << mudstfile << endl;
14 cout <<
"Read geant file:\t" << geantfile << endl;
15 cout <<
"Write skim file:\t" << skimfile << endl;
17 gROOT->Macro(
"loadMuDst.C");
18 gROOT->Macro(
"LoadLogger.C");
20 gSystem->Load(
"StDetectorDbMaker");
21 gSystem->Load(
"StTpcDb");
22 gSystem->Load(
"StDbUtilities");
23 gSystem->Load(
"StMcEvent");
24 gSystem->Load(
"StMcEventMaker");
25 gSystem->Load(
"StDaqLib");
26 gSystem->Load(
"StEmcRawMaker");
27 gSystem->Load(
"StEmcADCtoEMaker");
28 gSystem->Load(
"StPreEclMaker");
29 gSystem->Load(
"StEmcSimulatorMaker");
30 gSystem->Load(
"StDbBroker");
31 gSystem->Load(
"St_db_Maker");
32 gSystem->Load(
"StEEmcUtil");
33 gSystem->Load(
"StEEmcDbMaker");
34 gSystem->Load(
"StSpinDbMaker");
35 gSystem->Load(
"StEmcTriggerMaker");
36 gSystem->Load(
"StTriggerUtilities");
37 gSystem->Load(
"StMCAsymMaker");
38 gSystem->Load(
"StRandomSelector");
39 gSystem->Load(
"libfastjet.so");
40 gSystem->Load(
"StJetFinder");
41 gSystem->Load(
"StJetSkimEvent");
42 gSystem->Load(
"StJets");
43 gSystem->Load(
"StJetEvent");
44 gSystem->Load(
"StJetMaker");
45 gSystem->Load(
"StEEmcSimulatorMaker");
52 ioMaker->SetFile(geantfile);
54 ioMaker->SetBranch(
"*",0,
"0");
55 ioMaker->SetBranch(
"geantBranch",0,
"r");
59 mcEventMaker->doPrintEventInfo =
false;
70 starDb->SetDateTime(20090628,53220);
96 simL2Mk->setSetupPath(
"/star/institutions/mit/corliss/L2setup/");
97 simL2Mk->setOutPath(
"./");
101 simuTrig->setMC(
true);
105 simuTrig->bemc->setConfig(StBemcTriggerSimu::kOffline);
106 if (useL2) simuTrig->useL2(simL2Mk);
113 skimEventMaker->addSimuTrigger(240530);
114 skimEventMaker->addSimuTrigger(240652);
115 skimEventMaker->addSimuTrigger(240411);
118 chain->EventLoop(nevents);
void setSamplingFraction(Float_t f)
Changes the sampling fraction from the default in the fast simulator.
virtual void SetIOMode(Option_t *iomode="w")
number of transactions
void setAddPed(Bool_t a=true)
Add pedestal offsets from DB.
Filling of all StMcEvent classes from g2t tables Transform all the data in the g2t tables into the co...
Bool_t doPrintMemoryInfo
lots of screen output
void useOnlineDB()
Choose DB to access trigger definitions and thresholds.
void setSmearPed(Bool_t s=true)
Smear the pedestal with sigma from DB.
void setCalibSpread(StDetectorId det, float spread)
smear simulator calibration coefficients using Gaussian with this RMS.