#include <TkLasBeam.h>
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 | |
std::vector < SiStripLaserRecHit2D > ::const_iterator | end (void) const |
access iterator to the collection of hits | |
unsigned int | getBeamId (void) const |
return the full beam identifier | |
unsigned int | getBeamNumber (void) const |
returns the beam number (10^1 digit of beamId) | |
const std::vector < SiStripLaserRecHit2D > & | getData (void) const |
access the collection of hits | |
bool | isAlignmentTube (void) const |
true if this is an AT beam (from 10^2 digit of beamId) | |
bool | isRing6 (void) const |
true if this beam hits TEC R6 (last digit of beamId) | |
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 | |
void | push_back (const SiStripLaserRecHit2D &aHit) |
insert a hit in the data vector | |
TkLasBeam (unsigned int aBeamId) | |
TkLasBeam () | |
virtual | ~TkLasBeam () |
Private Attributes | |
unsigned int | beamId |
std::vector< SiStripLaserRecHit2D > | data |
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.
typedef std::vector<SiStripLaserRecHit2D>::const_iterator TkLasBeam::const_iterator |
Definition at line 16 of file TkLasBeam.h.
TkLasBeam::TkLasBeam | ( | ) | [inline] |
Definition at line 18 of file TkLasBeam.h.
{}
TkLasBeam::TkLasBeam | ( | unsigned int | aBeamId | ) | [inline] |
virtual TkLasBeam::~TkLasBeam | ( | ) | [inline, virtual] |
Definition at line 22 of file TkLasBeam.h.
{} // virtual destructor to work as base class
std::vector<SiStripLaserRecHit2D>::const_iterator TkLasBeam::begin | ( | void | ) | const [inline] |
access iterator to the collection of hits
Definition at line 31 of file TkLasBeam.h.
References data.
Referenced by TkLasBeamFitter::getLasBeams().
{ return data.begin(); }
std::vector<SiStripLaserRecHit2D>::const_iterator TkLasBeam::end | ( | void | ) | const [inline] |
access iterator to the collection of hits
Definition at line 34 of file TkLasBeam.h.
References data.
Referenced by TkLasBeamFitter::getLasBeams().
{ return data.end(); }
unsigned int TkLasBeam::getBeamId | ( | void | ) | const [inline] |
return the full beam identifier
Definition at line 25 of file TkLasBeam.h.
References beamId.
Referenced by MillePedeAlignmentAlgorithm::addLasBeam(), and TkLasBeamFitter::getLasBeams().
{ return beamId; }
unsigned int TkLasBeam::getBeamNumber | ( | void | ) | const [inline] |
returns the beam number (10^1 digit of beamId)
Definition at line 40 of file TkLasBeam.h.
References beamId.
{ return beamId%100/10; }
const std::vector<SiStripLaserRecHit2D>& TkLasBeam::getData | ( | void | ) | const [inline] |
access the collection of hits
Definition at line 28 of file TkLasBeam.h.
References data.
Referenced by MillePedeAlignmentAlgorithm::addLasBeam(), and TkFittedLasBeam::setParameters().
{ return data; }
bool TkLasBeam::isAlignmentTube | ( | void | ) | const [inline] |
true if this is an AT beam (from 10^2 digit of beamId)
Definition at line 46 of file TkLasBeam.h.
References beamId.
Referenced by TkLasBeamFitter::fitBeam(), TrackTransformerForGlobalCosmicMuons::fitter(), TkLasBeamFitter::getLasBeams(), and TkLasBeamFitter::getLasHits().
{ return ( beamId%1000/100 ) == 2; }
bool TkLasBeam::isRing6 | ( | void | ) | const [inline] |
true if this beam hits TEC R6 (last digit of beamId)
Definition at line 49 of file TkLasBeam.h.
References beamId.
Referenced by TkLasBeamFitter::getLasBeams().
{ return (beamId%10) == 1; }
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.
References beamId, and Exception.
Referenced by TkLasBeamFitter::buildTrajectory(), TkLasBeamFitter::fitBeam(), TrackTransformerForGlobalCosmicMuons::fitter(), TkLasBeamFitter::getLasBeams(), TkLasBeamFitter::globalTrackPoint(), and TkLasBeamFitter::trackPhi().
{ switch (side) { case 0: return beamId%1000/100 < 2; case -1: return beamId%1000/100 == 1; case 1: return beamId%1000/100 == 0; } throw cms::Exception("[TkLasBeam::isTecInternal]") << " ** ERROR: side=" << side << " undefined, must be -1, 0 or 1."; return false; // unreached }
void TkLasBeam::push_back | ( | const SiStripLaserRecHit2D & | aHit | ) | [inline] |
insert a hit in the data vector
Definition at line 37 of file TkLasBeam.h.
References data.
Referenced by LaserAlignment::endRun().
{ data.push_back( aHit ); }
unsigned int TkLasBeam::beamId [private] |
Definition at line 54 of file TkLasBeam.h.
Referenced by getBeamId(), getBeamNumber(), isAlignmentTube(), isRing6(), isTecInternal(), and TkLasBeam().
std::vector<SiStripLaserRecHit2D> TkLasBeam::data [private] |
Definition at line 55 of file TkLasBeam.h.
Referenced by begin(), end(), getData(), and push_back().