Public Member Functions | Public Attributes | List of all members
cmf::SelectionUtility::DetBeamSels Struct Reference

associates each detector-beam pair to a set of selections More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-02/CovarianceMatrixFit/utilities/SelectionUtility.h"

Public Member Functions

 DetBeamSels ()
 
 DetBeamSels (cmf::DetType_t const &d, cmf::BeamType_t const &b, std::set< cmf::SelectionType_t > const &s=std::set< cmf::SelectionType_t >())
 
std::set< cmf::SelectionType_t > const & Selections () const
 
cmf::DetType_t const & Detector () const
 
cmf::BeamType_t const & BeamType () const
 
std::set< long > Keys () const
 
bool operator== (DetBeamSels const &rhs) const
 
bool operator< (DetBeamSels const &rhs) const
 

Public Attributes

cmf::DetType_t det
 
cmf::BeamType_t beam
 
std::set< cmf::SelectionType_tsels
 

Detailed Description

associates each detector-beam pair to a set of selections

Definition at line 32 of file SelectionUtility.h.

Constructor & Destructor Documentation

cmf::SelectionUtility::DetBeamSels::DetBeamSels ( )
inline
cmf::SelectionUtility::DetBeamSels::DetBeamSels ( cmf::DetType_t const &  d,
cmf::BeamType_t const &  b,
std::set< cmf::SelectionType_t > const &  s = std::set<cmf::SelectionType_t>() 
)
inline

Definition at line 44 of file SelectionUtility.h.

47  : det(d)
48  , beam(b)
49  , sels(s)
50  {}
std::set< cmf::SelectionType_t > sels
const XML_Char * s
Definition: expat.h:262
Float_t d
Definition: plot.C:236
const hit & b
Definition: hits.cxx:21

Member Function Documentation

cmf::BeamType_t const& cmf::SelectionUtility::DetBeamSels::BeamType ( ) const
inline

Definition at line 54 of file SelectionUtility.h.

References beam, Keys(), operator<(), and operator==().

54 { return beam; }
cmf::DetType_t const& cmf::SelectionUtility::DetBeamSels::Detector ( ) const
inline

Definition at line 53 of file SelectionUtility.h.

References det.

53 { return det; }
std::set< long > cmf::SelectionUtility::DetBeamSels::Keys ( ) const
inline

Definition at line 187 of file SelectionUtility.h.

References beam, det, cmf::DetectorBeamSelectionTypesToKey(), caf_analysis::keys, and sels.

Referenced by BeamType().

188  {
189  std::set<long> keys;
190  for(auto const& itr : sels)
192  beam,
193  itr));
194 
195  return keys;
196  }
keys
Reco plots.
Definition: caf_analysis.py:46
static long DetectorBeamSelectionTypesToKey(cmf::DetType_t const &det, cmf::BeamType_t const &bt, cmf::SelectionType_t const &sel)
Definition: StaticFuncs.h:62
std::set< cmf::SelectionType_t > sels
bool cmf::SelectionUtility::DetBeamSels::operator< ( DetBeamSels const &  rhs) const
inline

Definition at line 206 of file SelectionUtility.h.

References beam, and det.

Referenced by BeamType().

207  {
208  if(this->beam < rhs.beam) return true;
209  else if(this->beam == rhs.beam){
210  if(this->det < rhs.det) return true;
211  }
212  return false;
213  }
bool cmf::SelectionUtility::DetBeamSels::operator== ( DetBeamSels const &  rhs) const
inline

Definition at line 199 of file SelectionUtility.h.

References beam, and det.

Referenced by BeamType().

200  {
201  return (rhs.det == this->det &&
202  rhs.beam == this->beam);
203  }
std::set<cmf::SelectionType_t> const& cmf::SelectionUtility::DetBeamSels::Selections ( ) const
inline

Definition at line 52 of file SelectionUtility.h.

References sels.

52 { return sels; }
std::set< cmf::SelectionType_t > sels

Member Data Documentation

cmf::BeamType_t cmf::SelectionUtility::DetBeamSels::beam

Definition at line 35 of file SelectionUtility.h.

Referenced by BeamType(), Keys(), operator<(), and operator==().

cmf::DetType_t cmf::SelectionUtility::DetBeamSels::det

Definition at line 34 of file SelectionUtility.h.

Referenced by Detector(), Keys(), operator<(), and operator==().

std::set<cmf::SelectionType_t> cmf::SelectionUtility::DetBeamSels::sels

The documentation for this struct was generated from the following file: