6 const char* file=
"/star/data13/reco/pp200/pythia6_205/55_65gev/cdf_a/y2004y/gheisha_on/p05ih/rcf1271_10_4000evts.MuDst.root",
7 const char *fname=
"/star/data13/reco/pp200/pythia6_205/55_65gev/cdf_a/y2004y/gheisha_on/p05ih/rcf1271_10_4000evts.geant.root",
8 const char *filter =
"",
13 gROOT->Macro(
"loadMuDst.C");
14 gSystem->Load(
"StMcEvent");
15 gSystem->Load(
"StMcEventMaker");
16 gSystem->Load(
"StEEmcUtil");
17 gSystem->Load(
"StJetSkimEvent");
18 gSystem->Load(
"StMCAsymMaker");
22 gMessMgr->SwitchOff(
"D");
23 gMessMgr->SwitchOff(
"I");
26 ioMaker->SetFile(fname);
28 ioMaker->SetBranch(
"*",0,
"0");
29 ioMaker->SetBranch(
"geantBranch",0,
"r");
36 TChain* fileChain = muDstMaker->
chain();
37 int ntotal = fileChain->GetEntries();
39 for (Int_t iev=0;iev<nevents; iev++) {
40 cout <<
"****************************************** " << endl;
41 cout <<
"Working on eventNumber:\t" << iev <<
"\tof:\t"<<ntotal<<endl;
42 cout <<
"*************************1***************** " << endl;
44 int iret = chain->
Make(iev);
47 cout <<
"runId = " << ev->runId() <<
", eventId = " << ev->eventId() <<
", pid = " << ev->processId() << endl;
48 cout <<
"vertexPos = (" << ev->vertex().X() <<
", " << ev->vertex().Y() <<
", " << ev->vertex().Z() <<
")" << endl;
49 cout <<
"GRSV STD A_LL = " << ev->ALL(StPythiaEvent::STD) << endl;
50 cout <<
"incoming parton1 ID = " << ev->particle(0)->GetPdgCode() << endl;
51 cout <<
"incoming parton2 status = " << ev->particle(1)->GetStatusCode() << endl;
52 cout <<
"outgoing parton1 daughter1 = " << ev->particle(2)->GetDaughter(0) << endl;
56 cout <<
"Bad return code!" << endl;
62 cout <<
"****************************************** " << endl;
63 cout <<
"total number of events " << total << endl;
64 cout <<
"****************************************** " << endl;
virtual void SetIOMode(Option_t *iomode="w")
number of transactions
virtual void Clear(Option_t *option="")
User defined functions.
static void setLevel(unsigned int level)
sets the debug level
Filling of all StMcEvent classes from g2t tables Transform all the data in the g2t tables into the co...
TChain * chain()
In read mode, returns pointer to the chain of .MuDst.root files that where selected.