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

Constructor & Destructor Documentation

◆ PxMeasurementConditionSet()

PxMeasurementConditionSet::PxMeasurementConditionSet ( const PixelClusterParameterEstimator cpe)
inline

Definition at line 297 of file TkMeasurementDetSet.h.

297 : theCPE(cpe) {}

Member Function Documentation

◆ find()

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

Definition at line 303 of file TkMeasurementDetSet.h.

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

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

Referenced by PxMeasurementDetSet::find().

◆ id()

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

Definition at line 302 of file TkMeasurementDetSet.h.

302 { return id_[i]; }

References mps_fire::i, and id_.

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

◆ init()

void PxMeasurementConditionSet::init ( int  size)

Definition at line 37 of file TkMeasurementDetSet.cc.

37  {
38  activeThisPeriod_.resize(size, true);
39  id_.resize(size);
40 }

References activeThisPeriod_, id_, and findQualityFiles::size.

Referenced by MeasurementTrackerImpl::initPxMeasurementConditionSet().

◆ isActiveThisPeriod()

bool PxMeasurementConditionSet::isActiveThisPeriod ( int  i) const
inline

Definition at line 306 of file TkMeasurementDetSet.h.

306 { return activeThisPeriod_[i]; }

References activeThisPeriod_, and mps_fire::i.

Referenced by PxMeasurementDetSet::isActive().

◆ nDet()

int PxMeasurementConditionSet::nDet ( ) const
inline

Definition at line 301 of file TkMeasurementDetSet.h.

301 { return id_.size(); }

References id_.

Referenced by PxMeasurementDetSet::size().

◆ pixelCPE()

const PixelClusterParameterEstimator* PxMeasurementConditionSet::pixelCPE ( ) const
inline

Definition at line 305 of file TkMeasurementDetSet.h.

305 { return theCPE; }

References theCPE.

Referenced by MeasurementTrackerImpl::addStackDet().

◆ setActive()

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

310 { activeThisPeriod_[i] = active; }

References activeThisPeriod_, and mps_fire::i.

Friends And Related Function Documentation

◆ MeasurementTrackerImpl

friend class MeasurementTrackerImpl
friend

Definition at line 313 of file TkMeasurementDetSet.h.

Member Data Documentation

◆ activeThisPeriod_

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

Definition at line 320 of file TkMeasurementDetSet.h.

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

◆ id_

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

◆ theCPE

const PixelClusterParameterEstimator* PxMeasurementConditionSet::theCPE
private

Definition at line 316 of file TkMeasurementDetSet.h.

Referenced by pixelCPE().

PxMeasurementConditionSet::theCPE
const PixelClusterParameterEstimator * theCPE
Definition: TkMeasurementDetSet.h:316
mps_fire.i
i
Definition: mps_fire.py:428
PxMeasurementConditionSet::activeThisPeriod_
std::vector< bool > activeThisPeriod_
Definition: TkMeasurementDetSet.h:320
pfDeepBoostedJetPreprocessParams_cfi.lower_bound
lower_bound
Definition: pfDeepBoostedJetPreprocessParams_cfi.py:15
PxMeasurementConditionSet::id_
std::vector< unsigned int > id_
Definition: TkMeasurementDetSet.h:319
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443