CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
SimHitInfoForLinks Class Reference

#include <SimHitInfoForLinks.h>

Public Member Functions

const EncodedEventIdeventId () const
 
size_t hitIndex () const
 
 SimHitInfoForLinks (PSimHit const *hitp, size_t hitindex, unsigned int tofbin)
 
unsigned int tofBin () const
 
unsigned int trackId () const
 
const std::vector< unsigned int > & trackIds () const
 
std::vector< unsigned int > & trackIds ()
 

Private Attributes

EncodedEventId eventId_
 
size_t hitIndex_
 
unsigned int tofBin_
 
std::vector< unsigned int > trackIds_
 

Detailed Description

Definition at line 12 of file SimHitInfoForLinks.h.

Constructor & Destructor Documentation

SimHitInfoForLinks::SimHitInfoForLinks ( PSimHit const *  hitp,
size_t  hitindex,
unsigned int  tofbin 
)
inlineexplicit

Definition at line 14 of file SimHitInfoForLinks.h.

15  : eventId_(hitp->eventId()), trackIds_(1, hitp->trackId()), hitIndex_(hitindex), tofBin_(tofbin) {}

Member Function Documentation

const EncodedEventId& SimHitInfoForLinks::eventId ( ) const
inline

Definition at line 17 of file SimHitInfoForLinks.h.

References eventId_.

Referenced by ntupleDataFormat.Event::eventIdStr().

17 { return eventId_; }
size_t SimHitInfoForLinks::hitIndex ( ) const
inline

Definition at line 21 of file SimHitInfoForLinks.h.

References hitIndex_.

21 { return hitIndex_; }
unsigned int SimHitInfoForLinks::tofBin ( ) const
inline

Definition at line 22 of file SimHitInfoForLinks.h.

References tofBin_.

22 { return tofBin_; }
unsigned int SimHitInfoForLinks::trackId ( ) const
inline

Definition at line 20 of file SimHitInfoForLinks.h.

References trackIds_.

20 { return trackIds_[0]; }
const std::vector<unsigned int>& SimHitInfoForLinks::trackIds ( ) const
inline

Definition at line 18 of file SimHitInfoForLinks.h.

References trackIds_.

18 { return trackIds_; }
std::vector<unsigned int>& SimHitInfoForLinks::trackIds ( )
inline

Definition at line 19 of file SimHitInfoForLinks.h.

References trackIds_.

19 { return trackIds_; } // needed ATM in phase2 digitizer

Member Data Documentation

EncodedEventId SimHitInfoForLinks::eventId_
private

Definition at line 25 of file SimHitInfoForLinks.h.

Referenced by eventId().

size_t SimHitInfoForLinks::hitIndex_
private

Definition at line 27 of file SimHitInfoForLinks.h.

Referenced by hitIndex().

unsigned int SimHitInfoForLinks::tofBin_
private

Definition at line 28 of file SimHitInfoForLinks.h.

Referenced by tofBin().

std::vector<unsigned int> SimHitInfoForLinks::trackIds_
private

Definition at line 26 of file SimHitInfoForLinks.h.

Referenced by trackId(), and trackIds().