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)=default
 
StatusSelectoroperator== (const StatusSelector &o)
 
 StatusSelector (const std::vector< int > &status)
 
 StatusSelector (const StatusSelector &o)
 

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.

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

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  }
std::vector< int >::const_iterator end_
std::vector< int > status_
std::vector< int >::const_iterator begin_

◆ 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()) {}
std::vector< int >::const_iterator end_
std::vector< int > status_
std::vector< int >::const_iterator begin_

Member Function Documentation

◆ operator()()

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

Definition at line 26 of file StatusSelector.h.

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

26  {
27  return std::find(begin_, end_, t.status()) != end_;
28  }
std::vector< int >::const_iterator end_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
std::vector< int >::const_iterator begin_

◆ operator=()

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

◆ operator==()

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

Definition at line 21 of file StatusSelector.h.

References EcalTangentSkim_cfg::o.

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

Member Data Documentation

◆ begin_

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

Definition at line 32 of file StatusSelector.h.

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

◆ end_

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

Definition at line 32 of file StatusSelector.h.

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

◆ status_

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

Definition at line 31 of file StatusSelector.h.

Referenced by StatusSelector().