SimTracker
TrackHistory
interface
VertexClassifier.h
Go to the documentation of this file.
1
2
#ifndef VertexClassifier_h
3
#define VertexClassifier_h
4
5
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
6
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
7
#include "
FWCore/Utilities/interface/InputTag.h
"
8
9
#include "
DataFormats/BeamSpot/interface/BeamSpot.h
"
10
11
#include "
SimGeneral/HepPDTRecord/interface/ParticleDataTable.h
"
12
13
#include "
SimTracker/TrackHistory/interface/CMSProcessTypes.h
"
14
#include "
SimTracker/TrackHistory/interface/VertexCategories.h
"
15
#include "
SimTracker/TrackHistory/interface/VertexHistory.h
"
16
18
class
VertexClassifier
:
public
VertexCategories
{
19
public
:
21
typedef
VertexCategories
Categories
;
22
24
VertexClassifier
(
edm::ParameterSet
const
&
pset
,
edm::ConsumesCollector
&&);
25
26
virtual
~VertexClassifier
() {}
27
29
virtual
void
newEvent
(
edm::Event
const
&,
edm::EventSetup
const
&);
30
32
VertexClassifier
const
&
evaluate
(
reco::VertexBaseRef
const
&);
33
35
VertexClassifier
const
&
evaluate
(
TrackingVertexRef
const
&);
36
38
VertexClassifier
const
&
evaluate
(
reco::VertexRef
const
&
vertex
) {
return
evaluate
(
reco::VertexBaseRef
(
vertex
)); }
39
41
VertexHistory
const
&
history
()
const
{
return
tracer_
; }
42
43
private
:
44
VertexHistory
tracer_
;
45
46
const
G4toCMSLegacyProcTypeMap
g4toCMSProcMap_
;
47
48
const
edm::InputTag
hepMCLabel_
;
49
50
double
longLivedDecayLength_
;
51
double
vertexClusteringDistance_
;
52
53
edm::Handle<edm::HepMCProduct>
mcInformation_
;
54
55
edm::ESHandle<ParticleDataTable>
particleDataTable_
;
56
58
void
reconstructionInformation
(
reco::TrackBaseRef
const
&);
59
61
void
simulationInformation
();
62
64
void
processesAtGenerator
();
65
67
void
processesAtSimulation
();
68
70
void
vertexInformation
();
71
73
struct
GeneratedPrimaryVertex
{
74
GeneratedPrimaryVertex
(
double
x1
,
double
y1
,
double
z1) :
x
(
x1
),
y
(
y1
),
z
(z1),
ptsq
(0),
nGenTrk
(0) {}
75
76
bool
operator<
(
GeneratedPrimaryVertex
const
&
reference
)
const
{
return
ptsq
<
reference
.ptsq; }
77
78
double
x
,
y
,
z
;
79
double
ptsq
;
80
int
nGenTrk
;
81
82
HepMC::FourVector
ptot
;
83
84
std::vector<int>
finalstateParticles
;
85
std::vector<int>
simTrackIndex
;
86
std::vector<int>
genVertex
;
87
};
88
89
std::vector<GeneratedPrimaryVertex>
genpvs_
;
90
91
// Auxiliary function to get the generated primary vertex
92
bool
isFinalstateParticle
(
const
HepMC::GenParticle
*);
93
bool
isCharged
(
const
HepMC::GenParticle
*);
94
void
genPrimaryVertices
();
95
};
96
97
#endif
G4toCMSLegacyProcTypeMap
Definition:
Utils.h:35
VertexClassifier::longLivedDecayLength_
double longLivedDecayLength_
Definition:
VertexClassifier.h:50
VertexClassifier::GeneratedPrimaryVertex::operator<
bool operator<(GeneratedPrimaryVertex const &reference) const
Definition:
VertexClassifier.h:76
VertexClassifier::~VertexClassifier
virtual ~VertexClassifier()
Definition:
VertexClassifier.h:26
VertexClassifier::evaluate
const VertexClassifier & evaluate(reco::VertexRef const &vertex)
Classify the RecoVertex in categories.
Definition:
VertexClassifier.h:38
VertexCategories
Definition:
VertexCategories.h:8
VertexClassifier::GeneratedPrimaryVertex::z
double z
Definition:
VertexClassifier.h:78
VertexClassifier::VertexClassifier
VertexClassifier(edm::ParameterSet const &pset, edm::ConsumesCollector &&)
Constructor by ParameterSet.
Definition:
VertexClassifier.cc:18
VertexClassifier::GeneratedPrimaryVertex::finalstateParticles
std::vector< int > finalstateParticles
Definition:
VertexClassifier.h:84
VertexClassifier::processesAtGenerator
void processesAtGenerator()
Get all the information related to decay process.
Definition:
VertexClassifier.cc:111
edm::Handle< edm::HepMCProduct >
edm::Ref< TrackingVertexCollection >
VertexHistory.h
VertexClassifier::processesAtSimulation
void processesAtSimulation()
Get information about conversion and other interactions.
Definition:
VertexClassifier.cc:159
testProducerWithPsetDescEmpty_cfi.x1
x1
Definition:
testProducerWithPsetDescEmpty_cfi.py:33
testProducerWithPsetDescEmpty_cfi.y1
y1
Definition:
testProducerWithPsetDescEmpty_cfi.py:29
VertexClassifier::mcInformation_
edm::Handle< edm::HepMCProduct > mcInformation_
Definition:
VertexClassifier.h:53
VertexClassifier::GeneratedPrimaryVertex::ptot
HepMC::FourVector ptot
Definition:
VertexClassifier.h:82
BeamSpot.h
VertexClassifier::vertexClusteringDistance_
double vertexClusteringDistance_
Definition:
VertexClassifier.h:51
edm::ESHandle< ParticleDataTable >
VertexClassifier::newEvent
virtual void newEvent(edm::Event const &, edm::EventSetup const &)
Pre-process event information (for accessing reconstraction information)
Definition:
VertexClassifier.cc:33
VertexClassifier::simulationInformation
void simulationInformation()
Get all the information related to the simulation details.
Definition:
VertexClassifier.cc:104
VertexClassifier::GeneratedPrimaryVertex::GeneratedPrimaryVertex
GeneratedPrimaryVertex(double x1, double y1, double z1)
Definition:
VertexClassifier.h:74
VertexClassifier
Get track history and classify it in function of their .
Definition:
VertexClassifier.h:18
VertexClassifier::GeneratedPrimaryVertex
Auxiliary class holding simulated primary vertices.
Definition:
VertexClassifier.h:73
CMSProcessTypes.h
VertexClassifier::GeneratedPrimaryVertex::ptsq
double ptsq
Definition:
VertexClassifier.h:79
bphysicsOniaDQM_cfi.vertex
vertex
Definition:
bphysicsOniaDQM_cfi.py:7
edm::ParameterSet
Definition:
ParameterSet.h:47
VertexClassifier::vertexInformation
void vertexInformation()
Get geometrical information about the vertices.
Definition:
VertexClassifier.cc:256
ParticleDataTable.h
VertexClassifier::GeneratedPrimaryVertex::y
double y
Definition:
VertexClassifier.h:78
VertexHistory
This class traces the simulated and generated history of a given track.
Definition:
VertexHistory.h:18
VertexClassifier::Categories
VertexCategories Categories
Type to the associate category.
Definition:
VertexClassifier.h:21
VertexClassifier::tracer_
VertexHistory tracer_
Definition:
VertexClassifier.h:44
VertexCategories.h
RecoTauValidation_cfi.reference
reference
Definition:
RecoTauValidation_cfi.py:234
VertexClassifier::GeneratedPrimaryVertex::genVertex
std::vector< int > genVertex
Definition:
VertexClassifier.h:86
VertexClassifier::GeneratedPrimaryVertex::nGenTrk
int nGenTrk
Definition:
VertexClassifier.h:80
VertexClassifier::GeneratedPrimaryVertex::x
double x
Definition:
VertexClassifier.h:78
edm::EventSetup
Definition:
EventSetup.h:58
VertexClassifier::genPrimaryVertices
void genPrimaryVertices()
Definition:
VertexClassifier.cc:381
InputTag.h
VertexClassifier::genpvs_
std::vector< GeneratedPrimaryVertex > genpvs_
Definition:
VertexClassifier.h:89
VertexClassifier::hepMCLabel_
const edm::InputTag hepMCLabel_
Definition:
VertexClassifier.h:48
GenParticle.GenParticle
GenParticle
Definition:
GenParticle.py:18
VertexClassifier::GeneratedPrimaryVertex::simTrackIndex
std::vector< int > simTrackIndex
Definition:
VertexClassifier.h:85
VertexClassifier::isCharged
bool isCharged(const HepMC::GenParticle *)
Definition:
VertexClassifier.cc:371
VertexClassifier::evaluate
const VertexClassifier & evaluate(reco::VertexBaseRef const &)
Classify the RecoVertex in categories.
Definition:
VertexClassifier.cc:47
edm::RefToBase< reco::Vertex >
VertexClassifier::history
const VertexHistory & history() const
Returns a reference to the vertex history used in the classification.
Definition:
VertexClassifier.h:41
VertexClassifier::reconstructionInformation
void reconstructionInformation(reco::TrackBaseRef const &)
Get reconstruction information.
ConsumesCollector.h
ParameterSet.h
edm::Event
Definition:
Event.h:73
VertexClassifier::isFinalstateParticle
bool isFinalstateParticle(const HepMC::GenParticle *)
Definition:
VertexClassifier.cc:367
VertexClassifier::particleDataTable_
edm::ESHandle< ParticleDataTable > particleDataTable_
Definition:
VertexClassifier.h:55
VertexClassifier::g4toCMSProcMap_
const G4toCMSLegacyProcTypeMap g4toCMSProcMap_
Definition:
VertexClassifier.h:46
edm::InputTag
Definition:
InputTag.h:15
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
Generated for CMSSW Reference Manual by
1.8.16