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 61 of file GEDPhotonProducer.cc.

Member Enumeration Documentation

◆ FlagBits

Enumerator
kOOT 
kFinal 

Definition at line 63 of file GEDPhotonProducer.cc.

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

Constructor & Destructor Documentation

◆ RecoStepInfo()

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

Definition at line 185 of file GEDPhotonProducer.cc.

185  : flags_(0) {
186  if (step == "final")
187  flags_ = kFinal;
188  else if (step == "oot")
189  flags_ = kOOT;
190  else if (step == "ootfinal")
191  flags_ = (kOOT | kFinal);
192  else if (step == "tmp")
193  flags_ = 0;
194  else {
195  throw cms::Exception("InvalidConfig")
196  << " reconstructStep " << step << " is invalid, the options are: tmp, final,oot or ootfinal" << std::endl;
197  }
198 }

References Exception, flags_, kFinal, and kOOT.

Member Function Documentation

◆ isFinal()

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

Definition at line 67 of file GEDPhotonProducer.cc.

67 { return flags_ & kFinal; }

References flags_, and kFinal.

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

◆ isOOT()

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

Definition at line 66 of file GEDPhotonProducer.cc.

66 { 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 70 of file GEDPhotonProducer.cc.

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

step
step
Definition: StallMonitor.cc:94
GEDPhotonProducer::RecoStepInfo::flags_
unsigned int flags_
Definition: GEDPhotonProducer.cc:70
GEDPhotonProducer::RecoStepInfo::kOOT
Definition: GEDPhotonProducer.cc:63
GEDPhotonProducer::RecoStepInfo::kFinal
Definition: GEDPhotonProducer.cc:63
Exception
Definition: hltDiff.cc:245