test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
28 
32 
34 
35 
36 
38  public:
39  explicit BPhysicsSpectrum(const edm::ParameterSet&);
40  virtual ~BPhysicsSpectrum();
41 
42  virtual void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override;
43  virtual void dqmBeginRun(const edm::Run& r, const edm::EventSetup& c) override;
44  virtual void analyze(edm::Event const&, edm::EventSetup const&) override;
45 
46  private:
51  double mass_min, mass_max;
52  std::vector<int> Particles;
53 };
54 
55 #endif
int i
Definition: DBlmapReader.cc:9
MonitorElement * Nobj
MonitorElement * mass
virtual void dqmBeginRun(const edm::Run &r, const edm::EventSetup &c) override
virtual ~BPhysicsSpectrum()
virtual void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< reco::GenParticleCollection > genparticleCollectionToken_
BPhysicsSpectrum(const edm::ParameterSet &)
edm::InputTag genparticleCollection_
std::vector< int > Particles
virtual void analyze(edm::Event const &, edm::EventSetup const &) override
Definition: Run.h:43