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
StFstRawHitCollection Class Reference

#include <StFstRawHitCollection.h>

Inheritance diagram for StFstRawHitCollection:
StObject

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
 
StFstRawHitgetRawHit (int elecId)
 
void addRawHit (StFstRawHit *fstRawHit)
 
- 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 StFstRawHit *h1, const StFstRawHit *h2)
 

Protected Attributes

unsigned char mWedge
 
std::vector< StFstRawHit * > mRawHitVec
 
std::vector< StFstRawHit * > mRawHitElecIdVec
 

Detailed Description

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

Author
Shenghui Zhang
Date
Sep 2021

Definition at line 16 of file StFstRawHitCollection.h.

Constructor & Destructor Documentation

StFstRawHitCollection::~StFstRawHitCollection ( )

Free memory and clear the vector

Definition at line 14 of file StFstRawHitCollection.cxx.

Member Function Documentation

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


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