9 #ifndef PNDCASTATIONARRAY_H
10 #define PNDCASTATIONARRAY_H
22 template<
typename T >
33 return (*
fHitsRef)[ (*this)[
i].IHit(IH)[iV] ];
37 return (*
fHitsRef)[ (*this)[
i].IHit(IH) ];
43 vector<T>::operator=( a );
51 r.resize( this->size() + a.size() );
53 for(
unsigned int i = 0;
i < this->size(); ++
i ) {
56 for(
unsigned int i = 0;
i < a.size(); ++
i ) {
69 template<
typename T >
86 for(
int i = 0;
i < nSta; ++
i )
97 unsigned int Size()
const {
108 const int iSta = hit.Station();
PndCAElementsOnStation< T > operator+(const PndCAElementsOnStation< T > &a)
const PndCAHits * HitsRef() const
PndCAElementsOnStation< T > & operator[](char i)
const PndCAElementsOnStation< T > & OnStation(char i) const
PndCAElementsOnStation(const PndCAHits *hits)
const char & IStation() const
const PndCAHits * fHitsRef
PndCAElementsOnStation< T > & operator=(const PndCAElementsOnStation< T > &a)
const T & operator[](PndCATES i) const
const PndCAHits * HitsRef() const
PndCAElementsOnStation< T > & OnStation(char i)
const PndCAElementsOnStation< T > & operator[](char i) const
void Renew(int nSta, const PndCAHits *hits)
const PndCAHit & GetHit(int IH, int i) const
T & operator[](PndCATES i)
unsigned int Size() const
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)
const PndCAHit & GetHit(int iV, int IH, int i) const
vector< PndCAElementsOnStation< T > > fElement
PndCAStationArray(int nSta, const PndCAHits *hits)