CMS 3D CMS Logo

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

#include <PixelSimHitExtraInfo.h>

Public Member Functions

void addDigiInfo (unsigned int theDigiChannel)
 
const std::vector< unsigned int > & channel () const
 
const Local3DPointentryPoint () const
 
const Local3DPointexitPoint () const
 
size_t hitIndex () const
 
bool isInTheList (unsigned int channelToCheck)
 
bool operator< (const PixelSimHitExtraInfo &other) const
 
 PixelSimHitExtraInfo (size_t Hindex, const Local3DPoint &entryP, const Local3DPoint &exitP, unsigned int ch)
 
 PixelSimHitExtraInfo ()=default
 
 ~PixelSimHitExtraInfo ()=default
 

Private Attributes

std::vector< unsigned int > chan_
 
size_t index_
 
Local3DPoint theEntryPoint_
 
Local3DPoint theExitPoint_
 

Detailed Description

Definition at line 8 of file PixelSimHitExtraInfo.h.

Constructor & Destructor Documentation

◆ PixelSimHitExtraInfo() [1/2]

PixelSimHitExtraInfo::PixelSimHitExtraInfo ( size_t  Hindex,
const Local3DPoint entryP,
const Local3DPoint exitP,
unsigned int  ch 
)
inline

Definition at line 10 of file PixelSimHitExtraInfo.h.

References chan_, index_, theEntryPoint_, and theExitPoint_.

10  {
11  index_ = Hindex;
12  theEntryPoint_ = entryP;
13  theExitPoint_ = exitP;
14  chan_.push_back(ch);
15  };
std::vector< unsigned int > chan_

◆ PixelSimHitExtraInfo() [2/2]

PixelSimHitExtraInfo::PixelSimHitExtraInfo ( )
default

◆ ~PixelSimHitExtraInfo()

PixelSimHitExtraInfo::~PixelSimHitExtraInfo ( )
default

Member Function Documentation

◆ addDigiInfo()

void PixelSimHitExtraInfo::addDigiInfo ( unsigned int  theDigiChannel)
inline

Definition at line 25 of file PixelSimHitExtraInfo.h.

References chan_.

25 { chan_.push_back(theDigiChannel); }
std::vector< unsigned int > chan_

◆ channel()

const std::vector<unsigned int>& PixelSimHitExtraInfo::channel ( ) const
inline

Definition at line 21 of file PixelSimHitExtraInfo.h.

References chan_.

21 { return chan_; };
std::vector< unsigned int > chan_

◆ entryPoint()

const Local3DPoint& PixelSimHitExtraInfo::entryPoint ( ) const
inline

Definition at line 19 of file PixelSimHitExtraInfo.h.

References theEntryPoint_.

Referenced by SiPixelChargeReweightingAlgorithm::lateSignalReweight().

19 { return theEntryPoint_; };

◆ exitPoint()

const Local3DPoint& PixelSimHitExtraInfo::exitPoint ( ) const
inline

Definition at line 20 of file PixelSimHitExtraInfo.h.

References theExitPoint_.

Referenced by SiPixelChargeReweightingAlgorithm::lateSignalReweight().

20 { return theExitPoint_; }

◆ hitIndex()

size_t PixelSimHitExtraInfo::hitIndex ( ) const
inline

Definition at line 18 of file PixelSimHitExtraInfo.h.

References index_.

Referenced by operator<().

18 { return index_; };

◆ isInTheList()

bool PixelSimHitExtraInfo::isInTheList ( unsigned int  channelToCheck)
inline

Definition at line 26 of file PixelSimHitExtraInfo.h.

References chan_.

Referenced by SiPixelChargeReweightingAlgorithm::lateSignalReweight().

26  {
27  bool result_in_the_list = false;
28  for (unsigned int icheck = 0; icheck < chan_.size(); icheck++) {
29  if (channelToCheck == chan_[icheck]) {
30  result_in_the_list = true;
31  break;
32  }
33  }
34  return result_in_the_list;
35  }
std::vector< unsigned int > chan_

◆ operator<()

bool PixelSimHitExtraInfo::operator< ( const PixelSimHitExtraInfo other) const
inline

Definition at line 23 of file PixelSimHitExtraInfo.h.

References hitIndex(), and trackingPlots::other.

23 { return hitIndex() < other.hitIndex(); }

Member Data Documentation

◆ chan_

std::vector<unsigned int> PixelSimHitExtraInfo::chan_
private

Definition at line 41 of file PixelSimHitExtraInfo.h.

Referenced by addDigiInfo(), channel(), isInTheList(), and PixelSimHitExtraInfo().

◆ index_

size_t PixelSimHitExtraInfo::index_
private

Definition at line 38 of file PixelSimHitExtraInfo.h.

Referenced by hitIndex(), and PixelSimHitExtraInfo().

◆ theEntryPoint_

Local3DPoint PixelSimHitExtraInfo::theEntryPoint_
private

Definition at line 39 of file PixelSimHitExtraInfo.h.

Referenced by entryPoint(), and PixelSimHitExtraInfo().

◆ theExitPoint_

Local3DPoint PixelSimHitExtraInfo::theExitPoint_
private

Definition at line 40 of file PixelSimHitExtraInfo.h.

Referenced by exitPoint(), and PixelSimHitExtraInfo().