2 Char_t *jobId=
"7129031.",
6 Char_t *file=
"/star/data52/reco/ppProductionTrans/FullField/P06ie/2006/129/7129027/st_physics_adc_7129027_raw_1060001.MuDst.root",
7 Char_t *scratchDir =
"/star/u/staszak/working/bemc/") {
9 Int_t numberOfFilesInt = 1;
12 cout <<
"RUNNING job " << jobId <<
": reading " << numberOfFilesInt <<
" and writing output to "
13 << scratchDir <<
" - dir: " << dir <<
" - file: " << file << endl;
17 if (gClassTable->GetID(
"TTable") < 0) {
18 gSystem->Load(
"libStar");
19 gSystem->Load(
"libPhysics");
21 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
22 loadSharedLibraries();
24 gSystem->Load(
"StarMagField");
25 gSystem->Load(
"StMagF");
26 gSystem->Load(
"StTpcDb");
27 gSystem->Load(
"StDbUtilities");
28 gSystem->Load(
"StDaqLib");
29 gSystem->Load(
"StDbLib");
30 gSystem->Load(
"StDbBroker");
31 gSystem->Load(
"St_db_Maker");
32 gSystem->Load(
"StEEmcDbMaker");
34 gSystem->Load(
"StDaqLib");
35 gSystem->Load(
"StEmcRawMaker");
36 gSystem->Load(
"StEmcADCtoEMaker");
37 gSystem->Load(
"StPreEclMaker");
38 gSystem->Load(
"StEpcMaker");
40 gSystem->Load(
"StMcEvent");
41 gSystem->Load(
"StMcEventMaker");
42 gSystem->Load(
"StAssociationMaker");
46 gSystem->Load(
"StEmcPoolCSMStatusUtils");
61 myBemcStatusMaker->setOutputDirectory(scratchDir);
62 myBemcStatusMaker->setOutputFilePrefix(jobId);
66 if(myChain->Init() != 0) {
67 cerr <<
"Failure during Init()!" << endl;
76 iRet = myChain->
Make(nEventsAna);
78 cout <<
"rteutrn valuer snons ZEROOOOOOOOOOOOOOOOOOOOOOOOOOOOO" << endl;
82 if (nEventsAna % 100 == 0) {
83 cout <<
"Analyzing event " << nEventsAna << endl;
86 if (nEventsAna==20000)
break;
88 cout <<
"Analysed " << nEventsAna <<
" events" << endl;
void setPrint(Bool_t)
Obsolete function; users can control messages with logger config file.
virtual void Clear(Option_t *option="")
User defined functions.
static void setLevel(unsigned int level)
sets the debug level
void saveAllStEvent(Bool_t a)
Set to kTRUE if all hits are to be saved on StEvent.