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 
92 #include <vector>
93 #include <stdint.h>
94 
95 class RandomEngineState;
96 
97 namespace CLHEP {
98  class HepRandomEngine;
99 }
100 
101 namespace edm {
102 
103  class LuminosityBlock;
104  class Event;
105 
107  {
108  public:
109 
111  virtual ~RandomNumberGenerator();
112 
114  virtual CLHEP::HepRandomEngine& getEngine() const = 0;
115 
117  virtual uint32_t mySeed() const = 0;
118 
119  // The following functions should not be used by general users. They
120  // should only be called by Framework code designed to work with the
121  // service while it is saving the engine states or restoring them.
122  // The first two are called by the InputSource base class.
123  // The next two are called by a dedicated producer module (RandomEngineStateProducer).
124 
125  virtual void preBeginLumi(LuminosityBlock const& lumi) = 0;
126  virtual void postEventRead(Event const& event) = 0;
127 
128  virtual std::vector<RandomEngineState> const& getLumiCache() const = 0;
129  virtual std::vector<RandomEngineState> const& getEventCache() const = 0;
130 
132  virtual void print() = 0;
133 
134  private:
135 
136  RandomNumberGenerator(RandomNumberGenerator const&); // stop default
137  RandomNumberGenerator const& operator=(RandomNumberGenerator const&); // stop default
138  };
139 }
140 #endif
virtual std::vector< RandomEngineState > const & getLumiCache() const =0
tuple lumi
Definition: fjr2json.py:35
RandomNumberGenerator const & operator=(RandomNumberGenerator const &)
virtual void postEventRead(Event const &event)=0
virtual CLHEP::HepRandomEngine & getEngine() const =0
Use this to get the random number engine, this is the only function most users should call...
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
virtual std::vector< RandomEngineState > const & getEventCache() const =0
virtual uint32_t mySeed() const =0
Exists for backward compatibility.
virtual void print()=0
For debugging purposes only.