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,
23  };
24 
25  //Useful for converting EndBranchType to BranchType
27  constexpr BranchType branches[] = {InEvent, InLumi, InLumi, InRun, InRun, InProcess, InProcess};
28  return branches[static_cast<std::underlying_type<Transition>::type>(iValue)];
29  }
30 
32  constexpr Transition trans[] = {
34  return trans[iValue];
35  }
36 
37  constexpr bool isEndTransition(Transition iValue) {
38  return iValue == Transition::EndLuminosityBlock or iValue == Transition::EndRun or
40  }
41 
42 } // namespace edm
43 #endif
constexpr bool isEndTransition(Transition iValue)
Definition: Transition.h:37
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:31
HLT enums.
constexpr BranchType convertToBranchType(Transition iValue)
Definition: Transition.h:26