CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Friends
Phase2OTMeasurementConditionSet Class Reference

#include <TkMeasurementDetSet.h>

Public Member Functions

const ClusterParameterEstimator< Phase2TrackerCluster1D > * cpe () const
 
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
 
 Phase2OTMeasurementConditionSet (const ClusterParameterEstimator< Phase2TrackerCluster1D > *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 ClusterParameterEstimator< Phase2TrackerCluster1D > * theCPE
 

Friends

class MeasurementTrackerImpl
 

Detailed Description

Definition at line 395 of file TkMeasurementDetSet.h.

Constructor & Destructor Documentation

Phase2OTMeasurementConditionSet::Phase2OTMeasurementConditionSet ( const ClusterParameterEstimator< Phase2TrackerCluster1D > *  cpe)
inline

Definition at line 397 of file TkMeasurementDetSet.h.

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

397  :
398  theCPE(cpe) {}
const ClusterParameterEstimator< Phase2TrackerCluster1D > * theCPE

Member Function Documentation

const ClusterParameterEstimator<Phase2TrackerCluster1D>* Phase2OTMeasurementConditionSet::cpe ( ) const
inline

Definition at line 408 of file TkMeasurementDetSet.h.

References StMeasurementConditionSet::theCPE.

408 { return theCPE;}
const ClusterParameterEstimator< Phase2TrackerCluster1D > * theCPE
int Phase2OTMeasurementConditionSet::find ( unsigned int  jd,
int  i = 0 
) const
inline

Definition at line 404 of file TkMeasurementDetSet.h.

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

404  {
405  return std::lower_bound(id_.begin()+i,id_.end(),jd)-id_.begin();
406  }
std::vector< unsigned int > id_
unsigned int Phase2OTMeasurementConditionSet::id ( int  i) const
inline

Definition at line 403 of file TkMeasurementDetSet.h.

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

Referenced by MeasurementTrackerImpl::initialize().

403 { return id_[i]; }
std::vector< unsigned int > id_
void Phase2OTMeasurementConditionSet::init ( int  size)

Definition at line 41 of file TkMeasurementDetSet.cc.

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

Referenced by MeasurementTrackerImpl::initPhase2OTMeasurementConditionSet().

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

Definition at line 409 of file TkMeasurementDetSet.h.

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

409 { return activeThisPeriod_[i]; }
int Phase2OTMeasurementConditionSet::nDet ( ) const
inline

Definition at line 402 of file TkMeasurementDetSet.h.

References StMeasurementConditionSet::id_.

402 { return id_.size();}
std::vector< unsigned int > id_
void Phase2OTMeasurementConditionSet::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 413 of file TkMeasurementDetSet.h.

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

413 { activeThisPeriod_[i] = active; }

Friends And Related Function Documentation

friend class MeasurementTrackerImpl
friend

Definition at line 417 of file TkMeasurementDetSet.h.

Member Data Documentation

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

Definition at line 424 of file TkMeasurementDetSet.h.

std::vector<unsigned int> Phase2OTMeasurementConditionSet::id_
private
const ClusterParameterEstimator<Phase2TrackerCluster1D>* Phase2OTMeasurementConditionSet::theCPE
private

Definition at line 420 of file TkMeasurementDetSet.h.