CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 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::StatusSelector ( const std::vector< int > &  status)
inline

Definition at line 13 of file StatusSelector.h.

References begin_, end_, i, 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  }
int i
Definition: DBlmapReader.cc:9
std::vector< int >::const_iterator end_
std::vector< int > status_
std::vector< int >::const_iterator begin_
tuple status
Definition: ntuplemaker.py:245
StatusSelector::StatusSelector ( const StatusSelector o)
inline

Definition at line 19 of file StatusSelector.h.

19  :
20  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

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

Definition at line 25 of file StatusSelector.h.

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

25  {
26  return std::find( begin_, end_, t.status() ) != end_;
27  }
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:7
std::vector< int >::const_iterator begin_
StatusSelector& StatusSelector::operator== ( const StatusSelector o)
inline

Definition at line 21 of file StatusSelector.h.

References python.connectstrParser::o.

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

Member Data Documentation

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

Definition at line 30 of file StatusSelector.h.

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

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

Definition at line 30 of file StatusSelector.h.

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

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

Definition at line 29 of file StatusSelector.h.

Referenced by StatusSelector().