CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Attributes
Selector< T > Class Template Referenceabstract

Functor that operates on <T> More...

#include "CommonTools/Utils/interface/Selector.h"

Inheritance diagram for Selector< T >:
VersionedSelector< T >

Public Types

typedef std::pair< index_type, size_t > cut_flow_item
 
typedef std::vector< cut_flow_itemcut_flow_map
 
typedef T data_type
 
typedef std::map< index_type, double > double_map
 
typedef pat::strbitset::index_type index_type
 
typedef std::map< index_type, int > int_map
 

Public Member Functions

void clear (std::string const &s)
 Turn off a given selection cut. More...
 
void clear (index_type const &i)
 
bool considerCut (std::string const &s) const
 consider the cut at index "s" More...
 
bool considerCut (index_type const &i) const
 
int cut (index_type const &i, int val) const
 Access the int cut values at index "s". More...
 
double cut (index_type const &i, double val) const
 Access the double cut values at index "s". More...
 
int cut (std::string s, int val) const
 Access the int cut values at index "s". More...
 
double cut (std::string s, double val) const
 Access the double cut values at index "s". More...
 
pat::strbitset getBitTemplate () const
 Get an empty bitset with the proper names. More...
 
double getPasses (std::string const &s) const
 Return the number of passing cases. More...
 
double getPasses (index_type const &i) const
 
bool ignoreCut (std::string const &s) const
 ignore the cut at index "s" More...
 
bool ignoreCut (index_type const &i) const
 
virtual bool operator() (T const &t, pat::strbitset &ret)=0
 This provides the interface for base classes to select objects. More...
 
virtual bool operator() (T const &t)
 This provides an alternative signature without the second ret. More...
 
virtual bool operator() (T const &t, edm::EventBase const &e, pat::strbitset &ret)
 This provides an alternative signature that includes extra information. More...
 
virtual bool operator() (T const &t, edm::EventBase const &e)
 This provides an alternative signature that includes extra information. More...
 
bool operator[] (std::string const &s) const
 
bool operator[] (index_type const &i) const
 
void passCut (pat::strbitset &ret, std::string const &s)
 Passing cuts. More...
 
void passCut (pat::strbitset &ret, index_type const &i)
 
void print (std::ostream &out) const
 Print the cut flow. More...
 
void printActiveCuts (std::ostream &out) const
 Print the cuts being considered. More...
 
virtual void push_back (std::string const &s)
 This is the registration of an individual cut string. More...
 
virtual void push_back (std::string const &s, int cut)
 This is the registration of an individual cut string, with an int cut value. More...
 
virtual void push_back (std::string const &s, double cut)
 This is the registration of an individual cut string, with a double cut value. More...
 
 Selector ()
 Constructor clears the bits. More...
 
void set (std::string const &s, bool val=true)
 Set a given selection cut, on or off. More...
 
void set (index_type const &i, bool val=true)
 
void set (std::string const &s, int cut, bool val=true)
 Set a given selection cut, on or off, and reset int cut value. More...
 
void set (index_type const &i, int cut, bool val=true)
 
void set (std::string const &s, double cut, bool val=true)
 Set a given selection cut, on or off, and reset int cut value. More...
 
void set (index_type const &i, double cut, bool val=true)
 
void setIgnored (pat::strbitset &ret)
 set ignored bits More...
 
void setIgnoredCuts (std::vector< std::string > const &bitsToIgnore)
 set the bits to ignore from a vector More...
 
virtual ~Selector ()
 

Protected Attributes

pat::strbitset bits_
 the bitset indexed by strings More...
 
cut_flow_map cutFlow_
 map of cut flows in "human" order More...
 
double_map doubleCuts_
 the double-value cut map More...
 
int_map intCuts_
 the int-value cut map More...
 
pat::strbitset retInternal_
 internal ret if users don't care about return bits More...
 

Detailed Description

template<class T>
class Selector< T >

Functor that operates on <T>

Implements a string-indexed bit_vector.

class template that implements an interface to Selector utilities. This allows the user to access individual cuts based on a string index. The user can then turn individual cuts on and off at will.

Author
Salvatore Rappoccio

