FairRoot/PandaRoot
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
PndTrkSdsHitList Class Reference

#include <PndTrkSdsHitList.h>

Inheritance diagram for PndTrkSdsHitList:
PndTrkHitList

Public Member Functions

 PndTrkSdsHitList ()
 
 PndTrkSdsHitList (Int_t iregion)
 
 ~PndTrkSdsHitList ()
 
PndTrkSdsHitListInstanciate ()
 
PndTrkSdsHitListInstanciatePixel ()
 
PndTrkSdsHitListInstanciateStrip ()
 
void AddHit (Int_t hitid, Int_t detid, FairHit *hit)
 
void SetRegion (Int_t reg)
 
void Clear ()
 
void AddHit (Int_t hitID, Int_t detID, Bool_t used, Int_t iregion, TVector3 &pos)
 
void AddHit (Int_t hitID, Int_t detID, Bool_t used, Int_t iregion, Int_t tubeID, TVector3 &pos, Double_t isochrone)
 
void AddHit (Int_t hitID, Int_t detID, Bool_t used, Int_t iregion, Int_t sensorID, TVector3 &pos)
 
void AddHit (PndTrkHit *hit)
 
void AddTCA (Int_t detID, TClonesArray *array)
 
PndTrkHitGetHit (int index)
 
std::vector< PndTrkHitGetHitList ()
 
PndTrkHitGetHitByID (int id)
 
Int_t GetNofHits ()
 
void RemoveHit (PndTrkHit *hit)
 
void Print ()
 
void Draw (Color_t color=kBlack)
 
void ClearList ()
 

Static Public Member Functions

static PndTrkSdsHitListInstance ()
 
static PndTrkSdsHitListInstancePixel ()
 
static PndTrkSdsHitListInstanceStrip ()
 

Protected Member Functions

 ClassDef (PndTrkSdsHitList, 1)
 
 ClassDef (PndTrkHitList, 1)
 

Protected Attributes

Int_t fIRegion
 
std::vector< PndTrkHithitlist
 

Static Protected Attributes

static PndTrkSdsHitListfpixInstance = 0
 
static PndTrkSdsHitListfstrInstance = 0
 

Detailed Description

Definition at line 17 of file PndTrkSdsHitList.h.

Constructor & Destructor Documentation

PndTrkSdsHitList::PndTrkSdsHitList ( )

Definition at line 58 of file PndTrkSdsHitList.cxx.

PndTrkSdsHitList::PndTrkSdsHitList ( Int_t  iregion)

Definition at line 60 of file PndTrkSdsHitList.cxx.

60 : PndTrkHitList(), fIRegion(iregion) {}
PndTrkSdsHitList::~PndTrkSdsHitList ( )

Definition at line 62 of file PndTrkSdsHitList.cxx.

References fpixInstance, and fstrInstance.

62  {
63  fpixInstance = 0;
64  fstrInstance = 0;
65 }
static PndTrkSdsHitList * fpixInstance
static PndTrkSdsHitList * fstrInstance

Member Function Documentation

void PndTrkHitList::AddHit ( Int_t  hitID,
Int_t  detID,
Bool_t  used,
Int_t  iregion,
TVector3 &  pos 
)
inherited

Definition at line 32 of file PndTrkHitList.cxx.

References hit.

Referenced by PndTrkSciTHitList::AddHit(), PndTrkSttHitList::AddHit(), PndTrkGemHitList::AddHit(), and AddHit().

33 {
34  PndTrkHit hit(hitID, detID, used, iregion, -1, pos, 0., -1);
35  hitlist.push_back(hit);
36 }
TVector3 pos
std::vector< PndTrkHit > hitlist
Definition: PndTrkHitList.h:59
PndSdsMCPoint * hit
Definition: anasim.C:70
void PndTrkHitList::AddHit ( Int_t  hitID,
Int_t  detID,
Bool_t  used,
Int_t  iregion,
Int_t  tubeID,
TVector3 &  pos,
Double_t  isochrone 
)
inherited

Definition at line 38 of file PndTrkHitList.cxx.

References hit.

