CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes | Friends
PxMeasurementConditionSet Class Reference

#include <TkMeasurementDetSet.h>

Public Member Functions

int find (unsigned int jd, int i=0) const
 
unsigned int id (int i) const
 
void init (int size)
 
bool isActiveThisPeriod (int i) const
 
int nDet () const
 
const
PixelClusterParameterEstimator
pixelCPE () const
 
 PxMeasurementConditionSet (const PixelClusterParameterEstimator *cpe)
 
void setActive (int i, bool active)
 Turn on/off the module for reconstruction, for the full run or lumi (using info from DB, usually). This also resets the 'setActiveThisEvent' to true. More...
 

Private Attributes

std::vector< bool > activeThisPeriod_
 
std::vector< unsigned int > id_
 
const
PixelClusterParameterEstimator
theCPE
 

Friends

class MeasurementTrackerImpl
 

Detailed Description

Definition at line 330 of file TkMeasurementDetSet.h.

Constructor & Destructor Documentation

PxMeasurementConditionSet::PxMeasurementConditionSet ( const PixelClusterParameterEstimator cpe)
inline

Definition at line 332 of file TkMeasurementDetSet.h.

332  :
333  theCPE(cpe) {}
const PixelClusterParameterEstimator * theCPE

Member Function Documentation

int PxMeasurementConditionSet::find ( unsigned int  jd,
int  i = 0 
) const
inline

Definition at line 339 of file TkMeasurementDetSet.h.

References i, and id_.

Referenced by PxMeasurementDetSet::find().

339  {
340  return std::lower_bound(id_.begin()+i,id_.end(),jd)-id_.begin();
341  }
int i
Definition: DBlmapReader.cc:9
std::vector< unsigned int > id_
unsigned int PxMeasurementConditionSet::id ( int  i) const
inline

Definition at line 338 of file TkMeasurementDetSet.h.

References i, and id_.

Referenced by PxMeasurementDetSet::id(), and MeasurementTrackerImpl::initialize().

338 { return id_[i]; }
int i
Definition: DBlmapReader.cc:9
std::vector< unsigned int > id_
void PxMeasurementConditionSet::init ( int  size)

Definition at line 40 of file TkMeasurementDetSet.cc.

References activeThisPeriod_, and id_.

Referenced by MeasurementTrackerImpl::initPxMeasurementConditionSet().

40  {
41  activeThisPeriod_.resize(size,true);
42  id_.resize(size);
43 }
std::vector< unsigned int > id_
std::vector< bool > activeThisPeriod_
tuple size
Write out results.
bool PxMeasurementConditionSet::isActiveThisPeriod ( int  i) const
inline

Definition at line 344 of file TkMeasurementDetSet.h.

References activeThisPeriod_, and i.

Referenced by PxMeasurementDetSet::isActive().

344 { return activeThisPeriod_[i]; }
int i
Definition: DBlmapReader.cc:9
std::vector< bool > activeThisPeriod_
int PxMeasurementConditionSet::nDet ( ) const
inline

Definition at line 337 of file TkMeasurementDetSet.h.

References id_.

Referenced by PxMeasurementDetSet::size().

337 { return id_.size();}
std::vector< unsigned int > id_
const PixelClusterParameterEstimator* PxMeasurementConditionSet::pixelCPE ( ) const
inline

Definition at line 343 of file TkMeasurementDetSet.h.

References theCPE.

Referenced by TkPixelMeasurementDet::cpe().

343 { return theCPE;}
const PixelClusterParameterEstimator * theCPE
void PxMeasurementConditionSet::setActive ( int  i,
bool  active 
)
inline

Turn on/off the module for reconstruction, for the full run or lumi (using info from DB, usually). This also resets the 'setActiveThisEvent' to true.

Definition at line 348 of file TkMeasurementDetSet.h.

References activeThisPeriod_, and i.

Referenced by TkPixelMeasurementDet::setActive().

348 { activeThisPeriod_[i] = active; }
int i
Definition: DBlmapReader.cc:9
std::vector< bool > activeThisPeriod_

Friends And Related Function Documentation

friend class MeasurementTrackerImpl
friend

Definition at line 352 of file TkMeasurementDetSet.h.

Member Data Documentation

std::vector<bool> PxMeasurementConditionSet::activeThisPeriod_
private

Definition at line 359 of file TkMeasurementDetSet.h.

Referenced by init(), isActiveThisPeriod(), and setActive().

std::vector<unsigned int> PxMeasurementConditionSet::id_
private
const PixelClusterParameterEstimator* PxMeasurementConditionSet::theCPE
private

Definition at line 355 of file TkMeasurementDetSet.h.

Referenced by pixelCPE().