Definition at line 23 of file Selector.h.

Member Typedef Documentation

template<class T>
typedef std::pair<index_type, size_t> Selector< T >::cut_flow_item

Definition at line 28 of file Selector.h.

template<class T>
typedef std::vector<cut_flow_item> Selector< T >::cut_flow_map

Definition at line 29 of file Selector.h.

template<class T>
typedef T Selector< T >::data_type

Definition at line 26 of file Selector.h.

template<class T>
typedef std::map<index_type, double> Selector< T >::double_map

Definition at line 31 of file Selector.h.

template<class T>
typedef pat::strbitset::index_type Selector< T >::index_type

Definition at line 27 of file Selector.h.

template<class T>
typedef std::map<index_type, int> Selector< T >::int_map

Definition at line 30 of file Selector.h.

Constructor & Destructor Documentation

template<class T>
Selector< T >::Selector ( )
inline

Constructor clears the bits.

Definition at line 34 of file Selector.h.

34  {
35  bits_.clear();
36  intCuts_.clear();
37  doubleCuts_.clear();
38  cutFlow_.clear();
40  }
pat::strbitset retInternal_
internal ret if users don&#39;t care about return bits
Definition: Selector.h:285
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
cut_flow_map cutFlow_
map of cut flows in "human" order
Definition: Selector.h:288
void clear()
clear the bitset and map
Definition: strbitset.h:75
pat::strbitset getBitTemplate() const
Get an empty bitset with the proper names.
Definition: Selector.h:210
double_map doubleCuts_
the double-value cut map
Definition: Selector.h:287
int_map intCuts_
the int-value cut map
Definition: Selector.h:286
template<class T>
virtual Selector< T >::~Selector ( )
inlinevirtual

Definition at line 41 of file Selector.h.

41 {}

Member Function Documentation

template<class T>
void Selector< T >::clear ( std::string const &  s)
inline

Turn off a given selection cut.

Definition at line 129 of file Selector.h.

Referenced by Selector< edm::Ptr< reco::Photon > >::clear().

129  {
130  clear(index_type(&bits_,s));
131  }
pat::strbitset::index_type index_type
Definition: Selector.h:27
void clear(std::string const &s)
Turn off a given selection cut.
Definition: Selector.h:129
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
template<class T>
void Selector< T >::clear ( index_type const &  i)
inline

Definition at line 133 of file Selector.h.

133  {
134  bits_[i] = false;
135  }
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
template<class T>
bool Selector< T >::considerCut ( std::string const &  s) const
inline

consider the cut at index "s"

Definition at line 149 of file Selector.h.

Referenced by Selector< edm::Ptr< reco::Photon > >::print(), and Selector< edm::Ptr< reco::Photon > >::printActiveCuts().

149  {
150  return bits_[s] == true;
151  }
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
template<class T>
bool Selector< T >::considerCut ( index_type const &  i) const
inline

Definition at line 152 of file Selector.h.

152  {
153  return bits_[i] == true;
154  }
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
template<class T>
int Selector< T >::cut ( index_type const &  i,
int  val 
) const
inline

Access the int cut values at index "s".

Definition at line 192 of file Selector.h.

Referenced by Selector< edm::Ptr< reco::Photon > >::cut(), Selector< edm::Ptr< reco::Photon > >::push_back(), and Selector< edm::Ptr< reco::Photon > >::set().

192  {
193  return intCuts_.find( i )->second;
194  };
int_map intCuts_
the int-value cut map
Definition: Selector.h:286
template<class T>
double Selector< T >::cut ( index_type const &  i,
double  val 
) const
inline

Access the double cut values at index "s".

Definition at line 196 of file Selector.h.

196  {
197  return doubleCuts_.find( i )->second;
198  };
double_map doubleCuts_
the double-value cut map
Definition: Selector.h:287
template<class T>
int Selector< T >::cut ( std::string  s,
int  val 
) const
inline

Access the int cut values at index "s".

Definition at line 201 of file Selector.h.

201  {
202  return cut( index_type(&bits_,s), val);
203  };
pat::strbitset::index_type index_type
Definition: Selector.h:27
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
int cut(index_type const &i, int val) const
Access the int cut values at index "s".
Definition: Selector.h:192
template<class T>
double Selector< T >::cut ( std::string  s,
double  val 
) const
inline