39 {
40  PndTrkHit hit(hitID, detID, used, iregion, tubeID, pos, isochrone, -1);
41  hitlist.push_back(hit);
42 }
TVector3 pos
std::vector< PndTrkHit > hitlist
Definition: PndTrkHitList.h:59
PndSdsMCPoint * hit
Definition: anasim.C:70
void PndTrkHitList::AddHit ( Int_t  hitID,
Int_t  detID,
Bool_t  used,
Int_t  iregion,
Int_t  sensorID,
TVector3 &  pos 
)
inherited

Definition at line 44 of file PndTrkHitList.cxx.

References hit.

45 {
46  PndTrkHit hit(hitID, detID, used, iregion, sensorID, pos, 0.0, -1);
47  hitlist.push_back(hit);
48 }
TVector3 pos
std::vector< PndTrkHit > hitlist
Definition: PndTrkHitList.h:59
PndSdsMCPoint * hit
Definition: anasim.C:70
void PndTrkSdsHitList::AddHit ( Int_t  hitid,
Int_t  detid,
FairHit *  hit 
)
virtual

Reimplemented from PndTrkHitList.

Definition at line 67 of file PndTrkSdsHitList.cxx.

References PndTrkHitList::AddHit(), and fIRegion.

68 {
69  TVector3 position;
70  hit->Position(position);
71 
72  PndTrkHitList::AddHit(hitid, detid, 0, fIRegion, ((PndSdsHit*) hit)->GetSensorID(), position); // CHECK iregion
73 }
void AddHit(Int_t hitID, Int_t detID, Bool_t used, Int_t iregion, TVector3 &pos)
PndSdsMCPoint * hit
Definition: anasim.C:70
void PndTrkHitList::AddHit ( PndTrkHit hit)
inherited

Definition at line 51 of file PndTrkHitList.cxx.

52 {
53  hitlist.push_back(*hit);
54 }
std::vector< PndTrkHit > hitlist
Definition: PndTrkHitList.h:59
void PndTrkHitList::AddTCA ( Int_t  detID,
TClonesArray *  array 
)
inherited

Definition at line 63 of file PndTrkHitList.cxx.

References hit.

Referenced by PndTrkLegendreNew::Initialize(), PndTrkLegendreSecTask2::Initialize(), PndTrkLegendreSecTask::Initialize(), PndTrkLegendreTask::Initialize(), PndTrkCombiLegendreTask::Initialize(), and PndTrkTrackFinder::Initialize().

63  {
64  for(int ihit = 0; ihit < array->GetEntriesFast(); ihit++) {
65  FairHit *hit = (FairHit*) array->At(ihit);
66  AddHit(ihit, detID, hit);
67  }
68 }
void AddHit(Int_t hitID, Int_t detID, Bool_t used, Int_t iregion, TVector3 &pos)
PndSdsMCPoint * hit
Definition: anasim.C:70
PndTrkSdsHitList::ClassDef ( PndTrkSdsHitList  ,
 
)
protected
PndTrkHitList::ClassDef ( PndTrkHitList  ,
 
)
protectedinherited
void PndTrkSdsHitList::Clear ( void  )
inline

Definition at line 37 of file PndTrkSdsHitList.h.

References PndTrkHitList::ClearList(), fpixInstance, and fstrInstance.

Referenced by PndTrkTrackFinder::Reset().

37  {
38  ClearList();
39  fpixInstance = NULL;
40  fstrInstance = NULL;
41  }
void ClearList()
Definition: PndTrkHitList.h:52
static PndTrkSdsHitList * fpixInstance
static PndTrkSdsHitList * fstrInstance
void PndTrkHitList::ClearList ( )
inlineinherited

Definition at line 52 of file PndTrkHitList.h.

References PndTrkHitList::hitlist.

Referenced by PndTrkSciTHitList::Clear(), PndTrkGemHitList::Clear(), Clear(), and PndTrkSttHitList::Clear().

52  {
53  hitlist.clear();
54  }
std::vector< PndTrkHit > hitlist
Definition: PndTrkHitList.h:59
void PndTrkHitList::Draw ( Color_t  color = kBlack)
inherited

Definition at line 96 of file PndTrkHitList.cxx.

Referenced by PndTrkLegendreNew::DrawHits(), PndTrkCombiLegendreTask::DrawHits(), PndTrkTrackFinder::DrawHits(), PndTrkLegendreTask::DrawHits(), PndTrkLegendreSecTask::DrawHits(), PndTrkLegendreSecTask2::DrawHits(), PndTrkSttHitList::DrawLayer(), PndTrkSttHitList::DrawSector(), and PndTrkSttHitList::DrawSectorAndLayer().

