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 AdjusterBase;
44  class ConsumesCollector;
45  class MixingWorkerBase;
46  class ModuleCallingContext;
47 
48  class MixingModule : public BMixingModule {
49  public:
50  typedef std::vector<DigiAccumulatorMixMod*> Accumulators;
51 
53  explicit MixingModule(const edm::ParameterSet& ps);
54 
56  virtual ~MixingModule();
57 
58  virtual void beginJob() {}
59 
60  virtual void beginRun(Run const& r1, EventSetup const& c) override;
61 
62  virtual void endRun(Run const& r1, EventSetup const& c) override;
63 
64  virtual void beginLuminosityBlock(LuminosityBlock const& l1, EventSetup const& c) override;
65 
66  virtual void endLuminosityBlock(LuminosityBlock const& l1, EventSetup const& c) override;
67 
68  void initializeEvent(Event const& event, EventSetup const& setup);
69 
70  void accumulateEvent(Event const& event, EventSetup const& setup);
71 
73 
74  void finalizeEvent(Event& event, EventSetup const& setup);
75 
76  virtual void reload(const edm::EventSetup &);
77 
78  private:
79  virtual void branchesActivate(const std::string &friendlyName, const std::string &subdet, InputTag &tag, std::string &label);
80  virtual void put(edm::Event &e,const edm::EventSetup& es);
81  virtual void createnewEDProduct();
82  virtual void checkSignal(const edm::Event &e);
83  virtual void addSignals(const edm::Event &e, const edm::EventSetup& es);
84  virtual void doPileUp(edm::Event &e, const edm::EventSetup& es);
85  void pileAllWorkers(EventPrincipal const& ep, ModuleCallingContext const*, int bcr, int id, int& offset,
86  const edm::EventSetup& setup);
88 
93 
94  std::vector<AdjusterBase *> adjusters_;
95  std::vector<AdjusterBase *> adjustersObjects_;
96  std::vector<MixingWorkerBase *> workers_;
97  std::vector<MixingWorkerBase *> workersObjects_;
98  std::vector<std::string> wantedBranches_;
100 
101  // Digi-producing algorithms
103 
104  };
105 }//edm
106 
107 #endif
virtual void reload(const edm::EventSetup &)
virtual ~MixingModule()
MixingModule(const edm::ParameterSet &ps)
Definition: MixingModule.cc:36
virtual void beginLuminosityBlock(LuminosityBlock const &l1, EventSetup const &c) override
virtual void createnewEDProduct()
void createDigiAccumulators(const edm::ParameterSet &mixingPSet, edm::ConsumesCollector &iC)
virtual void addSignals(const edm::Event &e, const edm::EventSetup &es)
virtual void beginJob()
Definition: MixingModule.h:58
std::vector< DigiAccumulatorMixMod * > Accumulators
Definition: MixingModule.h:50
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:96
Accumulators digiAccumulators_
Definition: MixingModule.h:102
std::vector< AdjusterBase * > adjusters_
Definition: MixingModule.h:94
std::vector< MixingWorkerBase * > workersObjects_
Definition: MixingModule.h:97
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:99
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:98
std::vector< AdjusterBase * > adjustersObjects_
Definition: MixingModule.h:95
InputTag inputTagPlayback_
Definition: MixingModule.h:89
void accumulateEvent(Event const &event, EventSetup const &setup)
CrossingFramePlaybackInfoExtended * playbackInfo_
Definition: MixingModule.h:92
void pileAllWorkers(EventPrincipal const &ep, ModuleCallingContext const *, int bcr, int id, int &offset, const edm::EventSetup &setup)
void initializeEvent(Event const &event, EventSetup const &setup)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
Definition: Run.h:41
virtual void doPileUp(edm::Event &e, const edm::EventSetup &es)
virtual void endRun(Run const &r1, EventSetup const &c) override