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 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) {}
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 441 of file TkMeasurementDetSet.h.

References conditionSet_.

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

441 { return *conditionSet_; }
const Phase2OTMeasurementConditionSet * conditionSet_

◆ detSet()

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

Definition at line 473 of file TkMeasurementDetSet.h.

References detSet_, and mps_fire::i.

Referenced by update().

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

◆ empty()

bool Phase2OTMeasurementDetSet::empty ( int  i) const
inline

Definition at line 453 of file TkMeasurementDetSet.h.

References empty_, and mps_fire::i.

453 { return empty_[i]; }

◆ find()

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

Definition at line 446 of file TkMeasurementDetSet.h.

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

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

References handle_.

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

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

◆ handle() [2/2]

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

Definition at line 472 of file TkMeasurementDetSet.h.

References handle_.

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

◆ id()

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

Definition at line 445 of file TkMeasurementDetSet.h.

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

Referenced by MeasurementTrackerEventProducer::updatePhase2OT().

445 { 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 444 of file TkMeasurementDetSet.h.

References size().

444 { return size(); }

◆ setActiveThisEvent() [1/2]

void Phase2OTMeasurementDetSet::setActiveThisEvent ( bool  active)
inline

Definition at line 465 of file TkMeasurementDetSet.h.

References activeThisEvent_, and ntuplemaker::fill.

Referenced by MeasurementTrackerEventProducer::updatePhase2OT().

465 { 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 466 of file TkMeasurementDetSet.h.

References activeThisEvent_, empty_, and mps_fire::i.

466  {
467  activeThisEvent_[i] = active;
468  if (!active)
469  empty_[i] = true;
470  }
std::vector< bool > activeThisEvent_

◆ setEmpty() [1/2]

void Phase2OTMeasurementDetSet::setEmpty ( int  i)
inline

Definition at line 456 of file TkMeasurementDetSet.h.

References activeThisEvent_, empty_, and mps_fire::i.

Referenced by MeasurementTrackerEventProducer::updatePhase2OT().

456  {
457  empty_[i] = true;
458  activeThisEvent_[i] = true;
459  }
std::vector< bool > activeThisEvent_

◆ setEmpty() [2/2]

void Phase2OTMeasurementDetSet::setEmpty ( )
inline

Definition at line 461 of file TkMeasurementDetSet.h.

References activeThisEvent_, empty_, and ntuplemaker::fill.

461  {
462  std::fill(empty_.begin(), empty_.end(), true);
463  std::fill(activeThisEvent_.begin(), activeThisEvent_.end(), true);
464  }
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 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().