96  {
97  std::vector< PndTrkHit >::iterator itr = hitlist.begin();
98  while(itr != hitlist.end()) {
99  (*itr).Draw(color);
100  itr++;
101  }
102 }
std::vector< PndTrkHit > hitlist
Definition: PndTrkHitList.h:59
PndTrkHit * PndTrkHitList::GetHit ( int  index)
inherited

Definition at line 70 of file PndTrkHitList.cxx.

Referenced by PndTrkTrackFinder::CountPossibleTracks(), PndTrkLegendreNew::CreateClusterAroundTrack(), PndTrkCombiLegendreTask::CreateClusterAroundTrack(), PndTrkTrackFinder::CreateClusterAroundTrack(), PndTrkCombiLegendreTask::CreateClusterAroundTrack2(), PndTrkLegendreSecTask::CreateClusterByConfDistance(), PndTrkLegendreTask::CreateClusterByConfDistance(), PndTrkLegendreSecTask2::CreateClusterByConfDistance(), PndTrkLegendreSecTask::CreateClusterByMixedDistance(), PndTrkLegendreTask::CreateClusterByMixedDistance(), PndTrkLegendreSecTask2::CreateClusterByMixedDistance(), PndTrkLegendreSecTask::CreateClusterByRealDistance(), PndTrkLegendreTask::CreateClusterByRealDistance(), PndTrkLegendreSecTask2::CreateClusterByRealDistance(), PndTrkLegendreSecTask::CreateSkewHitList(), PndTrkLegendreTask::CreateSkewHitList(), PndTrkLegendreSecTask2::CreateSkewHitList(), PndTrkTrackFinder::CreateSkewHitList(), PndTrkLegendreTask::CreateSttCluster(), PndTrkLegendreSecTask::CreateSttCluster(), PndTrkLegendreSecTask2::CreateSttCluster(), PndTrkLegendreNew::DrawNeighborings(), PndTrkCombiLegendreTask::DrawNeighborings(), PndTrkTrackFinder::DrawNeighborings(), PndTrkCombiLegendreTask::Exec(), PndTrkTrackFinder::Exec(), PndTrkLegendreTask::FillConformalHitList(), PndTrkLegendreSecTask::FillConformalHitList(), PndTrkLegendreSecTask2::FillConformalHitList(), PndTrkLegendreNew::FillHitMap(), PndTrkTrackFinder::FillHitMap(), PndTrkCombiLegendreTask::FillHitMap(), PndTrkLegendreNew::FindMvdPixelReferenceHit(), PndTrkLegendreTask::FindMvdPixelReferenceHit(), PndTrkLegendreSecTask::FindMvdPixelReferenceHit(), PndTrkCombiLegendreTask::FindMvdPixelReferenceHit(), PndTrkTrackFinder::FindMvdPixelReferenceHit(), PndTrkLegendreSecTask2::FindMvdPixelReferenceHit(), PndTrkLegendreNew::FindMvdStripReferenceHit(), PndTrkLegendreTask::FindMvdStripReferenceHit(), PndTrkLegendreSecTask::FindMvdStripReferenceHit(), PndTrkCombiLegendreTask::FindMvdStripReferenceHit(), PndTrkLegendreSecTask2::FindMvdStripReferenceHit(), PndTrkTrackFinder::FindMvdStripReferenceHit(), PndTrkLegendreNew::FindSttReferenceHit(), PndTrkLegendreSecTask::FindSttReferenceHit(), PndTrkLegendreTask::FindSttReferenceHit(), PndTrkCombiLegendreTask::FindSttReferenceHit(), PndTrkTrackFinder::FindSttReferenceHit(), and PndTrkLegendreSecTask2::FindSttReferenceHit().

70  {
71  return &hitlist[index];
72 
73 }
std::vector< PndTrkHit > hitlist
Definition: PndTrkHitList.h:59
PndTrkHit * PndTrkHitList::GetHitByID ( int  id)
inherited

Definition at line 75 of file PndTrkHitList.cxx.

Referenced by PndTrkTrackFinder::Exec(), and PndTrkTrackFinder::Initialize().

