1 void makeTimingFiles( Char_t *file=
"R6020047.lis",
20 Char_t *flavor=
"tower",
21 Int_t numberOfFilesInt=100,
23 Char_t *outdir=
"towers/"
33 if (gClassTable->GetID(
"TTable") < 0) {
34 gSystem->Load(
"libStar");
35 gSystem->Load(
"libPhysics");
37 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
38 loadSharedLibraries();
42 gSystem->Load(
"StEEmcPoolTIMING");
48 TChain* tree=muDstMaker->
chain(); assert(tree);
49 int nEntries=tree->GetEntries();
53 myEEmcCrateTimingMaker->
setFlavor(flavor);
54 myEEmcCrateTimingMaker->
setTiming(timing);
60 TString myOutName=file;
61 myOutName.ReplaceAll(
"lis",
"");
62 myOutName.ReplaceAll(
"MuDst.root",
"");
68 if(myChain->Init() != 0) cerr <<
"Failure during Init()!" << endl;
70 Int_t iRet = 0, runNumber = -1, nEventsAna = 0;
73 iRet = myChain->
Make();
75 cout <<
"rteutrn valuer snons ZEROOOOOOOOOOOOOOOOOOOOOOOOOOOOO" << endl;
78 if (nEventsAna % 100 == 0) {
79 cout <<
"Analyzing event " << nEventsAna << endl;
82 if (nEventsAna > nEntries)
break;
84 cout <<
"Analysed " << nEventsAna <<
" events" << endl;
void setDirectory(TString directory)
Output directory.
void setPhase(Int_t phase)
virtual void Clear(Option_t *option="")
User defined functions.
void setFlavor(TString testFlavor="tower")
void setTiming(Float_t timeDelay)
Specify the delay setting for this run.
TChain * chain()
In read mode, returns pointer to the chain of .MuDst.root files that where selected.
void setMinCounts(Int_t min)
void SetStatus(const char *arrType, int status)
void setNumberOfChannels(Int_t n=25)
Sets the number of channels above pedestal.