StRoot
1
|
#include <StFstRawHitCollection.h>
Public Member Functions | |
StFstRawHitCollection (int wedge=0) | |
~StFstRawHitCollection () | |
vector< StFstRawHit * > & | getRawHitVec () |
const vector< StFstRawHit * > & | getRawHitVec () const |
void | sortByGeoId () |
size_t | getNumRawHits () const |
unsigned char | getWedge () const |
void | setWedge (int wedge) |
void | Clear (Option_t *opt="") |
void | Print (int nTimeBins) const |
StFstRawHit * | getRawHit (int elecId) |
void | addRawHit (StFstRawHit *fstRawHit) |
Public Member Functions inherited from StObject | |
StObject (const StObject &sto) | |
StObject & | operator= (const StObject &sto) |
virtual TObject * | clone () const |
Int_t | isZombie () const |
virtual void | makeZombie (int flg=1) |
UInt_t | Ztreamer (TBuffer &R__b) |
ClassDef (StObject, 3) static UInt_t fgTally | |
Static Protected Member Functions | |
static bool | rawHitIdLessThan (const StFstRawHit *h1, const StFstRawHit *h2) |
Protected Attributes | |
unsigned char | mWedge |
std::vector< StFstRawHit * > | mRawHitVec |
std::vector< StFstRawHit * > | mRawHitElecIdVec |
A collection of StFstRawHit classes, and basically is a wrapper for a raw hits vector. One instance corresponds to one wedge.
Definition at line 16 of file StFstRawHitCollection.h.
StFstRawHitCollection::~StFstRawHitCollection | ( | ) |
Free memory and clear the vector
Definition at line 14 of file StFstRawHitCollection.cxx.
void StFstRawHitCollection::addRawHit | ( | StFstRawHit * | fstRawHit | ) |
Adds or sets/overwrites a new StFstRawHit corresponding to electronic channel StFstRawHit::mChannelId.
Adds or sets/overwrites a new StFstRawHit corresponding to electronic channel StFstRawHit::mChannelId. If fstRawHit is nullptr the function does nothing. If a hit with channelId already exists it will be overwritten by the new one and the resources will be freed. A silent check is performed to make sure the channel electronic index is within the allowed range.
Definition at line 88 of file StFstRawHitCollection.cxx.
References StFstRawHit::getChannelId().