CMS 3D CMS Logo

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

#include <TkMeasurementDetSet.h>

Public Types

typedef edmNew::DetSet< Phase2TrackerCluster1DPhase2DetSet
 
typedef edm::Ref< edmNew::DetSetVector< Phase2TrackerCluster1D >, Phase2TrackerCluster1DPhase2TrackerCluster1DRef
 

Public Member Functions

const Phase2OTMeasurementConditionSetconditions () const
 
const Phase2DetSetdetSet (int i) const
 
bool empty (int i) const
 
int find (unsigned int jd, int i=0) const
 
edm::Handle< edmNew::DetSetVector< Phase2TrackerCluster1D > > & handle ()
 
const edm::Handle< edmNew::DetSetVector< Phase2TrackerCluster1D > > & handle () const
 
unsigned int id (int i) const
 
bool isActive (int i) const
 
int nDet () const
 
 Phase2OTMeasurementDetSet (const Phase2OTMeasurementConditionSet &cond)
 
void setActiveThisEvent (bool active)
 
void setActiveThisEvent (int i, bool active)
 
void setEmpty ()
 
void setEmpty (int i)
 
int size () const
 
void update (int i, const Phase2DetSet &detSet)
 

Private Attributes

std::vector< bool > activeThisEvent_
 
const Phase2OTMeasurementConditionSetconditionSet_
 
std::vector< Phase2DetSetdetSet_
 
std::vector< bool > empty_
 
edm::Handle< edmNew::DetSetVector< Phase2TrackerCluster1D > > handle_
 

Friends

class MeasurementTrackerImpl
 

Detailed Description

Definition at line 433 of file TkMeasurementDetSet.h.

Member Typedef Documentation

◆ Phase2DetSet

Definition at line 436 of file TkMeasurementDetSet.h.

◆ Phase2TrackerCluster1DRef

Definition at line 435 of file TkMeasurementDetSet.h.

Constructor & Destructor Documentation

◆ Phase2OTMeasurementDetSet()

Phase2OTMeasurementDetSet::Phase2OTMeasurementDetSet ( const Phase2OTMeasurementConditionSet cond)
inline

Definition at line 438 of file TkMeasurementDetSet.h.

439  : conditionSet_(&cond), detSet_(cond.nDet()), empty_(cond.nDet(), true), activeThisEvent_(cond.nDet(), true) {}

Member Function Documentation

◆ conditions()

const Phase2OTMeasurementConditionSet& Phase2OTMeasurementDetSet::conditions ( ) const
inline

Definition at line 441 of file TkMeasurementDetSet.h.

441 { return *conditionSet_; }

References conditionSet_.

Referenced by find(), id(), isActive(), and size().

◆ detSet()

const Phase2DetSet& Phase2OTMeasurementDetSet::detSet ( int  i) const
inline

Definition at line 473 of file TkMeasurementDetSet.h.

473 { return detSet_[i]; }

References detSet_, and mps_fire::i.

Referenced by update().

◆ empty()

bool Phase2OTMeasurementDetSet::empty ( int  i) const
inline

Definition at line 453 of file TkMeasurementDetSet.h.

453 { return empty_[i]; }

References empty_, and mps_fire::i.

◆ find()

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

Definition at line 446 of file TkMeasurementDetSet.h.

446 { return conditions().find(jd, i); }

References conditions(), Phase2OTMeasurementConditionSet::find(), and mps_fire::i.

◆ handle() [1/2]

edm::Handle<edmNew::DetSetVector<Phase2TrackerCluster1D> >& Phase2OTMeasurementDetSet::handle ( )
inline

Definition at line 472 of file TkMeasurementDetSet.h.

472 { return handle_; }

References handle_.

◆ handle() [2/2]

const edm::Handle<edmNew::DetSetVector<Phase2TrackerCluster1D> >& Phase2OTMeasurementDetSet::handle ( ) const
inline

◆ id()

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

◆ isActive()

bool Phase2OTMeasurementDetSet::isActive ( int  i) const
inline

◆ nDet()

int Phase2OTMeasurementDetSet::nDet ( ) const
inline

Definition at line 444 of file TkMeasurementDetSet.h.

444 { return size(); }

References size().

◆ setActiveThisEvent() [1/2]

void Phase2OTMeasurementDetSet::setActiveThisEvent ( bool  active)
inline

Definition at line 465 of file TkMeasurementDetSet.h.

465 { std::fill(activeThisEvent_.begin(), activeThisEvent_.end(), active); }

References activeThisEvent_, and ntuplemaker::fill.

Referenced by MeasurementTrackerEventProducer::updatePhase2OT().

◆ setActiveThisEvent() [2/2]

void Phase2OTMeasurementDetSet::setActiveThisEvent ( int  i,
bool  active 
)
inline

Definition at line 466 of file TkMeasurementDetSet.h.

466  {
467  activeThisEvent_[i] = active;
468  if (!active)
469  empty_[i] = true;
470  }

References activeThisEvent_, empty_, and mps_fire::i.

◆ setEmpty() [1/2]

void Phase2OTMeasurementDetSet::setEmpty ( )
inline

Definition at line 461 of file TkMeasurementDetSet.h.

461  {
462  std::fill(empty_.begin(), empty_.end(), true);
463  std::fill(activeThisEvent_.begin(), activeThisEvent_.end(), true);
464  }

References activeThisEvent_, empty_, and ntuplemaker::fill.

◆ setEmpty() [2/2]

void Phase2OTMeasurementDetSet::setEmpty ( int  i)
inline

Definition at line 456 of file TkMeasurementDetSet.h.

456  {
457  empty_[i] = true;
458  activeThisEvent_[i] = true;
459  }

References activeThisEvent_, empty_, and mps_fire::i.

Referenced by MeasurementTrackerEventProducer::updatePhase2OT().

◆ size()

int Phase2OTMeasurementDetSet::size ( void  ) const
inline

◆ update()

void Phase2OTMeasurementDetSet::update ( int  i,
const Phase2DetSet detSet 
)
inline

Friends And Related Function Documentation

◆ MeasurementTrackerImpl

friend class MeasurementTrackerImpl
friend

Definition at line 476 of file TkMeasurementDetSet.h.

Member Data Documentation

◆ activeThisEvent_

std::vector<bool> Phase2OTMeasurementDetSet::activeThisEvent_
private

Definition at line 486 of file TkMeasurementDetSet.h.

Referenced by isActive(), setActiveThisEvent(), and setEmpty().

◆ conditionSet_

const Phase2OTMeasurementConditionSet* Phase2OTMeasurementDetSet::conditionSet_
private

Definition at line 478 of file TkMeasurementDetSet.h.

Referenced by conditions().

◆ detSet_

std::vector<Phase2DetSet> Phase2OTMeasurementDetSet::detSet_
private

Definition at line 484 of file TkMeasurementDetSet.h.

Referenced by detSet(), and update().

◆ empty_

std::vector<bool> Phase2OTMeasurementDetSet::empty_
private

Definition at line 485 of file TkMeasurementDetSet.h.

Referenced by empty(), setActiveThisEvent(), setEmpty(), and update().

◆ handle_

edm::Handle<edmNew::DetSetVector<Phase2TrackerCluster1D> > Phase2OTMeasurementDetSet::handle_
private

Definition at line 481 of file TkMeasurementDetSet.h.

Referenced by handle().

Phase2OTMeasurementDetSet::handle_
edm::Handle< edmNew::DetSetVector< Phase2TrackerCluster1D > > handle_
Definition: TkMeasurementDetSet.h:481
mps_fire.i
i
Definition: mps_fire.py:428
Phase2OTMeasurementDetSet::conditionSet_
const Phase2OTMeasurementConditionSet * conditionSet_
Definition: TkMeasurementDetSet.h:478
Phase2OTMeasurementDetSet::detSet_
std::vector< Phase2DetSet > detSet_
Definition: TkMeasurementDetSet.h:484
Phase2OTMeasurementDetSet::empty_
std::vector< bool > empty_
Definition: TkMeasurementDetSet.h:485
Phase2OTMeasurementConditionSet::isActiveThisPeriod
bool isActiveThisPeriod(int i) const
Definition: TkMeasurementDetSet.h:416
Phase2OTMeasurementDetSet::detSet
const Phase2DetSet & detSet(int i) const
Definition: TkMeasurementDetSet.h:473
Phase2OTMeasurementDetSet::activeThisEvent_
std::vector< bool > activeThisEvent_
Definition: TkMeasurementDetSet.h:486
Phase2OTMeasurementDetSet::conditions
const Phase2OTMeasurementConditionSet & conditions() const
Definition: TkMeasurementDetSet.h:441
cond
Definition: plugin.cc:23
ntuplemaker.fill
fill
Definition: ntuplemaker.py:304
Phase2OTMeasurementConditionSet::find
int find(unsigned int jd, int i=0) const
Definition: TkMeasurementDetSet.h:413
Phase2OTMeasurementConditionSet::nDet
int nDet() const
Definition: TkMeasurementDetSet.h:411
Phase2OTMeasurementConditionSet::id
unsigned int id(int i) const
Definition: TkMeasurementDetSet.h:412
Phase2OTMeasurementDetSet::size
int size() const
Definition: TkMeasurementDetSet.h:443