CMS 3D CMS Logo

BetaCalculatorTK.cc
Go to the documentation of this file.
2 
3 using namespace edm;
4 using namespace reco;
5 using namespace susybsm;
6 
8  /*
9  m_dedxEstimator1Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxEstimator1"));
10  m_dedxEstimator2Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxEstimator2"));
11  m_dedxEstimator3Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxEstimator3"));
12  m_dedxEstimator4Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxEstimator4"));
13  m_dedxEstimator5Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxEstimator5"));
14  m_dedxEstimator6Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxEstimator6"));
15  m_dedxDiscriminator1Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxDiscriminator1"));
16  m_dedxDiscriminator2Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxDiscriminator2"));
17  m_dedxDiscriminator3Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxDiscriminator3"));
18  m_dedxDiscriminator4Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxDiscriminator4"));
19  m_dedxDiscriminator5Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxDiscriminator5"));
20  m_dedxDiscriminator6Token = consumes<DeDxDataValueMap>(iConfig.getParameter<edm::InputTag>("dedxDiscriminator6"));
21 */
22 }
23 
25  //Do nothing since all dE/dx object are external and get be accessed via reference
26  return;
27  /*
28  if(!candidate.hasTrackRef())return;
29 
30  edm::Handle<DeDxDataValueMap> Estimator1H;
31  iEvent.getByToken(m_dedxEstimator1Token,Estimator1H);
32  const ValueMap<DeDxData> Estimator1 = *Estimator1H.product();
33 
34  edm::Handle<DeDxDataValueMap> Estimator2H;
35  iEvent.getByToken(m_dedxEstimator2Token,Estimator2H);
36  const ValueMap<DeDxData> Estimator2 = *Estimator2H.product();
37 
38  edm::Handle<DeDxDataValueMap> Estimator3H;
39  iEvent.getByToken(m_dedxEstimator3Token,Estimator3H);
40  const ValueMap<DeDxData> Estimator3 = *Estimator3H.product();
41 
42  edm::Handle<DeDxDataValueMap> Estimator4H;
43  iEvent.getByToken(m_dedxEstimator4Token,Estimator4H);
44  const ValueMap<DeDxData> Estimator4 = *Estimator4H.product();
45 
46  edm::Handle<DeDxDataValueMap> Estimator5H;
47  iEvent.getByToken(m_dedxEstimator5Token,Estimator5H);
48  const ValueMap<DeDxData> Estimator5 = *Estimator5H.product();
49 
50  edm::Handle<DeDxDataValueMap> Estimator6H;
51  iEvent.getByToken(m_dedxEstimator6Token,Estimator6H);
52  const ValueMap<DeDxData> Estimator6 = *Estimator6H.product();
53 
54  edm::Handle<DeDxDataValueMap> Discriminator1H;
55  iEvent.getByToken(m_dedxDiscriminator1Token,Discriminator1H);
56  const ValueMap<DeDxData> Discriminator1 = *Discriminator1H.product();
57 
58  edm::Handle<DeDxDataValueMap> Discriminator2H;
59  iEvent.getByToken(m_dedxDiscriminator2Token,Discriminator2H);
60  const ValueMap<DeDxData> Discriminator2 = *Discriminator2H.product();
61 
62  edm::Handle<DeDxDataValueMap> Discriminator3H;
63  iEvent.getByToken(m_dedxDiscriminator3Token,Discriminator3H);
64  const ValueMap<DeDxData> Discriminator3 = *Discriminator3H.product();
65 
66  edm::Handle<DeDxDataValueMap> Discriminator4H;
67  iEvent.getByToken(m_dedxDiscriminator4Token,Discriminator4H);
68  const ValueMap<DeDxData> Discriminator4 = *Discriminator4H.product();
69 
70  edm::Handle<DeDxDataValueMap> Discriminator5H;
71  iEvent.getByToken(m_dedxDiscriminator5Token,Discriminator5H);
72  const ValueMap<DeDxData> Discriminator5 = *Discriminator5H.product();
73 
74  edm::Handle<DeDxDataValueMap> Discriminator6H;
75  iEvent.getByToken(m_dedxDiscriminator6Token,Discriminator6H);
76  const ValueMap<DeDxData> Discriminator6 = *Discriminator6H.product();
77 
78  reco::TrackRef track = candidate.trackRef();
79  candidate.setDedxEstimator1 (Estimator1 [track]);
80  candidate.setDedxEstimator2 (Estimator2 [track]);
81  candidate.setDedxEstimator3 (Estimator3 [track]);
82  candidate.setDedxEstimator4 (Estimator4 [track]);
83  candidate.setDedxEstimator5 (Estimator5 [track]);
84  candidate.setDedxEstimator6 (Estimator6 [track]);
85  candidate.setDedxDiscriminator1(Discriminator1[track]);
86  candidate.setDedxDiscriminator2(Discriminator2[track]);
87  candidate.setDedxDiscriminator3(Discriminator3[track]);
88  candidate.setDedxDiscriminator4(Discriminator4[track]);
89  candidate.setDedxDiscriminator5(Discriminator5[track]);
90  candidate.setDedxDiscriminator6(Discriminator6[track]);
91 */
92 }
susybsm::HSCParticle
Definition: HSCParticle.h:42
BetaCalculatorTK::addInfoToCandidate
void addInfoToCandidate(susybsm::HSCParticle &candidate, edm::Event &iEvent, const edm::EventSetup &iSetup)
Definition: BetaCalculatorTK.cc:24
edm
HLT enums.
Definition: AlignableModifier.h:19
susybsm
Definition: HSCParticle.h:16
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
edm::ParameterSet
Definition: ParameterSet.h:47
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup
Definition: EventSetup.h:57
BetaCalculatorTK.h
BetaCalculatorTK::BetaCalculatorTK
BetaCalculatorTK(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
Definition: BetaCalculatorTK.cc:7
edm::Event
Definition: Event.h:73
edm::ConsumesCollector
Definition: ConsumesCollector.h:45