Commit c01da494 authored by Qiunan Zhang's avatar Qiunan Zhang
Browse files

fix the bug of hit index exceeds the track array. quik fixed from...

fix the bug of hit index exceeds the track array. quik fixed from toffindtracks, the bug is from event clusterizer fNbHits is initialized both in ts and event, resulting in some arraies not consistent; Some history of the commends
parent 1200391c
......@@ -6609,12 +6609,16 @@ Bool_t CbmTofAnaTestbeam::FillHistos() {
Int_t iDutHitIndex(-1);
if (fbAttachDutHitToTracklet) {
iDutHitIndex = itDutHitMatch->second.first;
cout<<"attach Hit to track"<<" DutHitIndex "<<iDutHitIndex<<endl;
// pHit = vDutHit[vHitMap[iTrk].begin()->second];
pHit = dynamic_cast<CbmTofHit*>(fTofHitsColl->At(iDutHitIndex));
} else {
iDutHitIndex =
pTrk->GetTofHitIndex(pTrk->HitIndexOfAddr(fiDutAddr));
pHit = pTrk->HitPointerOfAddr(fiDutAddr);
cout<<" hit index on trk "<<pTrk->HitIndexOfAddr(fiDutAddr)<<endl;
cout<<"not attach Hit to track"<<" DutHitIndex "<<iDutHitIndex<<endl;
cout<<"total hits: "<<fTofHitsColl->GetEntriesFast()<< endl;
}
if (NULL == pHit)
......@@ -6665,6 +6669,7 @@ Bool_t CbmTofAnaTestbeam::FillHistos() {
Double_t dTot = 0.;
CbmMatch* digiMatch =
(CbmMatch*) fTofDigiMatchColl->At(iDutHitIndex);
LOG(info) << "try to get Tof Digi Match for hit index:"<<iDutHitIndex<<" among digimatch size: "<<fTofDigiMatchColl->GetEntriesFast()<<"trk has"<<pTrk->GetNofHits()<<"hits";
if (NULL != digiMatch)
if (fDigiMan->IsPresent(ECbmModuleId::kTof))
for (Int_t iLink = 0; iLink < digiMatch->GetNofLinks();
......@@ -6688,7 +6693,7 @@ Bool_t CbmTofAnaTestbeam::FillHistos() {
else
LOG(error) << "no Tof Digis";
else
LOG(error) << "no Tof Digi Match";
LOG(error) << "no Tof Digi Match for hit index:"<<iDutHitIndex;
if (fbAttachDutHitToTracklet) {
// fhDutChi_Match->Fill(vHitMap[iTrk].begin()->first);
......
......@@ -108,3 +108,242 @@ TBrowser n
.q
.x mcbm_display_event_qz_short.C
.q
.x mcbm_digi_qz.C(100000000,"/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.80.057",1.0e+05,1.e4,kFALSE,0.8,0.057)
.x mcbm_display_event_qz_short.C
.x mcbm_reco_event_tb_onlybuildevent_qz.C(100000000,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.80.057","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","mcbm_beam_2020_03",kTRUE,1.0e+05,1.e4)
.x mcbm_display_event_qz_short.C
.x mcbm_display_event_qz_short.C
.q
.x mcbm_display_event_qz_short.C
.x mcbm_display_event_qz_short.C
TFile *_file0 = TFile::Open("data/digidev_mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.80.057.1.0e+05.100.2.onlybuildevent_000010500_020_50_Calmcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.80.057.1.0e+05.100.2.onlybuildevent.out.root")
TBrowser n
.q
TFile *_file0 = TFile::Open("data/digidev_mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.80.057.1.0e+05.100.2.onlybuildevent_000010500_020_50_Calmcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.80.057.1.0e+05.100.2.onlybuildevent.out.root")
TBrowser n
.a
.q
.x ana_trks_eval.C(10,12002,-1,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.80.057.1.0e+05.100.2.onlybuildevent","000010500_020",22,600733,0.9,50,50,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.80.057.1.0e+05.100.2.onlybuildevent",1,1,10500,1,0)
.q
.x ana_trks_eval.C(100,12002,-1,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.80.057.1.0e+05.100.2.onlybuildevent","000010500_020",22,600733,0.9,50,50,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.80.057.1.0e+05.100.2.onlybuildevent",1,1,10500,1,0)
.q
.x ana_trks_eval.C(100,12002,-1,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.80.057.1.0e+05.100.2.onlybuildevent","000010500_020",22,600733,0.9,50,50,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.80.057.1.0e+05.100.2.onlybuildevent",1,1,10500,1,0)
.q
.x ana_trks_eval.C(1000,12002,-1,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.80.057.1.0e+05.100.2.onlybuildevent","000010500_020",22,600733,0.9,50,50,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.80.057.1.0e+05.100.2.onlybuildevent",1,1,10500,1,0)
.x mcbm_display_event_qz_short.C
TFile *_file0 = TFile::Open("data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.70.057.dis.root")
TBrowser n
.q
.q
.x ana_trks_eval.C(1000,12002,-1,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.80.057.1.0e+05.100.2.onlybuildevent","000010500_020",22,600733,0.9,50,50,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.80.057.1.0e+05.100.2.onlybuildevent",1,1,10500,1,0)
.q
.x ana_trks_eval.C(1000,12002,-1,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.70.057.1.0e+05.100.2.onlybuildevent","000010500_020",22,600733,0.9,50,50,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.70.057.1.0e+05.100.2.onlybuildevent",1,1,10500,1,0)
.q
.x ana_trks_eval.C(1000,12002,-1,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.70.057.1.0e+05.100.2.onlybuildevent","000010500_020",22,600733,0.9,50,50,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.70.057.1.0e+05.100.2.onlybuildevent",1,1,10500,1,0)
.q
.x mcbm_display_event_qz_short.C
.x mcbm_display_event_qz_short.C
.q
.x mcbm_display_event_qz.C
.q
.x mcbm_display_event_qz.C
.q
.x mcbm_display_event_qz_short.C
.q
.x mcbm_display_event_qz_short.C
TFile *_file0 = TFile::Open("data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.70.057.tra.root")
TBrowser n
.q
TFile *_file0 = TFile::Open("data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.70.057.tra.root")
TBrowser n
.q
TFile *_file0 = TFile::Open("data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.70.057.1.0e+05.100.2.onlybuildevent.raw.root")
TBrowser n
.q
TFile *_file0 = TFile::Open("data/digidev_mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.70.057.1.0e+05.100.2.onlybuildevent_000010500_020_50_Calmcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.70.057.1.0e+05.100.2.onlybuildevent.out.root")
TBrowser n
.q
TFile *_file0 = TFile::Open("data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.70.057.1.0e+05.100.2.onlybuildevent.raw.root")
TBrowser n
.q
.x mcbm_display_event_qz_short.C
.x mcbm_display_event_qz_short.C
.q
TFile *_file0 = TFile::Open("data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.70.057.tra.root")
TBrowser n
.q
.x mcbm_display_event_qz_short.C
.q
.x mcbm_display_event_qz_short.C
.q
.x mcbm_display_event_qz.C
.x mcbm_display_event_qz.C
.q
.x mcbm_display_event_qz.C
.x mcbm_display_event_qz_short.C
.q
.x mcbm_display_event_qz_short.C
.q
.x mcbm_display_event_qz.C
.q
.x mcbm_display_event_qz.C
.q
.x mcbm_display_event_qz.C
.q
.x mcbm_display_event_qz.C
.q
.x mcbm_display_event_qz.C
.q
.x mcbm_display_event_qz.C
.q
.x mcbm_display_event_qz_short.C
.q
.x mcbm_display_event_qz.C
.q
.x mcbm_display_event_qz.C
.x mcbm_display_event_qz.C
.x mcbm_display_event_qz.C
.qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
.x mcbm_display_event_qz.C
.x mcbm_display_event_qz_short.C
.q
.x mcbm_display_event_qz.C
.x mcbm_display_event_qz.C
.q
.x mcbm_display_event_qz.C
.x mcbm_display_event_qz.C
.q
.x mcbm_digi_qz.C(100000000,"/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057",1.0e+05,1.e4,kFALSE,0.88,0.057)
.x mcbm_digi_qz.C(100000000,"/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057",1.0e+05,1.e4,kFALSE,0.88,0.057)
.x mcbm_digi_qz.C(100,"/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057",1.0e+05,1.e4,kFALSE,0.88,0.057)
.x mcbm_reco_event_tb_onlybuildevent_qz.C(100000000,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.70.057","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","mcbm_beam_2020_03",kTRUE,1,1.e4)
.x mcbm_transport_qz.C(100,"mcbm_beam_2020_03","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","./data/urqmd.auau.1.24gev.mbias.00001.0.880.057.root")
.x mcbm_digi_qz.C(100,"/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057",1.0e+05,1.e4,kFALSE,0.88,0.057)
.x mcbm_reco_event_tb_onlybuildevent_qz.C(100,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","mcbm_beam_2020_03",kTRUE,1.0e+05,1.e4)
.q
TFile *_file0 = TFile::Open("data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057.tra.root")
TBrowser n
.q
TFile *_file0 = TFile::Open("data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057.1.0e+05.raw.root")
TBrowser n
.q
.x mcbm_display_event_qz.C
.x mcbm_display_event_qz.C
.q
TFile *_file0 = TFile::Open("data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057.tra.root")
TBrowser n
.q
.x mcbm_transport_qz.C(10,"mcbm_beam_2020_03","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","./data/urqmd.auau.1.24gev.mbias.00001.0.880.057.root")
.x mcbm_digi_qz.C(10,"/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057",1.0e+05,1.e4,kFALSE,0.88,0.057)
.x mcbm_reco_event_tb_onlybuildevent_qz.C(10,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","mcbm_beam_2020_03",kTRUE,1.0e+05,1.e4)
.x mcbm_transport_qz.C(10,"mcbm_beam_2020_03","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","./data/urqmd.auau.1.24gev.mbias.00001.0.880.057.root")
.x mcbm_digi_qz.C(10,"/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057",1.0e+05,1.e4,kFALSE,0.88,0.057)
.x mcbm_reco_event_tb_onlybuildevent_qz.C(10,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","mcbm_beam_2020_03",kTRUE,1.0e+05,1.e4)
.x mcbm_transport_qz.C(100,"mcbm_beam_2020_03","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","./data/urqmd.auau.1.24gev.mbias.00001.0.880.057.root")
.x mcbm_digi_qz.C(100,"/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057",1.0e+05,1.e4,kFALSE,0.88,0.057)
.x mcbm_reco_event_tb_onlybuildevent_qz.C(100,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","mcbm_beam_2020_03",kTRUE,1.0e+05,1.e4)
.x mcbm_display_event_qz.C
TFile *_file0 = TFile::Open("data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057.tra.root")
TBrowser n
.q
.x mcbm_display_event_qz.C
TFile *_file0 = TFile::Open("data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057.tra.root")
TBrowser n
.q
.x mcbm_display_event_qz.C
.x mcbm_display_event_qz.C
.x mcbm_display_event_qz_short.C
.q
.x mcbm_display_event_qz_short.C
.q
.x mcbm_display_event_qz_short.C
.q
.x mcbm_display_event_qz.C
.x mcbm_display_event_qz_short.C
.q
.x mcbm_display_event_qz_short.C
.q
TFile *_file0 = TFile::Open("data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057.tra.root")
TBrowser n
TFile *_file0 = TFile::Open("data/hits_mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.70.057.1.0e+05.100.2.onlybuildevent_000010500_020_012002_022.out.root")
TBrowser n
.q
TFile *_file0 = TFile::Open("data/hits_mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.7withrotation0.057.1.0e+05.100.2.onlybuildevent_000010500_020_012002_022.out.root")
TBrowser n
.q
.q
.x mcbm_display_event_qz_short.C
.q
.qqqqqqqqqqqqqqqqqqqqqq
.x mcbm_display_event_qz.C
.x mcbm_display_event_qz_short.C
.qqqqqqqqqqqqqqqqqqqqqqqqqqqq
TFile *_file0 = TFile::Open("data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.7withrotation0.057.1.0e+05.raw.root")
TBrowser n
.q
.x mcbm_display_event_qz_short.C
.qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
TFile *_file0 = TFile::Open("data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057.tra.root")
TBrowser n
FairRootManager* fManager = FairRootManager::Instance();
.qqqqqqqqqqqqqqqqqqqqqqqqq
TFile *_file0 = TFile::Open("data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057.tra.root")
TBrowser n
FairRootManager* fManager = FairRootManager::Instance();
source ~/Desktop/cbmroot/build/config.sh
.q
.x mcbm_transport_qz.C(100,"mcbm_beam_2020_03","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","./data/urqmd.auau.1.24gev.mbias.00001.0.880.057.root")
.x mcbm_digi_qz.C(100,"/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057",1.0e+05,1.e4,kFALSE,0.88,0.057)
.x mcbm_reco_event_tb_onlybuildevent_qz.C(100,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","mcbm_beam_2020_03",kTRUE,1.0e+05,1.e4)
.x mcbm_display_event_qz_short.C
.q\
.x mcbm_display_event_qz_short.C
.q
.x mcbm_display_event_qz_short.C
.qqqqqqqqqqqqqqqqq
TFile *_file0 = TFile::Open("data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057.tra.root")
TBrowser n
.q
.x mcbm_transport_qz.C(100,"mcbm_beam_2020_03","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","./data/urqmd.auau.1.24gev.mbias.00001.0.880.057.root")
.x mcbm_digi_qz.C(100,"/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057",1.0e+05,1.e4,kFALSE,0.88,0.057)
.x mcbm_reco_event_tb_onlybuildevent_qz.C(100,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","mcbm_beam_2020_03",kTRUE,1.0e+05,1.e4)
.x mcbm_display_event_qz_short.C
.q
.x mcbm_display_event_qz_short.C
.q
.x mcbm_display_event_qz_short.C
.x mcbm_display_event_qz_short.C
.q
.x mcbm_display_event_qz.C
.q
TFile *_file0 = TFile::Open("data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057.1.0e+05.raw.root")
TBrowser n
.q
TFile *_file0 = TFile::Open("data/digidev_mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057.1.0e+05.100.2.onlybuildevent_000010500_020_50_Calmcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057.1.0e+05.100.2.onlybuildevent.out.root")
TBrowser n
.q
TFile *_file0 = TFile::Open("data/digidev_mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057.1.0e+05.100.2.onlybuildevent_000010500_020_50_Calmcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057.1.0e+05.100.2.onlybuildevent.out.root")
TBrowser n
.q
.x mcbm_display_event_qz.C
.q
.x mcbm_display_event_qz.C
.q
.x mcbm_transport_qz.C(100,"mcbm_beam_2020_03","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","./data/urqmd.auau.1.24gev.mbias.00001.0.880.057.root")
.x mcbm_digi_qz.C(100,"/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057",1.0e+05,1.e4,kFALSE,0.88,0.057)
.x mcbm_reco_event_tb_onlybuildevent_qz.C(100,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","mcbm_beam_2020_03",kTRUE,1.0e+05,1.e4)
.x mcbm_transport_qz.C(100,"mcbm_beam_2020_03","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","./data/urqmd.auau.1.24gev.mbias.00001.0.880.057.root")
.x mcbm_digi_qz.C(100,"/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057",1.0e+05,1.e4,kFALSE,0.88,0.057)
.x mcbm_reco_event_tb_onlybuildevent_qz.C(100,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","mcbm_beam_2020_03",kTRUE,1.0e+05,1.e4)
.x mcbm_transport_qz.C(100,"mcbm_beam_2020_03","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","./data/urqmd.auau.1.24gev.mbias.00001.0.880.057.root")
.x mcbm_digi_qz.C(100,"/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057",1.0e+05,1.e4,kFALSE,0.88,0.057)
.x mcbm_reco_event_tb_onlybuildevent_qz.C(100,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","mcbm_beam_2020_03",kTRUE,1.0e+05,1.e4)
.x mcbm_transport_qz.C(100,"mcbm_beam_2020_03","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","./data/urqmd.auau.1.24gev.mbias.00001.0.880.057.root")
.x mcbm_digi_qz.C(100,"/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057",1.0e+05,1.e4,kFALSE,0.88,0.057)
.x mcbm_reco_event_tb_onlybuildevent_qz.C(100,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","mcbm_beam_2020_03",kTRUE,1.0e+05,1.e4)
.x mcbm_transport_qz.C(100,"mcbm_beam_2020_03","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","./data/urqmd.auau.1.24gev.mbias.00001.0.880.057.root")
.x mcbm_digi_qz.C(100,"/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057",1.0e+05,1.e4,kFALSE,0.88,0.057)
.x mcbm_reco_event_tb_onlybuildevent_qz.C(100,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","mcbm_beam_2020_03",kTRUE,1.0e+05,1.e4)
.x mcbm_transport_qz.C(100,"mcbm_beam_2020_03","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","./data/urqmd.auau.1.24gev.mbias.00001.0.880.057.root")
.x mcbm_digi_qz.C(100,"/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data/mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057",1.0e+05,1.e4,kFALSE,0.88,0.057)
.x mcbm_reco_event_tb_onlybuildevent_qz.C(100,"mcbm_beam_2020_03.auau.1.24gev.mbias.00001.0.880.057","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","/lustre/cbm/users/qzhang/cbmrootGit/macro/mcbm/data","mcbm_beam_2020_03",kTRUE,1.0e+05,1.e4)
......@@ -1098,6 +1098,7 @@ void CbmTofFindTracks::Exec(Option_t* opt) {
static_cast<Int_t>(tEvent->GetIndex(ECbmDataType::kTofHit, iHit));
CbmTofHit* tHit =
dynamic_cast<CbmTofHit*>(fTofHitArrayIn->At(iHitIndex));
cout<<"tof hit index array: iNbHits"<<iNbHits<<" iHitIndex "<<iHitIndex<<endl;
fTofHitIndexArray[iNbHits] = iHitIndex;
new ((*fTofHitArray)[iNbHits++]) CbmTofHit(*tHit);
}
......@@ -1109,12 +1110,20 @@ void CbmTofFindTracks::Exec(Option_t* opt) {
CbmTofTracklet* pTrk = (CbmTofTracklet*) fTrackArray->At(iTrk);
new ((*fTrackArrayOut)[iNbTrks]) CbmTofTracklet(*pTrk);
pTrk = (CbmTofTracklet*) fTrackArrayOut->At(iNbTrks);
//zqn commenout for event index instead of time slice index
/*
for (Int_t iHit = 0; iHit < pTrk->GetNofHits();
iHit++) //update to original index
{
pTrk->SetTofHitIndex(iHit,
fTofHitIndexArray[pTrk->GetTofHitIndex(iHit)]);
cout<<"before the set function"<< pTrk->GetTofHitIndex(iHit)<<endl;
cout<<"fTofHitIndexArray[pTrk->GetTofHitIndex(iHit)] " << fTofHitIndexArray[pTrk->GetTofHitIndex(iHit)]<<endl;
//pTrk->SetTofHitIndex(iHit,
//fTofHitIndexArray[pTrk->GetTofHitIndex(iHit)]);
cout<<"after the set function"<< pTrk->GetTofHitIndex(iHit)<<endl;
}
*/
tEvent->AddData(ECbmDataType::kTofTrack, iNbTrks);
iNbTrks++;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment