CMS 3D CMS Logo

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

#include <GEMDigiSimLink.h>

Public Member Functions

 GEMDigiSimLink (std::pair< unsigned int, int > digi, Local3DPoint entryPoint, LocalVector momentumAtEntry, float timeOfFlight, float energyLoss, int particleType, unsigned int detUnitId, unsigned int trackId, EncodedEventId eventId, unsigned short processType)
 
 GEMDigiSimLink ()
 
unsigned int getBx () const
 
unsigned int getDetUnitId () const
 
float getEnergyLoss () const
 
Local3DPoint getEntryPoint () const
 
EncodedEventId getEventId () const
 
LocalVector getMomentumAtEntry () const
 
int getParticleType () const
 
unsigned short getProcessType () const
 
unsigned int getStrip () const
 
float getTimeOfFlight () const
 
unsigned int getTrackId () const
 
bool operator< (const GEMDigiSimLink &other) const
 
 ~GEMDigiSimLink ()
 

Private Attributes

unsigned int _detUnitId
 
std::pair< unsigned int, int > _digi
 
float _energyLoss
 
Local3DPoint _entryPoint
 
EncodedEventId _eventId
 
LocalVector _momentumAtEntry
 
int _particleType
 
unsigned short _processType
 
float _timeOfFlight
 
unsigned int _trackId
 

Detailed Description

Definition at line 9 of file GEMDigiSimLink.h.

Constructor & Destructor Documentation

GEMDigiSimLink::GEMDigiSimLink ( std::pair< unsigned int, int >  digi,
Local3DPoint  entryPoint,
LocalVector  momentumAtEntry,
float  timeOfFlight,
float  energyLoss,
int  particleType,
unsigned int  detUnitId,
unsigned int  trackId,
EncodedEventId  eventId,
unsigned short  processType 
)
inline

Definition at line 12 of file GEMDigiSimLink.h.

References _detUnitId, _digi, _energyLoss, _entryPoint, _eventId, _momentumAtEntry, _particleType, _processType, _timeOfFlight, _trackId, objects.autophobj::particleType, and spr::timeOfFlight().

15  {
16 
17  _entryPoint = entryPoint;
18  _momentumAtEntry = momentumAtEntry;
20  _energyLoss = energyLoss;
22  _detUnitId = detUnitId;
23  _trackId = trackId;
24  _eventId = eventId;
25  _processType = processType;
26  _digi = digi;
27  }
double timeOfFlight(DetId id, const CaloGeometry *geo, bool debug=false)
Definition: CaloSimInfo.cc:17
GEMDigiSimLink::GEMDigiSimLink ( )
inline

Definition at line 29 of file GEMDigiSimLink.h.

29 {;}
GEMDigiSimLink::~GEMDigiSimLink ( )
inline

Definition at line 31 of file GEMDigiSimLink.h.

31 {;}

Member Function Documentation

unsigned int GEMDigiSimLink::getBx ( ) const
inline

Definition at line 34 of file GEMDigiSimLink.h.

References _digi.

34 {return _digi.second;}
unsigned int GEMDigiSimLink::getDetUnitId ( ) const
inline

Definition at line 40 of file GEMDigiSimLink.h.

References _detUnitId.

40 {return _detUnitId;}
float GEMDigiSimLink::getEnergyLoss ( ) const
inline

Definition at line 38 of file GEMDigiSimLink.h.

References _energyLoss.

38 {return _energyLoss;}
Local3DPoint GEMDigiSimLink::getEntryPoint ( ) const
inline

Definition at line 35 of file GEMDigiSimLink.h.

References _entryPoint.

35 {return _entryPoint;}
EncodedEventId GEMDigiSimLink::getEventId ( ) const
inline

Definition at line 42 of file GEMDigiSimLink.h.

References _eventId.

42 {return _eventId;}
LocalVector GEMDigiSimLink::getMomentumAtEntry ( ) const
inline

Definition at line 36 of file GEMDigiSimLink.h.

References _momentumAtEntry.

36 {return _momentumAtEntry;}
int GEMDigiSimLink::getParticleType ( ) const
inline

Definition at line 39 of file GEMDigiSimLink.h.

References _particleType.

39 {return _particleType;}
unsigned short GEMDigiSimLink::getProcessType ( ) const
inline

Definition at line 43 of file GEMDigiSimLink.h.

References _processType.

43 {return _processType;}
unsigned int GEMDigiSimLink::getStrip ( ) const
inline

Definition at line 33 of file GEMDigiSimLink.h.

References _digi.

Referenced by operator<().

33 {return _digi.first;}
float GEMDigiSimLink::getTimeOfFlight ( ) const
inline

Definition at line 37 of file GEMDigiSimLink.h.

References _timeOfFlight.

37 {return _timeOfFlight;}
unsigned int GEMDigiSimLink::getTrackId ( ) const
inline

Definition at line 41 of file GEMDigiSimLink.h.

References _trackId.

41 {return _trackId;}
bool GEMDigiSimLink::operator< ( const GEMDigiSimLink other) const
inline

Definition at line 45 of file GEMDigiSimLink.h.

References getStrip().

45 {return getStrip() < other.getStrip();}

Member Data Documentation

unsigned int GEMDigiSimLink::_detUnitId
private

Definition at line 55 of file GEMDigiSimLink.h.

Referenced by GEMDigiSimLink(), and getDetUnitId().

std::pair<unsigned int, int> GEMDigiSimLink::_digi
private

Definition at line 48 of file GEMDigiSimLink.h.

Referenced by GEMDigiSimLink(), getBx(), and getStrip().

float GEMDigiSimLink::_energyLoss
private

Definition at line 53 of file GEMDigiSimLink.h.

Referenced by GEMDigiSimLink(), and getEnergyLoss().

Local3DPoint GEMDigiSimLink::_entryPoint
private

Definition at line 50 of file GEMDigiSimLink.h.

Referenced by GEMDigiSimLink(), and getEntryPoint().

EncodedEventId GEMDigiSimLink::_eventId
private

Definition at line 57 of file GEMDigiSimLink.h.

Referenced by GEMDigiSimLink(), and getEventId().

LocalVector GEMDigiSimLink::_momentumAtEntry
private

Definition at line 51 of file GEMDigiSimLink.h.

Referenced by GEMDigiSimLink(), and getMomentumAtEntry().

int GEMDigiSimLink::_particleType
private

Definition at line 54 of file GEMDigiSimLink.h.

Referenced by GEMDigiSimLink(), and getParticleType().

unsigned short GEMDigiSimLink::_processType
private

Definition at line 58 of file GEMDigiSimLink.h.

Referenced by GEMDigiSimLink(), and getProcessType().

float GEMDigiSimLink::_timeOfFlight
private

Definition at line 52 of file GEMDigiSimLink.h.

Referenced by GEMDigiSimLink(), and getTimeOfFlight().

unsigned int GEMDigiSimLink::_trackId
private

Definition at line 56 of file GEMDigiSimLink.h.

Referenced by GEMDigiSimLink(), and getTrackId().