CMS 3D CMS Logo

MicroStateServiceClassic.cc
Go to the documentation of this file.
2 
3 namespace evf {
4 
6  : MicroStateService(iPS, reg),
7  microstate2_(&(reservedMicroStateNames[MicroStateService::mInvalid].moduleLabel())) {
10 
15 
18  microstate1_ = "BJ";
19  }
20 
22 
24  std::scoped_lock sl(lock_);
25  microstate1_ = "BJD";
26  }
27 
29  std::scoped_lock sl(lock_);
30  microstate1_ = "EJ";
31  microstate2_ = &done;
32  }
33 
35  std::scoped_lock sl(lock_);
36  microstate1_ = "PRO";
37  }
38 
40  std::scoped_lock sl(lock_);
42  }
43 
45  std::scoped_lock sl(lock_);
47  }
48 
50  std::scoped_lock sl(lock_);
52  }
53 
55  std::scoped_lock sl(lock_);
56  microstate2_ = &(desc.moduleLabel());
57  }
58 
60  std::scoped_lock sl(lock_);
62  }
63 
65  std::scoped_lock sl(lock_);
66  return microstate1_;
67  }
68 
70  std::scoped_lock sl(lock_);
71  return *microstate2_;
72  }
73 
75  std::scoped_lock sl(lock_);
77  }
78 
79 } //end namespace evf
edm::ActivityRegistry::watchPostModule
void watchPostModule(PostModule::slot_type const &iSlot)
Definition: ActivityRegistry.h:991
edm::StreamID
Definition: StreamID.h:30
edm::ModuleDescription::moduleLabel
std::string const & moduleLabel() const
Definition: ModuleDescription.h:43
evf::MicroStateServiceClassic::fwkovh
const std::string fwkovh
Definition: MicroStateServiceClassic.h:48
evf::MicroStateServiceClassic::postBeginJob
void postBeginJob()
Definition: MicroStateServiceClassic.cc:23
evf::MicroStateServiceClassic::MicroStateServiceClassic
MicroStateServiceClassic(const edm::ParameterSet &, edm::ActivityRegistry &)
Definition: MicroStateServiceClassic.cc:5
evf::MicroStateServiceClassic::getMicroState2
const std::string & getMicroState2() override
Definition: MicroStateServiceClassic.cc:69
edm::ModuleDescription
Definition: ModuleDescription.h:21
evf::MicroStateServiceClassic::preModule
void preModule(const edm::ModuleDescription &)
Definition: MicroStateServiceClassic.cc:54
edm::ActivityRegistry::watchPostSourceEvent
void watchPostSourceEvent(PostSourceEvent::slot_type const &iSlot)
Definition: ActivityRegistry.h:189
evf::MicroStateServiceClassic::done
const std::string done
Definition: MicroStateServiceClassic.h:46
edm::ActivityRegistry::watchPostEndJob
void watchPostEndJob(PostEndJob::slot_type const &iSlot)
Definition: ActivityRegistry.h:169
evf::MicroStateServiceClassic::postSourceEvent
void postSourceEvent(edm::StreamID)
Definition: MicroStateServiceClassic.cc:49
evf::MicroStateServiceClassic::microstate1_
std::string microstate1_
Definition: MicroStateServiceClassic.h:44
evf::MicroStateServiceClassic::postEventProcessing
void postEventProcessing(const edm::Event &, const edm::EventSetup &)
Definition: MicroStateServiceClassic.cc:39
evf::MicroStateServiceClassic::getMicroState1
std::string getMicroState1() override
Definition: MicroStateServiceClassic.cc:64
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
edm::ActivityRegistry
Definition: ActivityRegistry.h:133
evf::MicroStateServiceClassic::preEventProcessing
void preEventProcessing(const edm::EventID &, const edm::Timestamp &)
Definition: MicroStateServiceClassic.cc:34
edm::ActivityRegistry::watchPostBeginJob
void watchPostBeginJob(PostBeginJob::slot_type const &iSlot)
convenience function for attaching to signal
Definition: ActivityRegistry.h:157
evf::MicroStateServiceClassic::preSourceEvent
void preSourceEvent(edm::StreamID)
Definition: MicroStateServiceClassic.cc:44
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
evf::MicroStateServiceClassic::postModule
void postModule(const edm::ModuleDescription &)
Definition: MicroStateServiceClassic.cc:59
edm::ParameterSet
Definition: ParameterSet.h:47
MicroStateServiceClassic.h
evf::MicroStateServiceClassic::lock_
std::mutex lock_
Definition: MicroStateServiceClassic.h:50
evf::MicroStateServiceClassic::setMicroState
void setMicroState(MicroStateService::Microstate m) override
Definition: MicroStateServiceClassic.cc:74
edm::ActivityRegistry::watchPreModule
void watchPreModule(PreModule::slot_type const &iSlot)
Definition: ActivityRegistry.h:984
evf::MicroStateServiceClassic::microstate2_
const std::string * microstate2_
Definition: MicroStateServiceClassic.h:49
evf::MicroStateServiceClassic::input
const std::string input
Definition: MicroStateServiceClassic.h:47
edm::EventSetup
Definition: EventSetup.h:57
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
evf::MicroStateServiceClassic::~MicroStateServiceClassic
~MicroStateServiceClassic() override
Definition: MicroStateServiceClassic.cc:21
evf::MicroStateServiceClassic::postEndJob
void postEndJob()
Definition: MicroStateServiceClassic.cc:28
edm::ActivityRegistry::watchPreSourceEvent
void watchPreSourceEvent(PreSourceEvent::slot_type const &iSlot)
Definition: ActivityRegistry.h:183
evf
Definition: fillJson.h:27
edm::ActivityRegistry::watchPreProcessEvent
void watchPreProcessEvent(PreProcessEvent::slot_type const &iSlot)
Definition: ActivityRegistry.h:509
edm::ActivityRegistry::watchPostProcessEvent
void watchPostProcessEvent(PostProcessEvent::slot_type const &iSlot)
Definition: ActivityRegistry.h:516
evf::MicroStateService::Microstate
Microstate
Definition: MicroStateService.h:21
HerwigMaxPtPartonFilter_cfi.moduleLabel
moduleLabel
Definition: HerwigMaxPtPartonFilter_cfi.py:4
edm::EventID
Definition: EventID.h:31
edm::Event
Definition: Event.h:73
evf::MicroStateService
Definition: MicroStateService.h:19
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
evf::MicroStateService::reservedMicroStateNames
static const edm::ModuleDescription reservedMicroStateNames[mCOUNT]
Definition: MicroStateService.h:35
edm::Timestamp
Definition: Timestamp.h:30