CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Private Attributes | Friends
Phase2OTMeasurementDetSet Class Reference

#include <TkMeasurementDetSet.h>

Public Types

typedef edmNew::DetSet
< Phase2TrackerCluster1D
Phase2DetSet
 
typedef edm::Ref
< edmNew::DetSetVector
< Phase2TrackerCluster1D >
, Phase2TrackerCluster1D
Phase2TrackerCluster1DRef
 

Public Member Functions

const
Phase2OTMeasurementConditionSet
conditions () 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
Phase2OTMeasurementConditionSet
conditionSet_
 
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

Definition at line 436 of file TkMeasurementDetSet.h.

Definition at line 435 of file TkMeasurementDetSet.h.

Constructor & Destructor Documentation

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_
const Phase2OTMeasurementConditionSet * conditionSet_

Member Function Documentation

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_
const Phase2DetSet& Phase2OTMeasurementDetSet::detSet ( int  i) const
inline

Definition at line 473 of file TkMeasurementDetSet.h.

References detSet_, and mps_fire::i.

Referenced by TkPhase2OTMeasurementDet::recHits(), and update().

473 { return detSet_[i]; }
std::vector< Phase2DetSet > detSet_
bool Phase2OTMeasurementDetSet::empty ( int  i) const
inline

Definition at line 453 of file TkMeasurementDetSet.h.

References empty_, and mps_fire::i.

Referenced by TkPhase2OTMeasurementDet::isEmpty(), and TkStackMeasurementDet::isEmpty().

453 { return empty_[i]; }
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
const edm::Handle<edmNew::DetSetVector<Phase2TrackerCluster1D> >& Phase2OTMeasurementDetSet::handle ( ) const
inline

Definition at line 471 of file TkMeasurementDetSet.h.

References handle_.

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

471 { return handle_; }
edm::Handle< edmNew::DetSetVector< Phase2TrackerCluster1D > > handle_
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_
unsigned int Phase2OTMeasurementDetSet::id ( int  i) const
inline

Definition at line 445 of file TkMeasurementDetSet.h.

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

Referenced by MeasurementTrackerEventProducer::updatePhase2OT().

445 { return conditions().id(i); }
unsigned int id(int i) const
const Phase2OTMeasurementConditionSet & conditions() const
bool Phase2OTMeasurementDetSet::isActive ( int  i) const
inline
int Phase2OTMeasurementDetSet::nDet ( ) const
inline

Definition at line 444 of file TkMeasurementDetSet.h.

References size().

444 { return size(); }
void Phase2OTMeasurementDetSet::setActiveThisEvent ( bool  active)
inline

Definition at line 465 of file TkMeasurementDetSet.h.

References activeThisEvent_, and PVValHelper::fill().

Referenced by TkPhase2OTMeasurementDet::setActiveThisEvent(), TkPhase2OTMeasurementDet::update(), and MeasurementTrackerEventProducer::updatePhase2OT().

465 { std::fill(activeThisEvent_.begin(), activeThisEvent_.end(), active); }
void fill(std::map< std::string, TH1 * > &h, const std::string &s, double x)
std::vector< bool > activeThisEvent_
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_
void Phase2OTMeasurementDetSet::setEmpty ( int  i)
inline

Definition at line 456 of file TkMeasurementDetSet.h.

References activeThisEvent_, empty_, and mps_fire::i.

Referenced by TkPhase2OTMeasurementDet::setEmpty(), and MeasurementTrackerEventProducer::updatePhase2OT().

456  {
457  empty_[i] = true;
458  activeThisEvent_[i] = true;
459  }
std::vector< bool > activeThisEvent_
void Phase2OTMeasurementDetSet::setEmpty ( )
inline

Definition at line 461 of file TkMeasurementDetSet.h.

References activeThisEvent_, empty_, and PVValHelper::fill().

461  {
462  std::fill(empty_.begin(), empty_.end(), true);
463  std::fill(activeThisEvent_.begin(), activeThisEvent_.end(), true);
464  }
void fill(std::map< std::string, TH1 * > &h, const std::string &s, double x)
std::vector< bool > activeThisEvent_
int Phase2OTMeasurementDetSet::size ( void  ) const
inline
void Phase2OTMeasurementDetSet::update ( int  i,
const Phase2DetSet detSet 
)
inline

Friends And Related Function Documentation

friend class MeasurementTrackerImpl
friend

Definition at line 476 of file TkMeasurementDetSet.h.

Member Data Documentation

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

Definition at line 486 of file TkMeasurementDetSet.h.

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

const Phase2OTMeasurementConditionSet* Phase2OTMeasurementDetSet::conditionSet_
private

Definition at line 478 of file TkMeasurementDetSet.h.

Referenced by conditions().

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

Definition at line 484 of file TkMeasurementDetSet.h.

Referenced by detSet(), and update().

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

Definition at line 485 of file TkMeasurementDetSet.h.

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

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

Definition at line 481 of file TkMeasurementDetSet.h.

Referenced by handle().