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
 
const edm::Handle< edmNew::DetSetVector< Phase2TrackerCluster1D > > & handle () const
 
edm::Handle< edmNew::DetSetVector< Phase2TrackerCluster1D > > & handle ()
 
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 (int i)
 
void setEmpty ()
 
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 454 of file TkMeasurementDetSet.h.

Member Typedef Documentation

◆ Phase2DetSet

Definition at line 457 of file TkMeasurementDetSet.h.

◆ Phase2TrackerCluster1DRef

Definition at line 456 of file TkMeasurementDetSet.h.

Constructor & Destructor Documentation

◆ Phase2OTMeasurementDetSet()

Phase2OTMeasurementDetSet::Phase2OTMeasurementDetSet ( const Phase2OTMeasurementConditionSet cond)
inline

Definition at line 459 of file TkMeasurementDetSet.h.

460  : conditionSet_(&cond), detSet_(cond.nDet()), empty_(cond.nDet(), true), activeThisEvent_(cond.nDet(), true) {}
std::vector< Phase2DetSet > detSet_
std::vector< bool > activeThisEvent_
const Phase2OTMeasurementConditionSet * conditionSet_

Member Function Documentation

◆ conditions()

const Phase2OTMeasurementConditionSet& Phase2OTMeasurementDetSet::conditions ( ) const
inline

Definition at line 462 of file TkMeasurementDetSet.h.

References conditionSet_.

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

462 { return *conditionSet_; }
const Phase2OTMeasurementConditionSet * conditionSet_

◆ detSet()

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

Definition at line 494 of file TkMeasurementDetSet.h.

References detSet_, and mps_fire::i.

Referenced by update().

494 { return detSet_[i]; }
std::vector< Phase2DetSet > detSet_

◆ empty()

bool Phase2OTMeasurementDetSet::empty ( int  i) const
inline

Definition at line 474 of file TkMeasurementDetSet.h.

References empty_, and mps_fire::i.

474 { return empty_[i]; }

◆ find()

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

Definition at line 467 of file TkMeasurementDetSet.h.

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

467 { return conditions().find(jd, i); }
int find(unsigned int jd, int i=0) const
const Phase2OTMeasurementConditionSet & conditions() const

◆ handle() [1/2]

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

Definition at line 492 of file TkMeasurementDetSet.h.

References handle_.

Referenced by MeasurementTrackerEvent::MeasurementTrackerEvent(), and MeasurementTrackerEventProducer::updatePhase2OT().

492 { return handle_; }
edm::Handle< edmNew::DetSetVector< Phase2TrackerCluster1D > > handle_

◆ handle() [2/2]

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

Definition at line 493 of file TkMeasurementDetSet.h.

References handle_.

493 { return handle_; }
edm::Handle< edmNew::DetSetVector< Phase2TrackerCluster1D > > handle_

◆ id()

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

Definition at line 466 of file TkMeasurementDetSet.h.

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

Referenced by MeasurementTrackerEventProducer::updatePhase2OT().

466 { return conditions().id(i); }
unsigned int id(int i) const
const Phase2OTMeasurementConditionSet & conditions() const

◆ isActive()

bool Phase2OTMeasurementDetSet::isActive ( int  i) const
inline

◆ nDet()

int Phase2OTMeasurementDetSet::nDet ( ) const
inline

Definition at line 465 of file TkMeasurementDetSet.h.

References size().

465 { return size(); }

◆ setActiveThisEvent() [1/2]

void Phase2OTMeasurementDetSet::setActiveThisEvent ( bool  active)
inline

◆ setActiveThisEvent() [2/2]

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

Definition at line 487 of file TkMeasurementDetSet.h.

References activeThisEvent_, empty_, and mps_fire::i.

487  {
488  activeThisEvent_[i] = active;
489  if (!active)
490  empty_[i] = true;
491  }
std::vector< bool > activeThisEvent_

◆ setEmpty() [1/2]

void Phase2OTMeasurementDetSet::setEmpty ( int  i)
inline

Definition at line 477 of file TkMeasurementDetSet.h.

References activeThisEvent_, empty_, and mps_fire::i.

Referenced by MeasurementTrackerEventProducer::updatePhase2OT().

477  {
478  empty_[i] = true;
479  activeThisEvent_[i] = true;
480  }
std::vector< bool > activeThisEvent_

◆ setEmpty() [2/2]

void Phase2OTMeasurementDetSet::setEmpty ( )
inline

Definition at line 482 of file TkMeasurementDetSet.h.

References activeThisEvent_, empty_, and EcalPhiSymFlatTableProducers_cfi::fill.

482  {
483  std::fill(empty_.begin(), empty_.end(), true);
484  std::fill(activeThisEvent_.begin(), activeThisEvent_.end(), true);
485  }
std::vector< bool > activeThisEvent_

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

Member Data Documentation

◆ activeThisEvent_

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

Definition at line 507 of file TkMeasurementDetSet.h.

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

◆ conditionSet_

const Phase2OTMeasurementConditionSet* Phase2OTMeasurementDetSet::conditionSet_
private

Definition at line 499 of file TkMeasurementDetSet.h.

Referenced by conditions().

◆ detSet_

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

Definition at line 505 of file TkMeasurementDetSet.h.

Referenced by detSet(), and update().

◆ empty_

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

Definition at line 506 of file TkMeasurementDetSet.h.

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

◆ handle_

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

Definition at line 502 of file TkMeasurementDetSet.h.

Referenced by handle().