22 #ifndef _ST_FGT_COLLECTION_H_
23 #define _ST_FGT_COLLECTION_H_
26 #include "StFgtStripCollection.h"
27 #include "StFgtHitCollection.h"
28 #include "StFgtPointCollection.h"
41 size_t getNumDiscs()
const;
42 size_t getNumStrips()
const;
43 size_t getNumStrips(
unsigned short discIdx)
const;
44 size_t getNumHits()
const;
45 size_t getNumHits(
unsigned short discIdx )
const;
46 size_t getNumPoints()
const;
47 size_t getNumTimeBins()
const;
48 void setNumTimeBins(
size_t nTimebin);
61 void Clear( Option_t *opts =
"" );
78 return (discIdx < kFgtNumDiscs ? &mStripCollection[discIdx] : 0 );
81 inline size_t StFgtCollection::getNumTimeBins()
const {
85 inline void StFgtCollection::setNumTimeBins(
size_t nTimeBins) {
86 mNumTimeBins=nTimeBins;
89 inline const StFgtStripCollection* StFgtCollection::getStripCollection(
unsigned short discIdx )
const {
90 return (discIdx < kFgtNumDiscs ? &mStripCollection[discIdx] : 0 );
93 inline StFgtHitCollection* StFgtCollection::getHitCollection(
unsigned short discIdx ) {
94 return (discIdx < kFgtNumDiscs ? &mHitCollection[discIdx] : 0 );
97 inline const StFgtHitCollection* StFgtCollection::getHitCollection(
unsigned short discIdx )
const {
98 return (discIdx < kFgtNumDiscs ? &mHitCollection[discIdx] : 0 );
101 inline size_t StFgtCollection::getNumDiscs()
const{
106 inline size_t StFgtCollection::getNumStrips()
const {
108 for(
const StFgtStripCollection* ptr = &mStripCollection[0]; ptr != &mStripCollection[kFgtNumDiscs]; ++ptr )
109 n += ptr->getNumStrips();
114 inline size_t StFgtCollection::getNumStrips(
unsigned short discIdx )
const{
115 return (discIdx < kFgtNumDiscs ? mStripCollection[discIdx].getNumStrips() : 0 );
119 inline size_t StFgtCollection::getNumHits()
const {
121 for(
const StFgtHitCollection* ptr = &mHitCollection[0]; ptr != &mHitCollection[kFgtNumDiscs]; ++ptr )
122 n += ptr->getNumHits();
127 inline size_t StFgtCollection::getNumHits(
unsigned short discIdx )
const{
128 return (discIdx < kFgtNumDiscs ? mHitCollection[discIdx].getNumHits() : 0 );
132 return &mPointCollection;
136 return &mPointCollection;
140 inline size_t StFgtCollection::getNumPoints()
const{
141 return mPointCollection.getNumPoints();