CMS 3D CMS Logo

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

#include <TkLasBeam.h>

Inheritance diagram for TkLasBeam:
TkFittedLasBeam

Public Types

typedef std::vector< SiStripLaserRecHit2D >::const_iterator const_iterator
 

Public Member Functions

std::vector< SiStripLaserRecHit2D >::const_iterator begin (void) const
 access iterator to the collection of hits More...
 
std::vector< SiStripLaserRecHit2D >::const_iterator end (void) const
 access iterator to the collection of hits More...
 
unsigned int getBeamId (void) const
 return the full beam identifier More...
 
unsigned int getBeamNumber (void) const
 returns the beam number (10^1 digit of beamId) More...
 
const std::vector< SiStripLaserRecHit2D > & getData (void) const
 access the collection of hits More...
 
bool isAlignmentTube (void) const
 true if this is an AT beam (from 10^2 digit of beamId) More...
 
bool isRing6 (void) const
 true if this beam hits TEC R6 (last digit of beamId) More...
 
bool isTecInternal (int side=0) const
 true if this is a TEC internal beam (from 10^2 digit of beamId). side parameter: -1 = ask if TEC-, 1 = TEC+, 0 = any tec, don't care More...
 
void push_back (const SiStripLaserRecHit2D &aHit)
 insert a hit in the data vector More...
 
 TkLasBeam ()
 
 TkLasBeam (unsigned int aBeamId)
 
virtual ~TkLasBeam ()
 

Private Attributes

unsigned int beamId
 
std::vector< SiStripLaserRecHit2Ddata
 

Detailed Description

a collection of tracker laser hits (SiStripLaserRecHit2D) originating from a single laser beam. documentation in TkLasTrackBasedInterface TWiki

Definition at line 12 of file TkLasBeam.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 14 of file TkLasBeam.h.

Constructor & Destructor Documentation

◆ TkLasBeam() [1/2]

TkLasBeam::TkLasBeam ( )
inline

Definition at line 16 of file TkLasBeam.h.

16 {}

◆ TkLasBeam() [2/2]

TkLasBeam::TkLasBeam ( unsigned int  aBeamId)
inline

Definition at line 18 of file TkLasBeam.h.

18 { beamId = aBeamId; }

References beamId.

◆ ~TkLasBeam()

virtual TkLasBeam::~TkLasBeam ( )
inlinevirtual

Definition at line 20 of file TkLasBeam.h.

20 {} // virtual destructor to work as base class

Member Function Documentation

◆ begin()

std::vector<SiStripLaserRecHit2D>::const_iterator TkLasBeam::begin ( void  ) const
inline

access iterator to the collection of hits

Definition at line 29 of file TkLasBeam.h.

29 { return data.begin(); }

References data.

◆ end()

std::vector<SiStripLaserRecHit2D>::const_iterator TkLasBeam::end ( void  ) const
inline

access iterator to the collection of hits

Definition at line 32 of file TkLasBeam.h.

32 { return data.end(); }

References data.

Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().

◆ getBeamId()

unsigned int TkLasBeam::getBeamId ( void  ) const
inline

return the full beam identifier

Definition at line 23 of file TkLasBeam.h.

23 { return beamId; }

References beamId.

Referenced by MillePedeAlignmentAlgorithm::addLasBeam().

◆ getBeamNumber()

unsigned int TkLasBeam::getBeamNumber ( void  ) const
inline

returns the beam number (10^1 digit of beamId)

Definition at line 38 of file TkLasBeam.h.

38 { return beamId % 100 / 10; }

References beamId.

◆ getData()

const std::vector<SiStripLaserRecHit2D>& TkLasBeam::getData ( void  ) const
inline

access the collection of hits

Definition at line 26 of file TkLasBeam.h.

26 { return data; }

References data.

Referenced by MillePedeAlignmentAlgorithm::addLasBeam(), and TkFittedLasBeam::setParameters().

◆ isAlignmentTube()

bool TkLasBeam::isAlignmentTube ( void  ) const
inline

true if this is an AT beam (from 10^2 digit of beamId)

Definition at line 44 of file TkLasBeam.h.

44 { return (beamId % 1000 / 100) == 2; }

References beamId.

◆ isRing6()

bool TkLasBeam::isRing6 ( void  ) const
inline

true if this beam hits TEC R6 (last digit of beamId)

Definition at line 47 of file TkLasBeam.h.

47 { return (beamId % 10) == 1; }

References beamId.

◆ isTecInternal()

bool TkLasBeam::isTecInternal ( int  side = 0) const

true if this is a TEC internal beam (from 10^2 digit of beamId). side parameter: -1 = ask if TEC-, 1 = TEC+, 0 = any tec, don't care

Definition at line 4 of file TkLasBeam.cc.

4  {
5  switch (side) {
6  case 0:
7  return beamId % 1000 / 100 < 2;
8  case -1:
9  return beamId % 1000 / 100 == 1;
10  case 1:
11  return beamId % 1000 / 100 == 0;
12  }
13 
14  throw cms::Exception("[TkLasBeam::isTecInternal]") << " ** ERROR: side=" << side << " undefined, must be -1, 0 or 1.";
15  return false; // unreached
16 }

References beamId, and Exception.

◆ push_back()

void TkLasBeam::push_back ( const SiStripLaserRecHit2D aHit)
inline

insert a hit in the data vector

Definition at line 35 of file TkLasBeam.h.

35 { data.push_back(aHit); }

References data.

Referenced by LaserAlignment::endRunProduce().

Member Data Documentation

◆ beamId

unsigned int TkLasBeam::beamId
private

Definition at line 50 of file TkLasBeam.h.

Referenced by getBeamId(), getBeamNumber(), isAlignmentTube(), isRing6(), isTecInternal(), and TkLasBeam().

◆ data

std::vector<SiStripLaserRecHit2D> TkLasBeam::data
private
TkLasBeam::beamId
unsigned int beamId
Definition: TkLasBeam.h:50
Exception
Definition: hltDiff.cc:245
TkLasBeam::data
std::vector< SiStripLaserRecHit2D > data
Definition: TkLasBeam.h:51