Access the double cut values at index "s".

Definition at line 205 of file Selector.h.

205  {
206  return cut( index_type(&bits_,s), val);
207  };
pat::strbitset::index_type index_type
Definition: Selector.h:27
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
int cut(index_type const &i, int val) const
Access the int cut values at index "s".
Definition: Selector.h:192
template<class T>
pat::strbitset Selector< T >::getBitTemplate ( ) const
inline

Get an empty bitset with the proper names.

Definition at line 210 of file Selector.h.

Referenced by SimpleJetFilter::filter(), WPlusJetsEventSelector::operator()(), and Selector< edm::Ptr< reco::Photon > >::Selector().

210  {
211  pat::strbitset ret = bits_;
212  ret.set(false);
213  for ( cut_flow_map::const_iterator cutsBegin = cutFlow_.begin(),
214  cutsEnd = cutFlow_.end(), icut = cutsBegin;
215  icut != cutsEnd; ++icut ) {
216  if ( ignoreCut(icut->first) ) ret[icut->first] = true;
217  }
218  return ret;
219  }
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
bool ignoreCut(std::string const &s) const
ignore the cut at index "s"
Definition: Selector.h:157
cut_flow_map cutFlow_
map of cut flows in "human" order
Definition: Selector.h:288
strbitset & set(bool val=true)
set method of all bits
Definition: strbitset.h:144
template<class T>
double Selector< T >::getPasses ( std::string const &  s) const
inline

Return the number of passing cases.

Definition at line 267 of file Selector.h.

Referenced by Selector< edm::Ptr< reco::Photon > >::getPasses().

267  {
268  return getPasses( index_type(&bits_,s) );
269  }
pat::strbitset::index_type index_type
Definition: Selector.h:27
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
double getPasses(std::string const &s) const
Return the number of passing cases.
Definition: Selector.h:267
template<class T>
double Selector< T >::getPasses ( index_type const &  i) const
inline

Definition at line 270 of file Selector.h.

270  {
271  cut_flow_map::const_iterator found = cutFlow_.end();
272  for ( cut_flow_map::const_iterator cutsBegin = cutFlow_.begin(),
273  cutsEnd = cutFlow_.end(), icut = cutsBegin;
274  icut != cutsEnd && found == cutsEnd; ++icut ) {
275  if ( icut->first == i ) {
276  found = icut;
277  }
278  }
279  return found->second;
280  }
cut_flow_map cutFlow_
map of cut flows in "human" order
Definition: Selector.h:288
template<class T>
bool Selector< T >::ignoreCut ( std::string const &  s) const
inline

ignore the cut at index "s"

Definition at line 157 of file Selector.h.

Referenced by Selector< edm::Ptr< reco::Photon > >::getBitTemplate(), and Selector< edm::Ptr< reco::Photon > >::setIgnored().

157  {
158  return bits_[s] == false;
159  }
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
template<class T>
bool Selector< T >::ignoreCut ( index_type const &  i) const
inline

Definition at line 160 of file Selector.h.

160  {
161  return bits_[i] == false;
162  }
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
template<class T>
virtual bool Selector< T >::operator() ( T const &  t,
pat::strbitset ret 
)
pure virtual

This provides the interface for base classes to select objects.

Referenced by Selector< edm::Ptr< reco::Photon > >::operator()(), and Selector< edm::Ptr< reco::Photon > >::push_back().

template<class T>
virtual bool Selector< T >::operator() ( T const &  t)
inlinevirtual

This provides an alternative signature without the second ret.

Reimplemented in VersionedSelector< T >, VersionedSelector< edm::Ptr< pat::Electron > >, VersionedSelector< edm::Ptr< reco::Muon > >, VersionedSelector< edm::Ptr< pat::Photon > >, VersionedSelector< edm::Ptr< reco::GsfElectron > >, and VersionedSelector< edm::Ptr< reco::Photon > >.

Definition at line 77 of file Selector.h.

