CMS 3D CMS Logo

BPhysicsSpectrum.h
Go to the documentation of this file.
1 #ifndef BPhysicsSpectrum_H
2 #define BPhysicsSpectrum_H
3 
4 /*class BPhysicsSpectrum
5  *
6  * Class to fill Event Generator dqm monitor elements; works on HepMCProduct
7  *
8  *
9  */
10 #include <iostream>
11 #include "TMath.h"
12 // framework & common header files
13 
17 
22 
23 //DQM services
27 
31 
33 
35 public:
36  explicit BPhysicsSpectrum(const edm::ParameterSet &);
37  ~BPhysicsSpectrum() override;
38 
39  void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override;
40  void dqmBeginRun(const edm::Run &r, const edm::EventSetup &c) override;
41  void analyze(edm::Event const &, edm::EventSetup const &) override;
42 
43 private:
48  double mass_min, mass_max;
49  std::vector<int> Particles;
50 };
51 
52 #endif
MonitorElement * Nobj
MonitorElement * mass
void dqmBeginRun(const edm::Run &r, const edm::EventSetup &c) override
void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< reco::GenParticleCollection > genparticleCollectionToken_
BPhysicsSpectrum(const edm::ParameterSet &)
edm::InputTag genparticleCollection_
~BPhysicsSpectrum() override
std::vector< int > Particles
void analyze(edm::Event const &, edm::EventSetup const &) override
Definition: Run.h:45