2 #ifndef ROOT_StEventHitIter_HH
3 #define ROOT_StEventHitIter_HH
96 virtual const TObject *Reset(
const TObject *cont);
100 virtual const TObject *
Get ()
const;
102 virtual const TObject *
GetObject (
int idx)
const=0;
104 virtual int GetSize ()
const=0;
109 virtual void UPath(ULong64_t &upath)
const;
112 const TObject *fCont;
125 virtual const TObject *Reset(
const TObject *cont);
127 virtual const TObject *
Get ()
const;
128 virtual const StHit *operator*()
const {
return (
StHit*)
Get();}
129 virtual const TObject *
GetObject (
int idx)
const;
130 virtual int GetSize ()
const {
return fGroup.size();};
131 virtual StDetectorId
DetectorId()
const {
return fDetectorId;}
132 void UPath(ULong64_t &upa)
const;
133 UInt_t UPath()
const;
136 mutable StDetectorId fDetectorId;
137 std::vector<StHitIter*> fGroup;
161 int AddDetector(StDetectorId detId);
168 #endif //ROOT_StEventHelper
StEventHitIter is the top level hook, providing hits to the Stv tracking code.
void SetDowIter(StHitIter *it)
For the case of nested collections, sets the iterator over another collection.
virtual int GetSize() const
Returns the number of entries in the collection.
virtual StDetectorId DetectorId() const
Returns the STAR ID of the detector.
virtual const TObject * GetObject(int idx) const
Gets an object at a specified position in the collection.
StHitIter is an abstract base class, establishing the interface between hit collections in StEvent an...
virtual const TObject * operator++()
Increments the iterator, returning the next object in the collection.
virtual int GetSize() const =0
Returns the number of entries in the collection.
virtual const TObject * Get() const
Gets the current object in the collection.
virtual StDetectorId DetectorId() const
Returns the STAR ID of the detector.
virtual const TObject * GetObject(int idx) const =0
Gets an object at a specified position in the collection.
virtual const TObject * Get() const
Gets the current object in the collection.
virtual const TObject * operator++()
Increments the iterator, returning the next object in the collection.