7 void doEmcEmbedEvent(
int nevents = 10,
char* file=
"*.event.root",Bool_t print = kTRUE)
9 gROOT->Macro(
"LoadLogger.C");
10 gROOT->Macro(
"loadMuDst.C");
11 gSystem->Load(
"StarMagField");
12 gSystem->Load(
"StMagF");
13 gSystem->Load(
"StTpcDb");
14 gSystem->Load(
"StDetectorDbMaker");
15 gSystem->Load(
"StDbUtilities");
16 gSystem->Load(
"StEEmcUtil");
17 gSystem->Load(
"StMcEvent");
18 gSystem->Load(
"StMcEventMaker");
19 gSystem->Load(
"StDaqLib");
20 gSystem->Load(
"StAssociationMaker");
21 gSystem->Load(
"StMcAnalysisMaker");
22 gSystem->Load(
"StDbBroker");
23 gSystem->Load(
"St_db_Maker");
24 gSystem->Load(
"libgeometry_Tables");
25 gSystem->Load(
"StEmcRawMaker");
26 gSystem->Load(
"StEmcADCtoEMaker");
27 gSystem->Load(
"StPreEclMaker");
28 gSystem->Load(
"StEpcMaker");
29 gSystem->Load(
"StEmcSimulatorMaker");
30 gSystem->Load(
"StEmcMixerMaker");
34 if(print) chain->SetDebug(1);
39 io->SetBranch(
"*",0,
"0");
40 io->SetBranch(
"eventBranch",0,
"r");
41 io->SetBranch(
"geantBranch",0,
"r");
44 db1->SetFlavor(
"sim",
"bprsCalib");
91 while ( istat!=2 && istat!=3 && istat!=4 && iev<=nevents ) {
93 istat = chain->
Make();
94 emcAssociation->printMaps();
95 if(iev%20==0) cout <<
"Finished processing event number "<<iev <<endl;
void setEmbeddingMode(Bool_t a)
Set embedding mode (default is kFALSE)
void setPrint(Bool_t)
Obsolete function; users can control messages with logger config file.
virtual void SetIOMode(Option_t *iomode="w")
number of transactions
virtual void Clear(Option_t *option="")
User defined functions.
void setPrint(Bool_t a)
Set print log.
void setPrint(Bool_t a)
Obsolete function; users can control messages with logger config file.
void setPrint(Bool_t a)
Obsolete function; users can control messages with logger config file.
Filling of all StMcEvent classes from g2t tables Transform all the data in the g2t tables into the co...
void setPrint(Bool_t a)
Obsolete function; users can control messages with logger config file.
void saveAllStEvent(Bool_t a)
Set to kTRUE if all hits are to be saved on StEvent.