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

Member Typedef Documentation

◆ Phase2DetSet

Definition at line 449 of file TkMeasurementDetSet.h.

◆ Phase2TrackerCluster1DRef

Definition at line 448 of file TkMeasurementDetSet.h.

Constructor & Destructor Documentation

◆ Phase2OTMeasurementDetSet()

Phase2OTMeasurementDetSet::Phase2OTMeasurementDetSet ( const Phase2OTMeasurementConditionSet cond)
inline

Definition at line 451 of file TkMeasurementDetSet.h.

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

Member Function Documentation

◆ conditions()

const Phase2OTMeasurementConditionSet& Phase2OTMeasurementDetSet::conditions ( ) const
inline

Definition at line 454 of file TkMeasurementDetSet.h.

References conditionSet_.

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

454 { return *conditionSet_; }
const Phase2OTMeasurementConditionSet * conditionSet_

◆ detSet()

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

Definition at line 486 of file TkMeasurementDetSet.h.

References detSet_, and mps_fire::i.

Referenced by update().

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

◆ empty()

bool Phase2OTMeasurementDetSet::empty ( int  i) const
inline

Definition at line 466 of file TkMeasurementDetSet.h.

References empty_, and mps_fire::i.

466 { return empty_[i]; }

◆ find()

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

Definition at line 459 of file TkMeasurementDetSet.h.

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

459 { 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 484 of file TkMeasurementDetSet.h.

References handle_.

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

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

◆ handle() [2/2]

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

Definition at line 485 of file TkMeasurementDetSet.h.

References handle_.

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

◆ id()

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

Definition at line 458 of file TkMeasurementDetSet.h.

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

Referenced by MeasurementTrackerEventProducer::updatePhase2OT().

458 { 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 457 of file TkMeasurementDetSet.h.

References size().

457 { return size(); }

◆ setActiveThisEvent() [1/2]

void Phase2OTMeasurementDetSet::setActiveThisEvent ( bool  active)
inline

Definition at line 478 of file TkMeasurementDetSet.h.

References activeThisEvent_, and ntuplemaker::fill.

Referenced by MeasurementTrackerEventProducer::updatePhase2OT().

478 { std::fill(activeThisEvent_.begin(), activeThisEvent_.end(), active); }
std::vector< bool > activeThisEvent_

◆ setActiveThisEvent() [2/2]

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

Definition at line 479 of file TkMeasurementDetSet.h.

References activeThisEvent_, empty_, and mps_fire::i.

479  {
480  activeThisEvent_[i] = active;
481  if (!active)
482  empty_[i] = true;
483  }
std::vector< bool > activeThisEvent_

◆ setEmpty() [1/2]

void Phase2OTMeasurementDetSet::setEmpty ( int  i)
inline

Definition at line 469 of file TkMeasurementDetSet.h.

References activeThisEvent_, empty_, and mps_fire::i.

Referenced by MeasurementTrackerEventProducer::updatePhase2OT().

469  {
470  empty_[i] = true;
471  activeThisEvent_[i] = true;
472  }
std::vector< bool > activeThisEvent_

◆ setEmpty() [2/2]

void Phase2OTMeasurementDetSet::setEmpty ( )
inline

Definition at line 474 of file TkMeasurementDetSet.h.

References activeThisEvent_, empty_, and ntuplemaker::fill.

474  {
475  std::fill(empty_.begin(), empty_.end(), true);
476  std::fill(activeThisEvent_.begin(), activeThisEvent_.end(), true);
477  }
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 489 of file TkMeasurementDetSet.h.

Member Data Documentation

◆ activeThisEvent_

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

Definition at line 499 of file TkMeasurementDetSet.h.

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

◆ conditionSet_

const Phase2OTMeasurementConditionSet* Phase2OTMeasurementDetSet::conditionSet_
private

Definition at line 491 of file TkMeasurementDetSet.h.

Referenced by conditions().

◆ detSet_

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

Definition at line 497 of file TkMeasurementDetSet.h.

Referenced by detSet(), and update().

◆ empty_

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

Definition at line 498 of file TkMeasurementDetSet.h.

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

◆ handle_

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

Definition at line 494 of file TkMeasurementDetSet.h.

Referenced by handle().