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
 
std::vector< unsigned int > & trackIds ()
 
const std::vector< unsigned int > & trackIds () const
 

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::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

◆ eventId()

const EncodedEventId& SimHitInfoForLinks::eventId ( ) const
inline

Definition at line 17 of file SimHitInfoForLinks.h.

17 { return eventId_; }

References eventId_.

Referenced by ntupleDataFormat.Event::eventIdStr().

◆ hitIndex()

size_t SimHitInfoForLinks::hitIndex ( ) const
inline

Definition at line 21 of file SimHitInfoForLinks.h.

21 { return hitIndex_; }

References hitIndex_.

◆ tofBin()

unsigned int SimHitInfoForLinks::tofBin ( ) const
inline

Definition at line 22 of file SimHitInfoForLinks.h.

22 { return tofBin_; }

References tofBin_.

◆ trackId()

unsigned int SimHitInfoForLinks::trackId ( ) const
inline

Definition at line 20 of file SimHitInfoForLinks.h.

20 { return trackIds_[0]; }

References trackIds_.

◆ trackIds() [1/2]

std::vector<unsigned int>& SimHitInfoForLinks::trackIds ( )
inline

Definition at line 19 of file SimHitInfoForLinks.h.

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

References trackIds_.

◆ trackIds() [2/2]

const std::vector<unsigned int>& SimHitInfoForLinks::trackIds ( ) const
inline

Definition at line 18 of file SimHitInfoForLinks.h.

18 { return trackIds_; }

References trackIds_.

Member Data Documentation

◆ eventId_

EncodedEventId SimHitInfoForLinks::eventId_
private

Definition at line 25 of file SimHitInfoForLinks.h.

Referenced by eventId().

◆ hitIndex_

size_t SimHitInfoForLinks::hitIndex_
private

Definition at line 27 of file SimHitInfoForLinks.h.

Referenced by hitIndex().

◆ tofBin_

unsigned int SimHitInfoForLinks::tofBin_
private

Definition at line 28 of file SimHitInfoForLinks.h.

Referenced by tofBin().

◆ trackIds_

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

Definition at line 26 of file SimHitInfoForLinks.h.

Referenced by trackId(), and trackIds().