7 void TestJpsiTopo(
int nevents = 1e6,
const char* mudstfile =
"/star/data28/reco/ppProductionJPsi/FullField/P06id/2006/139/7139023/st_jpsi_7139023_raw_1130010.MuDst.root")
9 gROOT->Macro(
"loadMuDst.C");
10 gROOT->Macro(
"LoadLogger.C");
13 gSystem->Load(
"StTpcDb");
14 gSystem->Load(
"StDetectorDbMaker");
15 gSystem->Load(
"StDbUtilities");
16 gSystem->Load(
"StMcEvent");
17 gSystem->Load(
"StMcEventMaker");
18 gSystem->Load(
"StDaqLib");
19 gSystem->Load(
"StEmcRawMaker");
20 gSystem->Load(
"StEmcADCtoEMaker");
21 gSystem->Load(
"StEpcMaker");
22 gSystem->Load(
"StEmcSimulatorMaker");
23 gSystem->Load(
"StDbBroker");
24 gSystem->Load(
"St_db_Maker");
25 gSystem->Load(
"StEEmcUtil");
26 gSystem->Load(
"StEEmcDbMaker");
27 gSystem->Load(
"StTriggerUtilities");
49 trigSimu->setMC(
false);
51 trigSimu->bemc->setConfig(StBemcTriggerSimu::kOffline);
57 for (
int iEvent = 1; iEvent <= nevents; ++iEvent) {
59 int status = chain->
Make(iEvent);
60 if (status ==
kStSkip)
continue;
63 cout <<
"Run = " << chain->
GetRunNumber() <<
", Event = " << chain->GetEventNumber() << endl;
66 if (trigSimu->isTrigger(117705) || trigSimu->isTrigger(137705)) {
68 cout <<
"Number of J/psi candidates = " << trigSimu->bemc->numberOfJpsiCandidates() << endl;
70 for (
int i = 0; i < trigSimu->bemc->numberOfJpsiCandidates(); ++i) {
71 cout <<
"J/psi candidate #" << i
72 <<
": towerId1 = " << trigSimu->bemc->jpsiCandidateFirstTowerId(i)
73 <<
", towerId2 = " << trigSimu->bemc->jpsiCandidateSecondTowerId(i)
virtual void Clear(Option_t *option="")
User defined functions.
virtual Int_t GetRunNumber() const
Returns the current RunNumber.