1 enum dataFormat {dst, evt, tree};
18 const char *venusFile =
"set*geant.root";
19 const char *venusPath =
"/disk00001/star/auau200/venus412/default/b0_3/year_1b/hadronic_on/tfs_4/";
20 const char *dstFile =
"/disk00001/star/auau200/two_photon/starlight/twogam/year_1b/hadronic_on/tfs/ric0022_01_14552evts.dst.root";
21 const char *xdfFile =
"/afs/rhic.bnl.gov/star/data/samples/psc0054_07_40evts_dst.xdf";
22 const char *mdcFile =
"/disk00001/star/auau200/venus412/default/b0_3/year_1b/hadronic_on/tss/psc0081_07_40evts.root";
23 const char *geantFile =
"/disk00000/star/auau200/hijing135/jetq_off/b0_3/year_1b/hadronic_on/tfsr/set0041_01_53evts.geant.root";
24 const char *fileList[] = {dstFile,xdfFile,mdcFile,0};
27 void StHbtMuDst2TTreeDstMaker(
28 const Int_t nevents=999999,
int maxFiles=2,
29 const Char_t *path=
"",
30 const Char_t *fileName=
"AuAu200.lis",
31 const Char_t *filter=
"st_physics_2302016:MuDst.root",
32 const Char_t *outFile=
"MuDst2TTree.root")
37 gSystem->Load(
"St_base");
38 gSystem->Load(
"StChain");
39 gSystem->Load(
"St_Tables");
40 gSystem->Load(
"StMagF");
41 gSystem->Load(
"StUtilities");
42 gSystem->Load(
"StTreeMaker");
43 gSystem->Load(
"StIOMaker");
44 gSystem->Load(
"StarClassLibrary");
45 gSystem->Load(
"StTpcDb");
46 gSystem->Load(
"StDbUtilities");
47 gSystem->Load(
"StEvent");
48 gSystem->Load(
"StEventMaker");
49 gSystem->Load(
"StEventUtilities");
50 gSystem->Load(
"StEmcUtil");
51 gSystem->Load(
"St_emc_Maker");
52 gSystem->Load(
"StMcEvent");
53 gSystem->Load(
"StMcEventMaker");
54 gSystem->Load(
"StAssociationMaker");
55 gSystem->Load(
"StMcAnalysisMaker");
56 gSystem->Load(
"StFlowMaker");
57 gSystem->Load(
"StFlowTagMaker");
58 gSystem->Load(
"StFlowAnalysisMaker");
59 gSystem->Load(
"StStrangeMuDstMaker");
60 gSystem->Load(
"StMuDSTMaker");
61 gSystem->Load(
"StHbtMaker");
64 cout <<
" loading done " << endl;
75 dbReader->
addDb(
"P02g.db");
88 cout <<
"StHbtMaker instantiated"<<endl;
89 cout <<
"StHbtMaker::Init - setting up Reader and Analyses..." << endl;
96 Reader->setTrackType(1);
97 TheManager->SetEventReader(Reader);
102 EventCut->SetEventMult(0,100000);
103 EventCut->SetVertZPos(-75.0,75.0);
106 AllTrackCut->SetNSigmaElectron(-1000.0,1000.0);
107 AllTrackCut->SetNSigmaPion(-1000.0,1000.0);
108 AllTrackCut->SetNSigmaKaon(-1000.0,1000.0);
109 AllTrackCut->SetNSigmaProton(-1000.0,1000.0);
110 AllTrackCut->SetNHits(10,1000);
111 AllTrackCut->SetP(0.0,50.0);
112 AllTrackCut->SetPt(0.0,50.0);
113 AllTrackCut->SetRapidity(-15,15);
114 AllTrackCut->SetDCA(0.0,200.);
115 AllTrackCut->SetCharge(0);
116 AllTrackCut->SetMass(0.139);
119 V0Cut->SetdcaV0daughters(0.,1.0);
120 V0Cut->SetdcaV0ToPrimVertex(0.,1.);
121 V0Cut->SetdecayLengthV0(3.0,5000.);
122 V0Cut->SettpcHitsPos(15,50);
123 V0Cut->SettpcHitsNeg(15,50);
124 V0Cut->SetdcaPosToPrimVertex(1.8,50.);
125 V0Cut->SetdcaNegToPrimVertex(3.5,50.);
126 V0Cut->SetPt(0.,10.0);
129 XiCut->SetdcaXidaughters(0.,1.0);
130 XiCut->SetdcaXiToPrimVertex(0.,1.);
131 XiCut->SetdecayLengthXi(3.0,5000.);
132 XiCut->SetPt(0.,10.0);
133 cout <<
"READER SET UP.... " << endl;
139 TheManager->AddEventWriter(allWriter);
140 allWriter->SetEventCut(EventCut);
141 allWriter->SetTrackCut(AllTrackCut);
142 allWriter->SetV0Cut(V0Cut);
143 allWriter->SetXiCut(XiCut);
144 cout <<
"WRITER SET UP.... " << endl;
150 for (Int_t iev=0;iev<nevents; iev++) {
151 cout <<
"StHbtExample -- Working on eventNumber " << iev << endl;
153 int iret = chain->
Make(iev);
155 cout <<
"Bad return code!" << endl;
161 cout <<
" End of Analysis " << endl;
virtual void Clear(Option_t *option="")
User defined functions.
int addDb(const char *dbFile)
add entries in dbFile to internal data base ( mDb ), will call sortDb(), returns number of entries in...
static void setLevel(unsigned int level)
sets the debug level