CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
StatusSelector Struct Reference

#include <StatusSelector.h>

Public Member Functions

template<typename T >
bool operator() (const T &t) const
 
StatusSelectoroperator== (const StatusSelector &o)
 
 StatusSelector (const StatusSelector &o)
 
 StatusSelector (const std::vector< int > &status)
 

Private Attributes

std::vector< int >::const_iterator begin_
 
std::vector< int >::const_iterator end_
 
std::vector< int > status_
 

Detailed Description

Definition at line 12 of file StatusSelector.h.

Constructor & Destructor Documentation

◆ StatusSelector() [1/2]

StatusSelector::StatusSelector ( const std::vector< int > &  status)
inline

Definition at line 13 of file StatusSelector.h.

13  {
14  for (std::vector<int>::const_iterator i = status.begin(); i != status.end(); ++i)
15  status_.push_back(*i);
16  begin_ = status_.begin();
17  end_ = status_.end();
18  }

References begin_, end_, mps_fire::i, mps_update::status, and status_.

◆ StatusSelector() [2/2]

StatusSelector::StatusSelector ( const StatusSelector o)
inline

Definition at line 19 of file StatusSelector.h.

19 : status_(o.status_), begin_(status_.begin()), end_(status_.end()) {}

Member Function Documentation

◆ operator()()

template<typename T >
bool StatusSelector::operator() ( const T t) const
inline

Definition at line 25 of file StatusSelector.h.

25  {
26  return std::find(begin_, end_, t.status()) != end_;
27  }

References begin_, end_, spr::find(), and submitPVValidationJobs::t.

◆ operator==()

StatusSelector& StatusSelector::operator== ( const StatusSelector o)
inline

Definition at line 20 of file StatusSelector.h.

20  {
21  *this = o;
22  return *this;
23  }

References EcalTangentSkim_cfg::o.

Member Data Documentation

◆ begin_

std::vector<int>::const_iterator StatusSelector::begin_
private

Definition at line 31 of file StatusSelector.h.

Referenced by operator()(), and StatusSelector().

◆ end_

std::vector<int>::const_iterator StatusSelector::end_
private

Definition at line 31 of file StatusSelector.h.

Referenced by operator()(), and StatusSelector().

◆ status_

std::vector<int> StatusSelector::status_
private

Definition at line 30 of file StatusSelector.h.

Referenced by StatusSelector().

mps_fire.i
i
Definition: mps_fire.py:428
mps_update.status
status
Definition: mps_update.py:69
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
StatusSelector::status_
std::vector< int > status_
Definition: StatusSelector.h:30
StatusSelector::begin_
std::vector< int >::const_iterator begin_
Definition: StatusSelector.h:31
StatusSelector::end_
std::vector< int >::const_iterator end_
Definition: StatusSelector.h:31
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644