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 
25  constexpr bool isEndTransition(Transition iValue) {
26  return iValue == Transition::EndLuminosityBlock or iValue == Transition::EndRun;
27  }
28 
29 } // namespace edm
30 #endif
edm::isEndTransition
constexpr bool isEndTransition(Transition iValue)
Definition: Transition.h:25
BranchType.h
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::Transition::Event
edm::InRun
Definition: BranchType.h:11
edm::BranchType
BranchType
Definition: BranchType.h:11
edm::Transition::NumberOfTransitions
edm::InEvent
Definition: BranchType.h:11
edm::Transition::BeginLuminosityBlock
edm::convertToBranchType
constexpr BranchType convertToBranchType(Transition iValue)
Definition: Transition.h:15
edm::Transition
Transition
Definition: Transition.h:12
edm::InLumi
Definition: BranchType.h:11
edm::convertToTransition
constexpr Transition convertToTransition(BranchType iValue)
Definition: Transition.h:20
type
type
Definition: HCALResponse.h:21
edm::Transition::EndLuminosityBlock
edm::Transition::BeginRun
or
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
edm::Transition::EndRun