20 #include "TClonesArray.h"
34 PndTrkHit hit(hitID, detID, used, iregion, -1, pos, 0., -1);
35 hitlist.push_back(hit);
40 PndTrkHit hit(hitID, detID, used, iregion, tubeID, pos, isochrone, -1);
41 hitlist.push_back(hit);
46 PndTrkHit hit(hitID, detID, used, iregion, sensorID, pos, 0.0, -1);
47 hitlist.push_back(hit);
53 hitlist.push_back(*hit);
59 hit->Position(position);
60 AddHit(hitid, detid, 0, -1, position);
64 for(
int ihit = 0; ihit < array->GetEntriesFast(); ihit++) {
65 FairHit *
hit = (FairHit*) array->At(ihit);
66 AddHit(ihit, detID, hit);
71 return &hitlist[index];
76 std::vector< PndTrkHit >::iterator itr = hitlist.begin();
77 while(itr != hitlist.end()) {
78 if(
id == (*itr).GetHitID())
return &(*itr);
87 cout <<
"###############################" << endl;
88 std::vector< PndTrkHit >::iterator itr;
89 itr = hitlist.begin();
90 while(itr != hitlist.end()) {
91 cout <<
" " << (*itr).GetHitID() <<
" " << (*itr).GetDetectorID() << endl;
97 std::vector< PndTrkHit >::iterator itr = hitlist.begin();
98 while(itr != hitlist.end()) {
void AddTCA(Int_t detID, TClonesArray *array)
PndTrkHit * GetHitByID(int id)
PndTrkHit * GetHit(int index)
void Draw(Color_t color=kBlack)
int hit(Int_t nEvents=0, TString inFile="sim.root", TString parFile="par.root", TString inDigi="digi.root", TString outFile="hit.root", Int_t timeBased=0)
void AddHit(Int_t hitID, Int_t detID, Bool_t used, Int_t iregion, TVector3 &pos)