StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
StIstRawHitCollection Class Reference

#include <StIstRawHitCollection.h>

Inheritance diagram for StIstRawHitCollection:
StObject

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
 
StIstRawHitgetRawHit (int elecId)
 
void addRawHit (StIstRawHit *istRawHit)
 
- Public Member Functions inherited from StObject
 StObject (const StObject &sto)
 
StObjectoperator= (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
 

Detailed Description

A collection of StIstRawHit classes, and basically is a wrapper for a raw hits vector. One instance corresponds to one ladder.

Author
Yaping Wang
Date
March 2013

Definition at line 18 of file StIstRawHitCollection.h.

Constructor & Destructor Documentation

StIstRawHitCollection::~StIstRawHitCollection ( )

Free memory and clear the vector

Definition at line 16 of file StIstRawHitCollection.cxx.

Member Function Documentation

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().


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