StRoot
1
|
#include <StIstRawHitCollection.h>
Public Member Functions | |
StIstRawHitCollection (int ladder=0) | |
~StIstRawHitCollection () | |
vector< StIstRawHit * > & | getRawHitVec () |
const vector< StIstRawHit * > & | getRawHitVec () const |
void | sortByGeoId () |
size_t | getNumRawHits () const |
unsigned char | getLadder () const |
void | setLadder (int ladder) |
void | Clear (Option_t *opt="") |
void | Print (int nTimeBins) const |
StIstRawHit * | getRawHit (int elecId) |
void | addRawHit (StIstRawHit *istRawHit) |
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 StIstRawHit *h1, const StIstRawHit *h2) |
Protected Attributes | |
unsigned char | mLadder |
std::vector< StIstRawHit * > | mRawHitVec |
std::vector< StIstRawHit * > | mRawHitElecIdVec |
A collection of StIstRawHit classes, and basically is a wrapper for a raw hits vector. One instance corresponds to one ladder.
Definition at line 18 of file StIstRawHitCollection.h.
StIstRawHitCollection::~StIstRawHitCollection | ( | ) |
Free memory and clear the vector
Definition at line 16 of file StIstRawHitCollection.cxx.
void StIstRawHitCollection::addRawHit | ( | StIstRawHit * | istRawHit | ) |
Adds or sets/overwrites a new StIstRawHit corresponding to electronic channel StIstRawHit::mChannelId.
Adds or sets/overwrites a new StIstRawHit corresponding to electronic channel StIstRawHit::mChannelId. If istRawHit 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 90 of file StIstRawHitCollection.cxx.
References StIstRawHit::getChannelId().