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 {
13 
14  //Useful for converting EndBranchType to BranchType
16  constexpr BranchType branches[] = {InEvent, InLumi, InLumi, InRun, InRun};
17  return branches[static_cast<std::underlying_type<Transition>::type>(iValue)];
18  }
19 
22  return trans[iValue];
23  }
24 
26  return iValue == Transition::EndLuminosityBlock or iValue == Transition::EndRun;
27  }
28 
29 } // namespace edm
30 #endif
type
Definition: HCALResponse.h:21
constexpr bool isEndTransition(Transition iValue)
Definition: Transition.h:25
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:20
HLT enums.
constexpr BranchType convertToBranchType(Transition iValue)
Definition: Transition.h:15
#define constexpr