78  {
79  retInternal_.set(false);
82  return (bool)retInternal_;
83  }
virtual bool operator()(T const &t, pat::strbitset &ret)=0
This provides the interface for base classes to select objects.
void setIgnored(pat::strbitset &ret)
set ignored bits
Definition: Selector.h:222
pat::strbitset retInternal_
internal ret if users don&#39;t care about return bits
Definition: Selector.h:285
strbitset & set(bool val=true)
set method of all bits
Definition: strbitset.h:144
template<class T>
virtual bool Selector< T >::operator() ( T const &  t,
edm::EventBase const &  e,
pat::strbitset ret 
)
inlinevirtual

This provides an alternative signature that includes extra information.

Definition at line 87 of file Selector.h.

88  {
89  return operator()(t, ret);
90  }
virtual bool operator()(T const &t, pat::strbitset &ret)=0
This provides the interface for base classes to select objects.
template<class T>
virtual bool Selector< T >::operator() ( T const &  t,
edm::EventBase const &  e 
)
inlinevirtual

This provides an alternative signature that includes extra information.

Reimplemented in VersionedSelector< T >, VersionedSelector< edm::Ptr< pat::Electron > >, VersionedSelector< edm::Ptr< reco::Muon > >, VersionedSelector< edm::Ptr< pat::Photon > >, VersionedSelector< edm::Ptr< reco::GsfElectron > >, and VersionedSelector< edm::Ptr< reco::Photon > >.

Definition at line 93 of file Selector.h.

94  {
95  retInternal_.set(false);
98  return (bool)retInternal_;
99  }
virtual bool operator()(T const &t, pat::strbitset &ret)=0
This provides the interface for base classes to select objects.
void setIgnored(pat::strbitset &ret)
set ignored bits
Definition: Selector.h:222
pat::strbitset retInternal_
internal ret if users don&#39;t care about return bits
Definition: Selector.h:285
strbitset & set(bool val=true)
set method of all bits
Definition: strbitset.h:144
template<class T>
bool Selector< T >::operator[] ( std::string const &  s) const
inline

Access the selector cut at index "s". "true" means to consider the cut. "false" means to ignore the cut.

Definition at line 140 of file Selector.h.

140  {
141  return bits_[s];
142  }
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
template<class T>
bool Selector< T >::operator[] ( index_type const &  i) const
inline

Definition at line 144 of file Selector.h.

144  {
145  return bits_[i];
146  }
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
template<class T>
void Selector< T >::passCut ( pat::strbitset ret,
std::string const &  s 
)
inline

Passing cuts.

Definition at line 174 of file Selector.h.

Referenced by Selector< edm::Ptr< reco::Photon > >::passCut().

174  {
175  passCut( ret, index_type(&bits_,s));
176  }
pat::strbitset::index_type index_type
Definition: Selector.h:27
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
void passCut(pat::strbitset &ret, std::string const &s)
Passing cuts.
Definition: Selector.h:174
template<class T>
void Selector< T >::passCut ( pat::strbitset ret,
index_type const &  i 
)
inline

Definition at line 178 of file Selector.h.

178  {
179  ret[i] = true;
180  cut_flow_map::iterator found = cutFlow_.end();
181  for ( cut_flow_map::iterator cutsBegin = cutFlow_.begin(),
182  cutsEnd = cutFlow_.end(), icut = cutsBegin;
183  icut != cutsEnd && found == cutsEnd; ++icut ) {
184  if ( icut->first == i ) {
185  found = icut;
186  }
187  }
188  ++(found->second);
189  }
cut_flow_map cutFlow_
map of cut flows in "human" order
Definition: Selector.h:288
template<class T>
void Selector< T >::print ( std::ostream &  out) const
inline

Print the cut flow.

Definition at line 231 of file Selector.h.

Referenced by WPlusJetsEventSelector::printSelectors().

