CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MixingModule.h
Go to the documentation of this file.
1 #ifndef MixingModule_h
2 #define MixingModule_h
3 
18 
22 
32 
35 #include <vector>
36 #include <string>
37 
41 
42 namespace edm {
43  class MixingWorkerBase;
44 
45  class MixingModule : public BMixingModule {
46  public:
47  typedef std::vector<DigiAccumulatorMixMod*> Accumulators;
48 
50  explicit MixingModule(const edm::ParameterSet& ps);
51 
53  virtual ~MixingModule();
54 
55  virtual void beginJob() {}
56 
57  virtual void beginRun(Run const& r1, EventSetup const& c) override;
58 
59  virtual void endRun(Run const& r1, EventSetup const& c) override;
60 
61  virtual void beginLuminosityBlock(LuminosityBlock const& l1, EventSetup const& c) override;
62 
63  virtual void endLuminosityBlock(LuminosityBlock const& l1, EventSetup const& c) override;
64 
65  void initializeEvent(Event const& event, EventSetup const& setup);
66 
67  void accumulateEvent(Event const& event, EventSetup const& setup);
68 
70 
71  void finalizeEvent(Event& event, EventSetup const& setup);
72 
73  virtual void reload(const edm::EventSetup &);
74 
75  private:
76  virtual void branchesActivate(const std::string &friendlyName, const std::string &subdet, InputTag &tag, std::string &label);
77  virtual void put(edm::Event &e,const edm::EventSetup& es);
78  virtual void createnewEDProduct();
79  virtual void checkSignal(const edm::Event &e);
80  virtual void addSignals(const edm::Event &e, const edm::EventSetup& es);
81  virtual void doPileUp(edm::Event &e, const edm::EventSetup& es);
82  void pileAllWorkers(EventPrincipal const& ep, int bcr, int id, int& offset,
83  const edm::EventSetup& setup);
84  void createDigiAccumulators( const edm::ParameterSet& mixingPSet ) ;
85 
90 
91  std::vector<MixingWorkerBase *> workers_;
92  std::vector<MixingWorkerBase *> workersObjects_;
93  std::vector<std::string> wantedBranches_;
95 
96  // Digi-producing algorithms
98 
99  };
100 }//edm
101 
102 #endif
void pileAllWorkers(EventPrincipal const &ep, int bcr, int id, int &offset, const edm::EventSetup &setup)
virtual void reload(const edm::EventSetup &)
virtual ~MixingModule()
MixingModule(const edm::ParameterSet &ps)
Definition: MixingModule.cc:30
virtual void beginLuminosityBlock(LuminosityBlock const &l1, EventSetup const &c) override
virtual void createnewEDProduct()
virtual void addSignals(const edm::Event &e, const edm::EventSetup &es)
virtual void beginJob()
Definition: MixingModule.h:55
std::vector< DigiAccumulatorMixMod * > Accumulators
Definition: MixingModule.h:47
virtual void put(edm::Event &e, const edm::EventSetup &es)
virtual void checkSignal(const edm::Event &e)
std::string friendlyName(std::string const &iFullName)
virtual void endLuminosityBlock(LuminosityBlock const &l1, EventSetup const &c) override
std::vector< MixingWorkerBase * > workers_
Definition: MixingModule.h:91
Accumulators digiAccumulators_
Definition: MixingModule.h:97
std::vector< MixingWorkerBase * > workersObjects_
Definition: MixingModule.h:92
virtual void beginRun(Run const &r1, EventSetup const &c) override
unsigned int offset(bool)
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
bool useCurrentProcessOnly_
Definition: MixingModule.h:94
virtual void branchesActivate(const std::string &friendlyName, const std::string &subdet, InputTag &tag, std::string &label)
void finalizeEvent(Event &event, EventSetup const &setup)
std::vector< std::string > wantedBranches_
Definition: MixingModule.h:93
InputTag inputTagPlayback_
Definition: MixingModule.h:86
void accumulateEvent(Event const &event, EventSetup const &setup)
CrossingFramePlaybackInfoExtended * playbackInfo_
Definition: MixingModule.h:89
void initializeEvent(Event const &event, EventSetup const &setup)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
Definition: Run.h:36
virtual void doPileUp(edm::Event &e, const edm::EventSetup &es)
void createDigiAccumulators(const edm::ParameterSet &mixingPSet)
virtual void endRun(Run const &r1, EventSetup const &c) override