CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
BetaCalculatorTK Class Reference

#include <BetaCalculatorTK.h>

Public Member Functions

void addInfoToCandidate (susybsm::HSCParticle &candidate, edm::Event &iEvent, const edm::EventSetup &iSetup)
 
 BetaCalculatorTK (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
 

Public Attributes

edm::EDGetTokenT< reco::DeDxDataValueMapm_dedxDiscriminator1Token
 
edm::EDGetTokenT< reco::DeDxDataValueMapm_dedxDiscriminator2Token
 
edm::EDGetTokenT< reco::DeDxDataValueMapm_dedxDiscriminator3Token
 
edm::EDGetTokenT< reco::DeDxDataValueMapm_dedxDiscriminator4Token
 
edm::EDGetTokenT< reco::DeDxDataValueMapm_dedxDiscriminator5Token
 
edm::EDGetTokenT< reco::DeDxDataValueMapm_dedxDiscriminator6Token
 
edm::EDGetTokenT< reco::DeDxDataValueMapm_dedxEstimator1Token
 
edm::EDGetTokenT< reco::DeDxDataValueMapm_dedxEstimator2Token
 
edm::EDGetTokenT< reco::DeDxDataValueMapm_dedxEstimator3Token
 
edm::EDGetTokenT< reco::DeDxDataValueMapm_dedxEstimator4Token
 
edm::EDGetTokenT< reco::DeDxDataValueMapm_dedxEstimator5Token
 
edm::EDGetTokenT< reco::DeDxDataValueMapm_dedxEstimator6Token
 

Detailed Description

Definition at line 21 of file BetaCalculatorTK.h.

Constructor & Destructor Documentation

BetaCalculatorTK::BetaCalculatorTK ( const edm::ParameterSet iConfig,
edm::ConsumesCollector &&  iC 
)

Definition at line 7 of file BetaCalculatorTK.cc.

7  {
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 }

Member Function Documentation

void BetaCalculatorTK::addInfoToCandidate ( susybsm::HSCParticle candidate,
edm::Event iEvent,
const edm::EventSetup iSetup 
)

Definition at line 24 of file BetaCalculatorTK.cc.

24  {
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 }

Member Data Documentation

edm::EDGetTokenT<reco::DeDxDataValueMap> BetaCalculatorTK::m_dedxDiscriminator1Token

Definition at line 32 of file BetaCalculatorTK.h.

edm::EDGetTokenT<reco::DeDxDataValueMap> BetaCalculatorTK::m_dedxDiscriminator2Token

Definition at line 33 of file BetaCalculatorTK.h.

edm::EDGetTokenT<reco::DeDxDataValueMap> BetaCalculatorTK::m_dedxDiscriminator3Token

Definition at line 34 of file BetaCalculatorTK.h.

edm::EDGetTokenT<reco::DeDxDataValueMap> BetaCalculatorTK::m_dedxDiscriminator4Token

Definition at line 35 of file BetaCalculatorTK.h.

edm::EDGetTokenT<reco::DeDxDataValueMap> BetaCalculatorTK::m_dedxDiscriminator5Token

Definition at line 36 of file BetaCalculatorTK.h.

edm::EDGetTokenT<reco::DeDxDataValueMap> BetaCalculatorTK::m_dedxDiscriminator6Token

Definition at line 37 of file BetaCalculatorTK.h.

edm::EDGetTokenT<reco::DeDxDataValueMap> BetaCalculatorTK::m_dedxEstimator1Token

Definition at line 26 of file BetaCalculatorTK.h.

edm::EDGetTokenT<reco::DeDxDataValueMap> BetaCalculatorTK::m_dedxEstimator2Token

Definition at line 27 of file BetaCalculatorTK.h.

edm::EDGetTokenT<reco::DeDxDataValueMap> BetaCalculatorTK::m_dedxEstimator3Token

Definition at line 28 of file BetaCalculatorTK.h.

edm::EDGetTokenT<reco::DeDxDataValueMap> BetaCalculatorTK::m_dedxEstimator4Token

Definition at line 29 of file BetaCalculatorTK.h.

edm::EDGetTokenT<reco::DeDxDataValueMap> BetaCalculatorTK::m_dedxEstimator5Token

Definition at line 30 of file BetaCalculatorTK.h.

edm::EDGetTokenT<reco::DeDxDataValueMap> BetaCalculatorTK::m_dedxEstimator6Token

Definition at line 31 of file BetaCalculatorTK.h.