231  {
232  for ( cut_flow_map::const_iterator cutsBegin = cutFlow_.begin(),
233  cutsEnd = cutFlow_.end(), icut = cutsBegin;
234  icut != cutsEnd; ++icut ) {
235  char buff[1000];
236  if ( considerCut( icut->first ) ) {
237  sprintf(buff, "%6lu : %20s %10lu",
238  static_cast<unsigned long>(icut - cutsBegin),
239  icut->first.str().c_str(),
240  static_cast<unsigned long>(icut->second) );
241  } else {
242  sprintf(buff, "%6lu : %20s %10s",
243  static_cast<unsigned long>(icut - cutsBegin),
244  icut->first.str().c_str(),
245  "off" );
246  }
247  out << buff << std::endl;
248  }
249  }
bool considerCut(std::string const &s) const
consider the cut at index "s"
Definition: Selector.h:149
cut_flow_map cutFlow_
map of cut flows in "human" order
Definition: Selector.h:288
template<class T>
void Selector< T >::printActiveCuts ( std::ostream &  out) const
inline

Print the cuts being considered.

Definition at line 252 of file Selector.h.

252  {
253  bool already_printed_one = false;
254  for ( cut_flow_map::const_iterator cutsBegin = cutFlow_.begin(),
255  cutsEnd = cutFlow_.end(), icut = cutsBegin;
256  icut != cutsEnd; ++icut ) {
257  if ( considerCut( icut->first ) ) {
258  if( already_printed_one ) out << ", ";
259  out << icut->first;
260  already_printed_one = true;
261  }
262  }
263  out << std::endl;
264  }
bool considerCut(std::string const &s) const
consider the cut at index "s"
Definition: Selector.h:149
cut_flow_map cutFlow_
map of cut flows in "human" order
Definition: Selector.h:288
template<class T>
virtual void Selector< T >::push_back ( std::string const &  s)
inlinevirtual

This is the registration of an individual cut string.

Definition at line 44 of file Selector.h.

44  {
45  bits_.push_back(s);
46  index_type i(&bits_,s);
47  // don't need to check to see if the key is already there,
48  // bits_ does that.
49  cutFlow_.push_back( cut_flow_item(i, 0) );
50  }
pat::strbitset::index_type index_type
Definition: Selector.h:27
std::pair< index_type, size_t > cut_flow_item
Definition: Selector.h:28
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
cut_flow_map cutFlow_
map of cut flows in "human" order
Definition: Selector.h:288
void push_back(std::string s)
Definition: strbitset.h:99
template<class T>
virtual void Selector< T >::push_back ( std::string const &  s,
int  cut 
)
inlinevirtual

This is the registration of an individual cut string, with an int cut value.

Definition at line 54 of file Selector.h.

54  {
55  bits_.push_back(s);
56  index_type i(&bits_,s);
57  intCuts_[i] = cut;
58  // don't need to check to see if the key is already there,
59  // bits_ does that.
60  cutFlow_.push_back( cut_flow_item(i,0) );
61  }
pat::strbitset::index_type index_type
Definition: Selector.h:27
std::pair< index_type, size_t > cut_flow_item
Definition: Selector.h:28
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
cut_flow_map cutFlow_
map of cut flows in "human" order
Definition: Selector.h:288
void push_back(std::string s)
Definition: strbitset.h:99
int_map intCuts_
the int-value cut map
Definition: Selector.h:286
int cut(index_type const &i, int val) const
Access the int cut values at index "s".
Definition: Selector.h:192
template<class T>
virtual void Selector< T >::push_back ( std::string const &  s,
double  cut 
)
inlinevirtual

This is the registration of an individual cut string, with a double cut value.

Definition at line 64 of file Selector.h.

64  {
65  bits_.push_back(s);
66  index_type i(&bits_,s);
67  doubleCuts_[i] = cut;
68  // don't need to check to see if the key is already there,
69  // bits_ does that.
70  cutFlow_.push_back( cut_flow_item(i,0) );
71  }
pat::strbitset::index_type index_type
Definition: Selector.h:27
std::pair< index_type, size_t > cut_flow_item
Definition: Selector.h:28
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
cut_flow_map cutFlow_
map of cut flows in "human" order
Definition: Selector.h:288
double_map doubleCuts_
the double-value cut map
Definition: Selector.h:287
void push_back(std::string s)
Definition: strbitset.h:99
int cut(index_type const &i, int val) const
Access the int cut values at index "s".
Definition: Selector.h:192
template<class T>
void Selector< T >::set ( std::string const &  s,
bool  val = true 
)
inline

