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

Member Enumeration Documentation

◆ FlagBits

Enumerator
kOOT 
kFinal 

Definition at line 61 of file GEDPhotonProducer.cc.

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

Constructor & Destructor Documentation

◆ RecoStepInfo()

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

Definition at line 186 of file GEDPhotonProducer.cc.

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

References Exception, flags_, kFinal, and kOOT.

Member Function Documentation

◆ isFinal()

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

Definition at line 65 of file GEDPhotonProducer.cc.

65 { return flags_ & kFinal; }

References flags_, and kFinal.

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

◆ isOOT()

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

Definition at line 64 of file GEDPhotonProducer.cc.

64 { 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 68 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:68
GEDPhotonProducer::RecoStepInfo::kOOT
Definition: GEDPhotonProducer.cc:61
GEDPhotonProducer::RecoStepInfo::kFinal
Definition: GEDPhotonProducer.cc:61
Exception
Definition: hltDiff.cc:245