FairRoot/PandaRoot
Public Types | Public Member Functions | Protected Attributes | List of all members
FTSCAHitsV Class Reference

#include <FTSCAHitsV.h>

Public Types

typedef FTSCAHitV T
 

Public Member Functions

FTSCAElementsOnStation< T > & OnStation (char i)
 
const FTSCAElementsOnStation< T > & OnStation (char i) const
 
FTSCAElementsOnStation< T > & operator[] (char i)
 
const FTSCAElementsOnStation< T > & operator[] (char i) const
 
 FTSCAHitsV (const FTSCAHits &hits)
 
 FTSCAHitsV (int nSta)
 
int NStations () const
 
Toperator[] (TES i)
 
const Toperator[] (TES i) const
 
void Add (const T &hit)
 
void Clean ()
 

Protected Attributes

vector< FTSCAElementsOnStation
< T > > 
fElement
 

Detailed Description

Definition at line 124 of file FTSCAHitsV.h.

Member Typedef Documentation

Definition at line 126 of file FTSCAHitsV.h.

Constructor & Destructor Documentation

FTSCAHitsV::FTSCAHitsV ( const FTSCAHits hits)
inline

Definition at line 327 of file FTSCAHitsV.h.

References fElement, i, FTSCAHits::NStations(), and FTSCAHits::OnStation().

328 {
329  fElement.resize( hits.NStations() );
330  for( int i = 0; i < hits.NStations(); ++i ) {
331  fElement[i].IStation() = i;
332  const FTSCAElementsOnStation<FTSCAHit>& hs = hits.OnStation(i);
333  for( unsigned int iH = 0; iH < hs.size(); iH += float_v::Size ) {
334  float_m valid = static_cast<float_m>(uint_v::IndexesFromZero() < uint_v(hs.size() - iH) );
335  fElement[i].push_back( FTSCAHitV( &(hs[iH]), valid ) );
336  }
337  }
338 }
Int_t i
Definition: run_full.C:25
char NStations() const
Definition: FTSCAHits.h:152
FTSCAElementsOnStation< T > & OnStation(char i)
Definition: FTSCAHits.h:135
vector< FTSCAElementsOnStation< T > > fElement
Definition: FTSCAHitsV.h:154
FTSCAHitsV::FTSCAHitsV ( int  nSta)
inline

Definition at line 135 of file FTSCAHitsV.h.

References fElement, and i.

135  {
136  fElement.resize( nSta );
137  for( int i = 0; i < nSta; ++i )
138  fElement[i].IStation() = i;
139  }
Int_t i
Definition: run_full.C:25
vector< FTSCAElementsOnStation< T > > fElement
Definition: FTSCAHitsV.h:154

Member Function Documentation

void FTSCAHitsV::Add ( const T hit)
inline

Definition at line 146 of file FTSCAHitsV.h.

References fElement, and FTSCAHitV::IStation().

146  {
147  const int iSta = hit.IStation();
148  fElement[iSta].push_back( hit );
149  }
vector< FTSCAElementsOnStation< T > > fElement
Definition: FTSCAHitsV.h:154
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)
Definition: hit.C:1
void FTSCAHitsV::Clean ( )
inline

Definition at line 341 of file FTSCAHitsV.h.

342 { // remove used hits TODO
343  // for( unsigned int i = 0; i < fElement.size(); ++i ) {
344  // FTSCAElementsOnStation<T>& hits = fElement[i];
345  // FTSCAElementsOnStation<T> tmp;
346  // tmp.IStation() = i;
347  // tmp.resize( hits.size() );
348  // for( unsigned int iH = 0; iH < hits.size(); ++iH ) {
349  // if ( hits[iH].IsUsed() ) continue;
350  // tmp.push_back( hits[iH] );
351  // }
352  // hits = tmp;
353  // tmp.clear();
354  // }
355 }
int FTSCAHitsV::NStations ( ) const
inline

Definition at line 141 of file FTSCAHitsV.h.

References fElement.

Referenced by PndFTSCADisplay::DrawGBHits().

141 { return fElement.size(); }
vector< FTSCAElementsOnStation< T > > fElement
Definition: FTSCAHitsV.h:154
FTSCAElementsOnStation<T>& FTSCAHitsV::OnStation ( char  i)
inline

Definition at line 128 of file FTSCAHitsV.h.

References fElement, and i.

Referenced by PndFTSCADisplay::DrawGBHits(), and PndFTSCAGBTracker::EstimatePV().

128 { assert((unsigned char)i<fElement.size() ); return fElement[i]; }
Int_t i
Definition: run_full.C:25
vector< FTSCAElementsOnStation< T > > fElement
Definition: FTSCAHitsV.h:154
const FTSCAElementsOnStation<T>& FTSCAHitsV::OnStation ( char  i) const
inline

Definition at line 129 of file FTSCAHitsV.h.

References fElement, and i.

129 { assert((unsigned char)i<fElement.size() ); return fElement[i]; }
Int_t i
Definition: run_full.C:25
vector< FTSCAElementsOnStation< T > > fElement
Definition: FTSCAHitsV.h:154
FTSCAElementsOnStation<T>& FTSCAHitsV::operator[] ( char  i)
inline

Definition at line 130 of file FTSCAHitsV.h.

References fElement, and i.

130 { assert((unsigned char)i < fElement.size() ); return fElement[i]; }
Int_t i
Definition: run_full.C:25
vector< FTSCAElementsOnStation< T > > fElement
Definition: FTSCAHitsV.h:154
const FTSCAElementsOnStation<T>& FTSCAHitsV::operator[] ( char  i) const
inline

Definition at line 131 of file FTSCAHitsV.h.

References fElement, and i.

131 { assert((unsigned char)i<fElement.size() ); return fElement[i]; }
Int_t i
Definition: run_full.C:25
vector< FTSCAElementsOnStation< T > > fElement
Definition: FTSCAHitsV.h:154
T& FTSCAHitsV::operator[] ( TES  i)
inline

Definition at line 143 of file FTSCAHitsV.h.

References TES::e, fElement, and TES::s.

143 { return fElement[i.s][i.e]; }
vector< FTSCAElementsOnStation< T > > fElement
Definition: FTSCAHitsV.h:154
char s
Definition: FTSCATES.h:24
unsigned int e
Definition: FTSCATES.h:25
const T& FTSCAHitsV::operator[] ( TES  i) const
inline

Definition at line 144 of file FTSCAHitsV.h.

References TES::e, fElement, and TES::s.

144 { return fElement[i.s][i.e]; }
vector< FTSCAElementsOnStation< T > > fElement
Definition: FTSCAHitsV.h:154
char s
Definition: FTSCATES.h:24
unsigned int e
Definition: FTSCATES.h:25

Member Data Documentation

vector< FTSCAElementsOnStation<T> > FTSCAHitsV::fElement
protected

Definition at line 154 of file FTSCAHitsV.h.

Referenced by Add(), FTSCAHitsV(), NStations(), OnStation(), and operator[]().


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