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
edm::Transition::EndProcessBlock
edm::isEndTransition
constexpr bool isEndTransition(Transition iValue)
Definition: Transition.h:37
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::InProcess
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:26
edm::Transition
Transition
Definition: Transition.h:12
edm::InLumi
Definition: BranchType.h:11
gainCalibHelper::gainCalibPI::type
type
Definition: SiPixelGainCalibHelper.h:39
edm::Transition::BeginProcessBlock
edm::Transition::AccessInputProcessBlock
edm::convertToTransition
constexpr Transition convertToTransition(BranchType iValue)
Definition: Transition.h:31
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
edm::Transition::NumberOfEventSetupTransitions