Main Page
Namespaces
Classes
Package Documentation
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,
edm::ConsumesCollector
&& iC){
9
/*
10
m_dedxEstimator1Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxEstimator1"));
11
m_dedxEstimator2Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxEstimator2"));
12
m_dedxEstimator3Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxEstimator3"));
13
m_dedxEstimator4Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxEstimator4"));
14
m_dedxEstimator5Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxEstimator5"));
15
m_dedxEstimator6Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxEstimator6"));
16
m_dedxDiscriminator1Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxDiscriminator1"));
17
m_dedxDiscriminator2Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxDiscriminator2"));
18
m_dedxDiscriminator3Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxDiscriminator3"));
19
m_dedxDiscriminator4Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxDiscriminator4"));
20
m_dedxDiscriminator5Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxDiscriminator5"));
21
m_dedxDiscriminator6Token = consumes<DeDxDataValueMap>(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.getByToken(m_dedxEstimator1Token,Estimator1H);
35
const ValueMap<DeDxData> Estimator1 = *Estimator1H.product();
36
37
edm::Handle<DeDxDataValueMap> Estimator2H;
38
iEvent.getByToken(m_dedxEstimator2Token,Estimator2H);
39
const ValueMap<DeDxData> Estimator2 = *Estimator2H.product();
40
41
edm::Handle<DeDxDataValueMap> Estimator3H;
42
iEvent.getByToken(m_dedxEstimator3Token,Estimator3H);
43
const ValueMap<DeDxData> Estimator3 = *Estimator3H.product();
44
45
edm::Handle<DeDxDataValueMap> Estimator4H;
46
iEvent.getByToken(m_dedxEstimator4Token,Estimator4H);
47
const ValueMap<DeDxData> Estimator4 = *Estimator4H.product();
48
49
edm::Handle<DeDxDataValueMap> Estimator5H;
50
iEvent.getByToken(m_dedxEstimator5Token,Estimator5H);
51
const ValueMap<DeDxData> Estimator5 = *Estimator5H.product();
52
53
edm::Handle<DeDxDataValueMap> Estimator6H;
54
iEvent.getByToken(m_dedxEstimator6Token,Estimator6H);
55
const ValueMap<DeDxData> Estimator6 = *Estimator6H.product();
56
57
edm::Handle<DeDxDataValueMap> Discriminator1H;
58
iEvent.getByToken(m_dedxDiscriminator1Token,Discriminator1H);
59
const ValueMap<DeDxData> Discriminator1 = *Discriminator1H.product();
60
61
edm::Handle<DeDxDataValueMap> Discriminator2H;
62
iEvent.getByToken(m_dedxDiscriminator2Token,Discriminator2H);
63
const ValueMap<DeDxData> Discriminator2 = *Discriminator2H.product();
64
65
edm::Handle<DeDxDataValueMap> Discriminator3H;
66
iEvent.getByToken(m_dedxDiscriminator3Token,Discriminator3H);
67
const ValueMap<DeDxData> Discriminator3 = *Discriminator3H.product();
68
69
edm::Handle<DeDxDataValueMap> Discriminator4H;
70
iEvent.getByToken(m_dedxDiscriminator4Token,Discriminator4H);
71
const ValueMap<DeDxData> Discriminator4 = *Discriminator4H.product();
72
73
edm::Handle<DeDxDataValueMap> Discriminator5H;
74
iEvent.getByToken(m_dedxDiscriminator5Token,Discriminator5H);
75
const ValueMap<DeDxData> Discriminator5 = *Discriminator5H.product();
76
77
edm::Handle<DeDxDataValueMap> Discriminator6H;
78
iEvent.getByToken(m_dedxDiscriminator6Token,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.h
susybsm::HSCParticle
Definition:
HSCParticle.h:48
BetaCalculatorTK::BetaCalculatorTK
BetaCalculatorTK(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
Definition:
BetaCalculatorTK.cc:8
susybsm
Definition:
HSCParticle.h:16
iEvent
int iEvent
Definition:
GenABIO.cc:224
edm::EventSetup
Definition:
EventSetup.h:57
BetaCalculatorTK::addInfoToCandidate
void addInfoToCandidate(susybsm::HSCParticle &candidate, edm::Event &iEvent, const edm::EventSetup &iSetup)
Definition:
BetaCalculatorTK.cc:26
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:44
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::Event
Definition:
Event.h:71
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
Generated for CMSSW Reference Manual by
1.8.11