CMS 3D CMS Logo

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 PixelClusterParameterEstimatorpixelCPE () 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 PixelClusterParameterEstimatortheCPE
 

Friends

class MeasurementTrackerImpl
 

Detailed Description

Definition at line 302 of file TkMeasurementDetSet.h.

Constructor & Destructor Documentation

PxMeasurementConditionSet::PxMeasurementConditionSet ( const PixelClusterParameterEstimator cpe)
inline

Definition at line 304 of file TkMeasurementDetSet.h.

References StMeasurementConditionSet::init(), and findQualityFiles::size.

304  :
305  theCPE(cpe) {}
const PixelClusterParameterEstimator * theCPE

Member Function Documentation

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

Definition at line 311 of file TkMeasurementDetSet.h.

References i, and StMeasurementConditionSet::id_.

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

Definition at line 310 of file TkMeasurementDetSet.h.

References i, and StMeasurementConditionSet::id_.

Referenced by MeasurementTrackerImpl::initialize().

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

Definition at line 36 of file TkMeasurementDetSet.cc.

References StMeasurementConditionSet::activeThisPeriod_, and StMeasurementConditionSet::id_.

Referenced by MeasurementTrackerImpl::initPxMeasurementConditionSet().

36  {
37  activeThisPeriod_.resize(size,true);
38  id_.resize(size);
39 }
size
Write out results.
std::vector< unsigned int > id_
std::vector< bool > activeThisPeriod_
bool PxMeasurementConditionSet::isActiveThisPeriod ( int  i) const
inline

Definition at line 316 of file TkMeasurementDetSet.h.

References StMeasurementConditionSet::activeThisPeriod_, and i.

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

Definition at line 309 of file TkMeasurementDetSet.h.

References StMeasurementConditionSet::id_.

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

Definition at line 315 of file TkMeasurementDetSet.h.

References StMeasurementConditionSet::theCPE.

Referenced by MeasurementTrackerImpl::addStackDet().

315 { 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 320 of file TkMeasurementDetSet.h.

References StMeasurementConditionSet::activeThisPeriod_, and i.

320 { 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 324 of file TkMeasurementDetSet.h.

Member Data Documentation

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

Definition at line 331 of file TkMeasurementDetSet.h.

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

Definition at line 327 of file TkMeasurementDetSet.h.