CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
GEDPhotonProducer::RecoStepInfo Class Reference

Public Types

enum  FlagBits { kOOT = 0x1, kFinal = 0x2 }
 

Public Member Functions

bool isFinal () const
 
bool isOOT () const
 
 RecoStepInfo (const std::string &recoStep)
 

Private Attributes

unsigned int flags_
 

Detailed Description

Definition at line 50 of file GEDPhotonProducer.h.

Member Enumeration Documentation

Enumerator
kOOT 
kFinal 

Definition at line 52 of file GEDPhotonProducer.h.

Constructor & Destructor Documentation

GEDPhotonProducer::RecoStepInfo::RecoStepInfo ( const std::string &  recoStep)
explicit

Definition at line 50 of file GEDPhotonProducer.cc.

References Exception, flags_, kFinal, and kOOT.

50  : flags_(0) {
51  if (step == "final")
52  flags_ = kFinal;
53  else if (step == "oot")
54  flags_ = kOOT;
55  else if (step == "ootfinal")
56  flags_ = (kOOT | kFinal);
57  else if (step == "tmp")
58  flags_ = 0;
59  else {
60  throw cms::Exception("InvalidConfig")
61  << " reconstructStep " << step << " is invalid, the options are: tmp, final,oot or ootfinal" << std::endl;
62  }
63 }
step
Definition: StallMonitor.cc:94

Member Function Documentation

bool GEDPhotonProducer::RecoStepInfo::isFinal ( ) const
inline
bool GEDPhotonProducer::RecoStepInfo::isOOT ( ) const
inline

Member Data Documentation

unsigned int GEDPhotonProducer::RecoStepInfo::flags_
private

Definition at line 59 of file GEDPhotonProducer.h.

Referenced by isFinal(), isOOT(), and RecoStepInfo().