CMS 3D CMS Logo

Transition.h
Go to the documentation of this file.
1 #ifndef FWCore_Utilities_Transition_h
2 #define FWCore_Utilities_Transition_h
3 /*----------------------------------------------------------------------
4 
5 Transition: The allowed framework transitions
6 
7 ----------------------------------------------------------------------*/
9 #include <type_traits>
10 
11 namespace edm {
12  enum class Transition {
13  Event,
16  BeginRun,
17  EndRun
18  };
19 
20  //Useful for converting EndBranchType to BranchType
22  constexpr BranchType branches[]={InEvent,InLumi,InLumi,InRun,InRun};
23  return branches[static_cast<std::underlying_type<Transition>::type>(iValue)];
24  }
25 
28  return trans[iValue];
29  }
30 
33  }
34 
35 }
36 #endif
type
Definition: HCALResponse.h:21
constexpr bool isEndTransition(Transition iValue)
Definition: Transition.h:31
#define constexpr
BranchType
Definition: BranchType.h:11
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
Transition
Definition: Transition.h:12
constexpr Transition convertToTransition(BranchType iValue)
Definition: Transition.h:26
HLT enums.
constexpr BranchType convertToBranchType(Transition iValue)
Definition: Transition.h:21