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

Constructor & Destructor Documentation

◆ Phase2OTMeasurementConditionSet()

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

Definition at line 407 of file TkMeasurementDetSet.h.

407 : theCPE(cpe) {}

Member Function Documentation

◆ cpe()

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

Definition at line 415 of file TkMeasurementDetSet.h.

415 { return theCPE; }

References theCPE.

◆ find()

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

Definition at line 413 of file TkMeasurementDetSet.h.

413 { return std::lower_bound(id_.begin() + i, id_.end(), jd) - id_.begin(); }

References mps_fire::i, id_, and pfDeepBoostedJetPreprocessParams_cfi::lower_bound.

Referenced by Phase2OTMeasurementDetSet::find().

◆ id()

unsigned int Phase2OTMeasurementConditionSet::id ( int  i) const
inline

Definition at line 412 of file TkMeasurementDetSet.h.

412 { return id_[i]; }

References mps_fire::i, and id_.

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

◆ init()

void Phase2OTMeasurementConditionSet::init ( int  size)

Definition at line 42 of file TkMeasurementDetSet.cc.

42  {
43  activeThisPeriod_.resize(size, true);
44  id_.resize(size);
45 }

References activeThisPeriod_, id_, and findQualityFiles::size.

Referenced by MeasurementTrackerImpl::initPhase2OTMeasurementConditionSet().

◆ isActiveThisPeriod()

bool Phase2OTMeasurementConditionSet::isActiveThisPeriod ( int  i) const
inline

Definition at line 416 of file TkMeasurementDetSet.h.

416 { return activeThisPeriod_[i]; }

References activeThisPeriod_, and mps_fire::i.

Referenced by Phase2OTMeasurementDetSet::isActive().

◆ nDet()

int Phase2OTMeasurementConditionSet::nDet ( ) const
inline

Definition at line 411 of file TkMeasurementDetSet.h.

411 { return id_.size(); }

References id_.

Referenced by Phase2OTMeasurementDetSet::size().

◆ setActive()

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

420 { activeThisPeriod_[i] = active; }

References activeThisPeriod_, and mps_fire::i.

Friends And Related Function Documentation

◆ MeasurementTrackerImpl

friend class MeasurementTrackerImpl
friend

Definition at line 423 of file TkMeasurementDetSet.h.

Member Data Documentation

◆ activeThisPeriod_

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

Definition at line 430 of file TkMeasurementDetSet.h.

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

◆ id_

std::vector<unsigned int> Phase2OTMeasurementConditionSet::id_
private

◆ theCPE

const ClusterParameterEstimator<Phase2TrackerCluster1D>* Phase2OTMeasurementConditionSet::theCPE
private

Definition at line 426 of file TkMeasurementDetSet.h.

Referenced by cpe().

mps_fire.i
i
Definition: mps_fire.py:428
Phase2OTMeasurementConditionSet::id_
std::vector< unsigned int > id_
Definition: TkMeasurementDetSet.h:429
Phase2OTMeasurementConditionSet::theCPE
const ClusterParameterEstimator< Phase2TrackerCluster1D > * theCPE
Definition: TkMeasurementDetSet.h:426
pfDeepBoostedJetPreprocessParams_cfi.lower_bound
lower_bound
Definition: pfDeepBoostedJetPreprocessParams_cfi.py:15
Phase2OTMeasurementConditionSet::cpe
const ClusterParameterEstimator< Phase2TrackerCluster1D > * cpe() const
Definition: TkMeasurementDetSet.h:415
Phase2OTMeasurementConditionSet::activeThisPeriod_
std::vector< bool > activeThisPeriod_
Definition: TkMeasurementDetSet.h:430
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443