Set a given selection cut, on or off.

Definition at line 103 of file Selector.h.

103  {
104  set( index_type(&bits_,s), val);
105  }
pat::strbitset::index_type index_type
Definition: Selector.h:27
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
template<class T>
void Selector< T >::set ( index_type const &  i,
bool  val = true 
)
inline

Definition at line 106 of file Selector.h.

106  {
107  bits_[i] = val;
108  }
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
template<class T>
void Selector< T >::set ( std::string const &  s,
int  cut,
bool  val = true 
)
inline

Set a given selection cut, on or off, and reset int cut value.

Definition at line 111 of file Selector.h.

111  {
112  set( index_type(&bits_,s), cut);
113  }
pat::strbitset::index_type index_type
Definition: Selector.h:27
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
int cut(index_type const &i, int val) const
Access the int cut values at index "s".
Definition: Selector.h:192
template<class T>
void Selector< T >::set ( index_type const &  i,
int  cut,
bool  val = true 
)
inline

Definition at line 114 of file Selector.h.

114  {
115  bits_[i] = val;
116  intCuts_[i] = cut;
117  }
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
int_map intCuts_
the int-value cut map
Definition: Selector.h:286
int cut(index_type const &i, int val) const
Access the int cut values at index "s".
Definition: Selector.h:192
template<class T>
void Selector< T >::set ( std::string const &  s,
double  cut,
bool  val = true 
)
inline

Set a given selection cut, on or off, and reset int cut value.

Definition at line 120 of file Selector.h.

120  {
121  set( index_type(&bits_,s), cut);
122  }
pat::strbitset::index_type index_type
Definition: Selector.h:27
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
int cut(index_type const &i, int val) const
Access the int cut values at index "s".
Definition: Selector.h:192
template<class T>
void Selector< T >::set ( index_type const &  i,
double  cut,
bool  val = true 
)
inline

Definition at line 123 of file Selector.h.

123  {
124  bits_[i] = val;
125  doubleCuts_[i] = cut;
126  }
pat::strbitset bits_
the bitset indexed by strings
Definition: Selector.h:284
double_map doubleCuts_
the double-value cut map
Definition: Selector.h:287
int cut(index_type const &i, int val) const
Access the int cut values at index "s".
Definition: Selector.h:192
template<class T>
void Selector< T >::setIgnored ( pat::strbitset ret)
inline

set ignored bits

Definition at line 222 of file Selector.h.

Referenced by Selector< edm::Ptr< reco::Photon > >::operator()().

222  {
223  for ( cut_flow_map::const_iterator cutsBegin = cutFlow_.begin(),
224  cutsEnd = cutFlow_.end(), icut = cutsBegin;
225  icut != cutsEnd; ++icut ) {
226  if ( ignoreCut(icut->first) ) ret[icut->first] = true;
227  }
228  }
bool ignoreCut(std::string const &s) const
ignore the cut at index "s"
Definition: Selector.h:157
cut_flow_map cutFlow_
map of cut flows in "human" order
Definition: Selector.h:288
template<class T>
void Selector< T >::setIgnoredCuts ( std::vector< std::string > const &  bitsToIgnore)
inline

set the bits to ignore from a vector

Definition at line 165 of file Selector.h.

165  {
166  for ( std::vector<std::string>::const_iterator ignoreBegin = bitsToIgnore.begin(),
167  ignoreEnd = bitsToIgnore.end(), ibit = ignoreBegin;
168  ibit != ignoreEnd; ++ibit ) {
169  set(*ibit, false );
170  }
171  }

Member Data Documentation

template<class T>
pat::strbitset Selector< T >::bits_
protected
template<class T>
cut_flow_map Selector< T >::cutFlow_
protected
template<class T>
double_map Selector< T >::doubleCuts_
protected
template<class T>
int_map Selector< T >::intCuts_
protected
template<class T>
pat::strbitset Selector< T >::retInternal_
protected

internal ret if users don't care about return bits

Definition at line 285 of file Selector.h.

Referenced by Selector< edm::Ptr< reco::Photon > >::operator()(), and Selector< edm::Ptr< reco::Photon > >::Selector().