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 304 of file TkMeasurementDetSet.h.

Constructor & Destructor Documentation

PxMeasurementConditionSet::PxMeasurementConditionSet ( const PixelClusterParameterEstimator cpe)
inline

Definition at line 306 of file TkMeasurementDetSet.h.

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

306  :
307  theCPE(cpe) {}
const PixelClusterParameterEstimator * theCPE

Member Function Documentation

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

Definition at line 313 of file TkMeasurementDetSet.h.

References mps_fire::i, and StMeasurementConditionSet::id_.

313  {
314  return std::lower_bound(id_.begin()+i,id_.end(),jd)-id_.begin();
315  }
std::vector< unsigned int > id_
unsigned int PxMeasurementConditionSet::id ( int  i) const
inline

Definition at line 312 of file TkMeasurementDetSet.h.

References mps_fire::i, and StMeasurementConditionSet::id_.

Referenced by MeasurementTrackerImpl::initialize().

312 { return id_[i]; }
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 318 of file TkMeasurementDetSet.h.

References StMeasurementConditionSet::activeThisPeriod_, and mps_fire::i.

318 { return activeThisPeriod_[i]; }
std::vector< bool > activeThisPeriod_
int PxMeasurementConditionSet::nDet ( ) const
inline

Definition at line 311 of file TkMeasurementDetSet.h.

References StMeasurementConditionSet::id_.

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

Definition at line 317 of file TkMeasurementDetSet.h.

References StMeasurementConditionSet::theCPE.

Referenced by MeasurementTrackerImpl::addStackDet().

317 { 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 322 of file TkMeasurementDetSet.h.

References StMeasurementConditionSet::activeThisPeriod_, and mps_fire::i.

322 { activeThisPeriod_[i] = active; }
std::vector< bool > activeThisPeriod_

Friends And Related Function Documentation

friend class MeasurementTrackerImpl
friend

Definition at line 326 of file TkMeasurementDetSet.h.

Member Data Documentation

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

Definition at line 333 of file TkMeasurementDetSet.h.

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

Definition at line 329 of file TkMeasurementDetSet.h.