Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
SUSYBSMAnalysis
HSCP
src
BetaCalculatorTK.cc
Go to the documentation of this file.
1
#include "
SUSYBSMAnalysis/HSCP/interface/BetaCalculatorTK.h
"
2
3
using namespace
edm;
4
using namespace
reco
;
5
using namespace
susybsm;
6
7
8
BetaCalculatorTK::BetaCalculatorTK
(
const
edm::ParameterSet
& iConfig){
9
/*
10
m_dedxEstimator1Tag = iConfig.getParameter<edm::InputTag>("dedxEstimator1");
11
m_dedxEstimator2Tag = iConfig.getParameter<edm::InputTag>("dedxEstimator2");
12
m_dedxEstimator3Tag = iConfig.getParameter<edm::InputTag>("dedxEstimator3");
13
m_dedxEstimator4Tag = iConfig.getParameter<edm::InputTag>("dedxEstimator4");
14
m_dedxEstimator5Tag = iConfig.getParameter<edm::InputTag>("dedxEstimator5");
15
m_dedxEstimator6Tag = iConfig.getParameter<edm::InputTag>("dedxEstimator6");
16
m_dedxDiscriminator1Tag = iConfig.getParameter<edm::InputTag>("dedxDiscriminator1");
17
m_dedxDiscriminator2Tag = iConfig.getParameter<edm::InputTag>("dedxDiscriminator2");
18
m_dedxDiscriminator3Tag = iConfig.getParameter<edm::InputTag>("dedxDiscriminator3");
19
m_dedxDiscriminator4Tag = iConfig.getParameter<edm::InputTag>("dedxDiscriminator4");
20
m_dedxDiscriminator5Tag = iConfig.getParameter<edm::InputTag>("dedxDiscriminator5");
21
m_dedxDiscriminator6Tag = iConfig.getParameter<edm::InputTag>("dedxDiscriminator6");
22
*/
23
}
24
25
26
void
BetaCalculatorTK::addInfoToCandidate
(
HSCParticle
& candidate,
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup)
27
{
28
//Do nothing since all dE/dx object are external and get be accessed via reference
29
return
;
30
/*
31
if(!candidate.hasTrackRef())return;
32
33
edm::Handle<DeDxDataValueMap> Estimator1H;
34
iEvent.getByLabel(m_dedxEstimator1Tag,Estimator1H);
35
const ValueMap<DeDxData> Estimator1 = *Estimator1H.product();
36
37
edm::Handle<DeDxDataValueMap> Estimator2H;
38
iEvent.getByLabel(m_dedxEstimator2Tag,Estimator2H);
39
const ValueMap<DeDxData> Estimator2 = *Estimator2H.product();
40
41
edm::Handle<DeDxDataValueMap> Estimator3H;
42
iEvent.getByLabel(m_dedxEstimator3Tag,Estimator3H);
43
const ValueMap<DeDxData> Estimator3 = *Estimator3H.product();
44
45
edm::Handle<DeDxDataValueMap> Estimator4H;
46
iEvent.getByLabel(m_dedxEstimator4Tag,Estimator4H);
47
const ValueMap<DeDxData> Estimator4 = *Estimator4H.product();
48
49
edm::Handle<DeDxDataValueMap> Estimator5H;
50
iEvent.getByLabel(m_dedxEstimator5Tag,Estimator5H);
51
const ValueMap<DeDxData> Estimator5 = *Estimator5H.product();
52
53
edm::Handle<DeDxDataValueMap> Estimator6H;
54
iEvent.getByLabel(m_dedxEstimator6Tag,Estimator6H);
55
const ValueMap<DeDxData> Estimator6 = *Estimator6H.product();
56
57
edm::Handle<DeDxDataValueMap> Discriminator1H;
58
iEvent.getByLabel(m_dedxDiscriminator1Tag,Discriminator1H);
59
const ValueMap<DeDxData> Discriminator1 = *Discriminator1H.product();
60
61
edm::Handle<DeDxDataValueMap> Discriminator2H;
62
iEvent.getByLabel(m_dedxDiscriminator2Tag,Discriminator2H);
63
const ValueMap<DeDxData> Discriminator2 = *Discriminator2H.product();
64
65
edm::Handle<DeDxDataValueMap> Discriminator3H;
66
iEvent.getByLabel(m_dedxDiscriminator3Tag,Discriminator3H);
67
const ValueMap<DeDxData> Discriminator3 = *Discriminator3H.product();
68
69
edm::Handle<DeDxDataValueMap> Discriminator4H;
70
iEvent.getByLabel(m_dedxDiscriminator4Tag,Discriminator4H);
71
const ValueMap<DeDxData> Discriminator4 = *Discriminator4H.product();
72
73
edm::Handle<DeDxDataValueMap> Discriminator5H;
74
iEvent.getByLabel(m_dedxDiscriminator5Tag,Discriminator5H);
75
const ValueMap<DeDxData> Discriminator5 = *Discriminator5H.product();
76
77
edm::Handle<DeDxDataValueMap> Discriminator6H;
78
iEvent.getByLabel(m_dedxDiscriminator6Tag,Discriminator6H);
79
const ValueMap<DeDxData> Discriminator6 = *Discriminator6H.product();
80
81
reco::TrackRef track = candidate.trackRef();
82
candidate.setDedxEstimator1 (Estimator1 [track]);
83
candidate.setDedxEstimator2 (Estimator2 [track]);
84
candidate.setDedxEstimator3 (Estimator3 [track]);
85
candidate.setDedxEstimator4 (Estimator4 [track]);
86
candidate.setDedxEstimator5 (Estimator5 [track]);
87
candidate.setDedxEstimator6 (Estimator6 [track]);
88
candidate.setDedxDiscriminator1(Discriminator1[track]);
89
candidate.setDedxDiscriminator2(Discriminator2[track]);
90
candidate.setDedxDiscriminator3(Discriminator3[track]);
91
candidate.setDedxDiscriminator4(Discriminator4[track]);
92
candidate.setDedxDiscriminator5(Discriminator5[track]);
93
candidate.setDedxDiscriminator6(Discriminator6[track]);
94
*/
95
}
96
BetaCalculatorTK::BetaCalculatorTK
BetaCalculatorTK(const edm::ParameterSet &iConfig)
Definition:
BetaCalculatorTK.cc:8
BetaCalculatorTK.h
susybsm::HSCParticle
Definition:
HSCParticle.h:48
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:105
iEvent
int iEvent
Definition:
GenABIO.cc:243
edm::EventSetup
Definition:
EventSetup.h:44
BetaCalculatorTK::addInfoToCandidate
void addInfoToCandidate(susybsm::HSCParticle &candidate, edm::Event &iEvent, const edm::EventSetup &iSetup)
Definition:
BetaCalculatorTK.cc:26
edm::ParameterSet
Definition:
ParameterSet.h:35
edm::Event
Definition:
Event.h:50
Generated for CMSSW Reference Manual by
1.8.5