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
 
const float getAmpl () const
 
const size_t hitIndex () const
 
const size_t hitIndex4ChargeRew () const
 
 SimHitInfoForLinks (PSimHit const *hitp, size_t hitindex, unsigned int tofbin, size_t hitInd4CR, float amp)
 
const unsigned int tofBin () const
 
const unsigned int trackId () const
 
const std::vector< unsigned int > & trackIds () const
 
std::vector< unsigned int > & trackIds ()
 

Private Attributes

float ampl_
 
EncodedEventId eventId_
 
size_t hitInd4CR_
 
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,
size_t  hitInd4CR,
float  amp 
)
inlineexplicit

Definition at line 14 of file SimHitInfoForLinks.h.

15  : eventId_(hitp->eventId()),
16  trackIds_(1, hitp->trackId()),
17  hitIndex_(hitindex),
18  tofBin_(tofbin),
19  hitInd4CR_(hitInd4CR),
20  ampl_(amp) {}

Member Function Documentation

◆ eventId()

const EncodedEventId& SimHitInfoForLinks::eventId ( ) const
inline

Definition at line 22 of file SimHitInfoForLinks.h.

References eventId_.

Referenced by ntupleDataFormat.Event::eventIdStr().

22 { return eventId_; }

◆ getAmpl()

const float SimHitInfoForLinks::getAmpl ( ) const
inline

Definition at line 29 of file SimHitInfoForLinks.h.

References ampl_.

29 { return ampl_; }

◆ hitIndex()

const size_t SimHitInfoForLinks::hitIndex ( ) const
inline

Definition at line 26 of file SimHitInfoForLinks.h.

References hitIndex_.

26 { return hitIndex_; }

◆ hitIndex4ChargeRew()

const size_t SimHitInfoForLinks::hitIndex4ChargeRew ( ) const
inline

Definition at line 28 of file SimHitInfoForLinks.h.

References hitInd4CR_.

28 { return hitInd4CR_; }

◆ tofBin()

const unsigned int SimHitInfoForLinks::tofBin ( ) const
inline

Definition at line 27 of file SimHitInfoForLinks.h.

References tofBin_.

27 { return tofBin_; }

◆ trackId()

const unsigned int SimHitInfoForLinks::trackId ( ) const
inline

Definition at line 25 of file SimHitInfoForLinks.h.

References trackIds_.

25 { return trackIds_[0]; }

◆ trackIds() [1/2]

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

Definition at line 23 of file SimHitInfoForLinks.h.

References trackIds_.

23 { return trackIds_; }

◆ trackIds() [2/2]

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

Definition at line 24 of file SimHitInfoForLinks.h.

References trackIds_.

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

Member Data Documentation

◆ ampl_

float SimHitInfoForLinks::ampl_
private

Definition at line 37 of file SimHitInfoForLinks.h.

Referenced by getAmpl().

◆ eventId_

EncodedEventId SimHitInfoForLinks::eventId_
private

Definition at line 32 of file SimHitInfoForLinks.h.

Referenced by eventId().

◆ hitInd4CR_

size_t SimHitInfoForLinks::hitInd4CR_
private

Definition at line 36 of file SimHitInfoForLinks.h.

Referenced by hitIndex4ChargeRew().

◆ hitIndex_

size_t SimHitInfoForLinks::hitIndex_
private

Definition at line 34 of file SimHitInfoForLinks.h.

Referenced by hitIndex().

◆ tofBin_

unsigned int SimHitInfoForLinks::tofBin_
private

Definition at line 35 of file SimHitInfoForLinks.h.

Referenced by tofBin().

◆ trackIds_

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

Definition at line 33 of file SimHitInfoForLinks.h.

Referenced by trackId(), and trackIds().