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 49 of file GEDPhotonProducer.h.

Member Enumeration Documentation

◆ FlagBits

Enumerator
kOOT 
kFinal 

Definition at line 51 of file GEDPhotonProducer.h.

51 { kOOT = 0x1, kFinal = 0x2 };

Constructor & Destructor Documentation

◆ RecoStepInfo()

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

Definition at line 50 of file GEDPhotonProducer.cc.

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 }

References Exception, flags_, kFinal, and kOOT.

Member Function Documentation

◆ isFinal()

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

Definition at line 55 of file GEDPhotonProducer.h.

55 { return flags_ & kFinal; }

References flags_, and kFinal.

Referenced by GEDPhotonProducer::beginRun(), GEDPhotonProducer::GEDPhotonProducer(), and GEDPhotonProducer::produce().

◆ isOOT()

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

Definition at line 54 of file GEDPhotonProducer.h.

54 { return flags_ & kOOT; }

References flags_, and kOOT.

Referenced by GEDPhotonProducer::fillPhotonCollection(), and GEDPhotonProducer::produce().

Member Data Documentation

◆ flags_

unsigned int GEDPhotonProducer::RecoStepInfo::flags_
private

Definition at line 58 of file GEDPhotonProducer.h.

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

step
step
Definition: StallMonitor.cc:94
GEDPhotonProducer::RecoStepInfo::flags_
unsigned int flags_
Definition: GEDPhotonProducer.h:58
GEDPhotonProducer::RecoStepInfo::kOOT
Definition: GEDPhotonProducer.h:51
GEDPhotonProducer::RecoStepInfo::kFinal
Definition: GEDPhotonProducer.h:51
Exception
Definition: hltDiff.cc:246