CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 

Public Attributes

edm::InputTag m_dedxDiscriminator1Tag
 
edm::InputTag m_dedxDiscriminator2Tag
 
edm::InputTag m_dedxDiscriminator3Tag
 
edm::InputTag m_dedxDiscriminator4Tag
 
edm::InputTag m_dedxDiscriminator5Tag
 
edm::InputTag m_dedxDiscriminator6Tag
 
edm::InputTag m_dedxEstimator1Tag
 
edm::InputTag m_dedxEstimator2Tag
 
edm::InputTag m_dedxEstimator3Tag
 
edm::InputTag m_dedxEstimator4Tag
 
edm::InputTag m_dedxEstimator5Tag
 
edm::InputTag m_dedxEstimator6Tag
 

Detailed Description

Definition at line 22 of file BetaCalculatorTK.h.

Constructor & Destructor Documentation

BetaCalculatorTK::BetaCalculatorTK ( const edm::ParameterSet iConfig)

Definition at line 8 of file BetaCalculatorTK.cc.

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

Member Function Documentation

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

Definition at line 26 of file BetaCalculatorTK.cc.

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 }

Member Data Documentation

edm::InputTag BetaCalculatorTK::m_dedxDiscriminator1Tag

Definition at line 33 of file BetaCalculatorTK.h.

edm::InputTag BetaCalculatorTK::m_dedxDiscriminator2Tag

Definition at line 34 of file BetaCalculatorTK.h.

edm::InputTag BetaCalculatorTK::m_dedxDiscriminator3Tag

Definition at line 35 of file BetaCalculatorTK.h.

edm::InputTag BetaCalculatorTK::m_dedxDiscriminator4Tag

Definition at line 36 of file BetaCalculatorTK.h.

edm::InputTag BetaCalculatorTK::m_dedxDiscriminator5Tag

Definition at line 37 of file BetaCalculatorTK.h.

edm::InputTag BetaCalculatorTK::m_dedxDiscriminator6Tag

Definition at line 38 of file BetaCalculatorTK.h.

edm::InputTag BetaCalculatorTK::m_dedxEstimator1Tag

Definition at line 27 of file BetaCalculatorTK.h.

edm::InputTag BetaCalculatorTK::m_dedxEstimator2Tag

Definition at line 28 of file BetaCalculatorTK.h.

edm::InputTag BetaCalculatorTK::m_dedxEstimator3Tag

Definition at line 29 of file BetaCalculatorTK.h.

edm::InputTag BetaCalculatorTK::m_dedxEstimator4Tag

Definition at line 30 of file BetaCalculatorTK.h.

edm::InputTag BetaCalculatorTK::m_dedxEstimator5Tag

Definition at line 31 of file BetaCalculatorTK.h.

edm::InputTag BetaCalculatorTK::m_dedxEstimator6Tag

Definition at line 32 of file BetaCalculatorTK.h.