test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RandomNumberGenerator.h
Go to the documentation of this file.
1 #ifndef FWCore_Utilities_RandomNumberGenerator_h
2 #define FWCore_Utilities_RandomNumberGenerator_h
3 
128 #include <cstdint>
129 #include <iosfwd>
130 #include <vector>
131 
132 class RandomEngineState;
133 
134 namespace CLHEP {
135  class HepRandomEngine;
136 }
137 
138 namespace edm {
139 
140  class Event;
141  class LuminosityBlock;
142  class LuminosityBlockIndex;
143  class StreamID;
144 
146  {
147  public:
148 
150  virtual ~RandomNumberGenerator();
151 
154 
156  virtual CLHEP::HepRandomEngine& getEngine(StreamID const&) = 0;
157 
159  virtual CLHEP::HepRandomEngine& getEngine(LuminosityBlockIndex const&) = 0;
160 
172  virtual std::uint32_t mySeed() const = 0;
173 
174  // The following functions should not be used by general users. They
175  // should only be called by Framework code designed to work with the
176  // service while it is saving the engine states or restoring them.
177  // The first two are called by the EventProcessor at special times.
178  // The next two are called by a dedicated producer module (RandomEngineStateProducer).
179 
180  virtual void preBeginLumi(LuminosityBlock const& lumi) = 0;
181  virtual void postEventRead(Event const& event) = 0;
182 
183  virtual std::vector<RandomEngineState> const& getEventCache(StreamID const&) const = 0;
184  virtual std::vector<RandomEngineState> const& getLumiCache(LuminosityBlockIndex const&) const = 0;
185 
187  virtual void print(std::ostream& os) const = 0;
188 
189  private:
190 
192  RandomNumberGenerator const& operator=(RandomNumberGenerator const&) = delete;
193  };
194 }
195 #endif
virtual void print(std::ostream &os) const =0
For debugging purposes only.
virtual std::vector< RandomEngineState > const & getLumiCache(LuminosityBlockIndex const &) const =0
tuple lumi
Definition: fjr2json.py:35
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
virtual std::uint32_t mySeed() const =0
virtual std::vector< RandomEngineState > const & getEventCache(StreamID const &) const =0
virtual void postEventRead(Event const &event)=0
RandomNumberGenerator const & operator=(RandomNumberGenerator const &)=delete
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
virtual void preBeginLumi(LuminosityBlock const &lumi)=0