75  {
76  std::vector< PndTrkHit >::iterator itr = hitlist.begin();
77  while(itr != hitlist.end()) {
78  if(id == (*itr).GetHitID()) return &(*itr);
79  itr++;
80  }
81  return NULL;
82 
83 }
std::vector< PndTrkHit > hitlist
Definition: PndTrkHitList.h:59
std::vector<PndTrkHit> PndTrkHitList::GetHitList ( )
inherited
Int_t PndTrkHitList::GetNofHits ( )
inlineinherited

Definition at line 43 of file PndTrkHitList.h.

References PndTrkHitList::hitlist.

Referenced by PndTrkTrackFinder::CountPossibleTracks(), PndTrkLegendreNew::CreateClusterAroundTrack(), PndTrkCombiLegendreTask::CreateClusterAroundTrack(), PndTrkTrackFinder::CreateClusterAroundTrack(), PndTrkCombiLegendreTask::CreateClusterAroundTrack2(), PndTrkLegendreSecTask::CreateClusterByMixedDistance(), PndTrkLegendreTask::CreateClusterByMixedDistance(), PndTrkLegendreSecTask2::CreateClusterByMixedDistance(), PndTrkLegendreTask::CreateClusterByRealDistance(), PndTrkLegendreSecTask::CreateClusterByRealDistance(), PndTrkLegendreSecTask2::CreateClusterByRealDistance(), PndTrkLegendreNew::CreateFullClusterization(), PndTrkTrackFinder::CreateFullClusterization(), PndTrkLegendreTask::CreateSkewHitList(), PndTrkLegendreSecTask::CreateSkewHitList(), PndTrkLegendreSecTask2::CreateSkewHitList(), PndTrkTrackFinder::CreateSkewHitList(), PndTrkLegendreTask::CreateSttCluster(), PndTrkLegendreSecTask::CreateSttCluster(), PndTrkLegendreSecTask2::CreateSttCluster(), PndTrkLegendreNew::DrawNeighborings(), PndTrkCombiLegendreTask::DrawNeighborings(), PndTrkTrackFinder::DrawNeighborings(), PndTrkCombiLegendreTask::Exec(), PndTrkTrackFinder::Exec(), PndTrkLegendreSecTask::FillConformalHitList(), PndTrkLegendreTask::FillConformalHitList(), PndTrkLegendreSecTask2::FillConformalHitList(), PndTrkLegendreNew::FillHitMap(), PndTrkTrackFinder::FillHitMap(), PndTrkCombiLegendreTask::FillHitMap(), PndTrkLegendreNew::FindMvdPixelReferenceHit(), PndTrkLegendreTask::FindMvdPixelReferenceHit(), PndTrkLegendreSecTask::FindMvdPixelReferenceHit(), PndTrkCombiLegendreTask::FindMvdPixelReferenceHit(), PndTrkTrackFinder::FindMvdPixelReferenceHit(), PndTrkLegendreSecTask2::FindMvdPixelReferenceHit(), PndTrkLegendreNew::FindMvdStripReferenceHit(), PndTrkLegendreTask::FindMvdStripReferenceHit(), PndTrkLegendreSecTask::FindMvdStripReferenceHit(), PndTrkCombiLegendreTask::FindMvdStripReferenceHit(), PndTrkTrackFinder::FindMvdStripReferenceHit(), PndTrkLegendreSecTask2::FindMvdStripReferenceHit(), PndTrkLegendreNew::FindSttReferenceHit(), PndTrkLegendreSecTask::FindSttReferenceHit(), PndTrkLegendreTask::FindSttReferenceHit(), PndTrkCombiLegendreTask::FindSttReferenceHit(), PndTrkTrackFinder::FindSttReferenceHit(), and PndTrkLegendreSecTask2::FindSttReferenceHit().

43 { return hitlist.size(); }
std::vector< PndTrkHit > hitlist
Definition: PndTrkHitList.h:59
PndTrkSdsHitList * PndTrkSdsHitList::Instance ( )
static

Definition at line 21 of file PndTrkSdsHitList.cxx.

22 {
23  if(!fpixInstance) cout << "NO PndTrkSdsHitList: you must fill pixel list it BEFORE doing what you are doing!" << endl;
24  return fpixInstance;
25 }
static PndTrkSdsHitList * fpixInstance
PndTrkSdsHitList * PndTrkSdsHitList::InstancePixel ( )
static

