Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Validation
EventGenerator
interface
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
14
#include "
FWCore/Framework/interface/Event.h
"
15
#include "
FWCore/Framework/interface/EventSetup.h
"
16
#include "
FWCore/Framework/interface/Run.h
"
17
18
#include "
DataFormats/Common/interface/Handle.h
"
19
#include "
FWCore/Framework/interface/ESHandle.h
"
20
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
21
#include "
FWCore/Utilities/interface/InputTag.h
"
22
23
//DQM services
24
#include "
DQMServices/Core/interface/DQMStore.h
"
25
#include "
FWCore/ServiceRegistry/interface/Service.h
"
26
#include "
DQMServices/Core/interface/DQMEDAnalyzer.h
"
27
28
#include "
DataFormats/HepMCCandidate/interface/GenParticle.h
"
29
#include "
DataFormats/HepMCCandidate/interface/GenParticle.h
"
30
#include "
DataFormats/HepMCCandidate/interface/GenParticleFwd.h
"
31
32
#include "
Validation/EventGenerator/interface/DQMHelper.h
"
33
34
class
BPhysicsSpectrum
:
public
DQMEDAnalyzer
{
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
analyze
(
edm::Event
const
&,
edm::EventSetup
const
&)
override
;
41
42
private
:
43
MonitorElement
*
mass
, *
Nobj
;
44
edm::InputTag
genparticleCollection_
;
45
edm::EDGetTokenT<reco::GenParticleCollection>
genparticleCollectionToken_
;
46
std::string
name
;
47
double
mass_min
,
mass_max
;
48
std::vector<int>
Particles
;
49
};
50
51
#endif
dqm::impl::MonitorElement
Definition:
MonitorElement.h:98
Handle.h
mps_fire.i
i
Definition:
mps_fire.py:428
ESHandle.h
edm::Run
Definition:
Run.h:45
edm::EDGetTokenT< reco::GenParticleCollection >
BPhysicsSpectrum
Definition:
BPhysicsSpectrum.h:34
BPhysicsSpectrum::genparticleCollection_
edm::InputTag genparticleCollection_
Definition:
BPhysicsSpectrum.h:44
BPhysicsSpectrum::genparticleCollectionToken_
edm::EDGetTokenT< reco::GenParticleCollection > genparticleCollectionToken_
Definition:
BPhysicsSpectrum.h:45
BPhysicsSpectrum::mass_max
double mass_max
Definition:
BPhysicsSpectrum.h:47
DQMStore.h
BPhysicsSpectrum::BPhysicsSpectrum
BPhysicsSpectrum(const edm::ParameterSet &)
Definition:
BPhysicsSpectrum.cc:13
GenParticle.h
DQMHelper.h
Service.h
GenParticleFwd.h
Run.h
BPhysicsSpectrum::name
std::string name
Definition:
BPhysicsSpectrum.h:46
DQMEDAnalyzer.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
DQMEDAnalyzer
Definition:
DQMEDAnalyzer.py:1
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
BPhysicsSpectrum::analyze
void analyze(edm::Event const &, edm::EventSetup const &) override
Definition:
BPhysicsSpectrum.cc:32
edm::EventSetup
Definition:
EventSetup.h:57
BPhysicsSpectrum::Particles
std::vector< int > Particles
Definition:
BPhysicsSpectrum.h:48
InputTag.h
BPhysicsSpectrum::~BPhysicsSpectrum
~BPhysicsSpectrum() override
Definition:
BPhysicsSpectrum.cc:23
BPhysicsSpectrum::mass
MonitorElement * mass
Definition:
BPhysicsSpectrum.h:43
EventSetup.h
dqm::implementation::IBooker
Definition:
DQMStore.h:43
ParameterSet.h
BPhysicsSpectrum::mass_min
double mass_min
Definition:
BPhysicsSpectrum.h:47
edm::Event
Definition:
Event.h:73
BPhysicsSpectrum::Nobj
MonitorElement * Nobj
Definition:
BPhysicsSpectrum.h:43
edm::InputTag
Definition:
InputTag.h:15
BPhysicsSpectrum::bookHistograms
void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
Definition:
BPhysicsSpectrum.cc:25
Generated for CMSSW Reference Manual by
1.8.16