Definition at line 32 of file PndTrkSdsHitList.cxx.

33 {
34  if(!fpixInstance) cout << "NO PndTrkSdsHitList: you must fill pixel list it BEFORE doing what you are doing!" << endl;
35  return fpixInstance;
36 }
static PndTrkSdsHitList * fpixInstance
PndTrkSdsHitList * PndTrkSdsHitList::InstanceStrip ( )
static

Definition at line 44 of file PndTrkSdsHitList.cxx.

45 {
46  if(!fstrInstance) cout << "NO PndTrkSdsHitList: you must fill strip list it BEFORE doing what you are doing!" << endl;
47  return fstrInstance;
48 }
static PndTrkSdsHitList * fstrInstance
PndTrkSdsHitList * PndTrkSdsHitList::Instanciate ( )

Definition at line 27 of file PndTrkSdsHitList.cxx.

27  {
28  fpixInstance = this;
29  return fpixInstance;
30 }
static PndTrkSdsHitList * fpixInstance
PndTrkSdsHitList * PndTrkSdsHitList::InstanciatePixel ( )

Definition at line 38 of file PndTrkSdsHitList.cxx.

Referenced by PndTrkLegendreNew::Initialize(), PndTrkLegendreSecTask2::Initialize(), PndTrkLegendreTask::Initialize(), PndTrkLegendreSecTask::Initialize(), PndTrkCombiLegendreTask::Initialize(), and PndTrkTrackFinder::Initialize().

38  {
39  if(fpixInstance) cout << "you are instanciating a pixel PndTrkSdsHitList, but you already did it, what are you doing?" << endl;
40  fpixInstance = this;
41  return fpixInstance;
42 }
static PndTrkSdsHitList * fpixInstance
PndTrkSdsHitList * PndTrkSdsHitList::InstanciateStrip ( )

Definition at line 50 of file PndTrkSdsHitList.cxx.

Referenced by PndTrkLegendreNew::Initialize(), PndTrkLegendreSecTask2::Initialize(), PndTrkLegendreTask::Initialize(), PndTrkLegendreSecTask::Initialize(), PndTrkCombiLegendreTask::Initialize(), and PndTrkTrackFinder::Initialize().

50  {
51  if(fstrInstance) cout << "you are instanciating a strip PndTrkSdsHitList, but you already did it, what are you doing?" << endl;
52  fstrInstance = this;
53  return fstrInstance;
54 }
static PndTrkSdsHitList * fstrInstance
void PndTrkHitList::Print ( )
inherited

Definition at line 85 of file PndTrkHitList.cxx.

85  {
86 
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;
92  itr++;
93  }
94 }
std::vector< PndTrkHit > hitlist
Definition: PndTrkHitList.h:59
void PndTrkHitList::RemoveHit ( PndTrkHit hit)
inlineinherited

Definition at line 45 of file PndTrkHitList.h.

References hit, and PndTrkHitList::hitlist.

Referenced by PndTrkTrackFinder::Initialize().

45  {
46  std::vector<PndTrkHit>::iterator it = find(hitlist.begin(), hitlist.end(), *hit);
47  if(it != hitlist.end()) hitlist.erase(it);
48  }
std::vector< PndTrkHit > hitlist
Definition: PndTrkHitList.h:59
PndSdsMCPoint * hit
Definition: anasim.C:70
void PndTrkSdsHitList::SetRegion ( Int_t  reg)
inline

Definition at line 35 of file PndTrkSdsHitList.h.

References fIRegion.

35 { fIRegion = reg; }

Member Data Documentation

Int_t PndTrkSdsHitList::fIRegion
protected

Definition at line 48 of file PndTrkSdsHitList.h.

Referenced by AddHit(), and SetRegion().

PndTrkSdsHitList * PndTrkSdsHitList::fpixInstance = 0
staticprotected

Definition at line 45 of file PndTrkSdsHitList.h.

Referenced by Clear(), and ~PndTrkSdsHitList().

PndTrkSdsHitList * PndTrkSdsHitList::fstrInstance = 0
staticprotected

Definition at line 46 of file PndTrkSdsHitList.h.

Referenced by Clear(), and ~PndTrkSdsHitList().

std::vector<PndTrkHit> PndTrkHitList::hitlist
protectedinherited

The documentation for this class was generated from the following files: