00001 #include "SUSYBSMAnalysis/HSCP/interface/BetaCalculatorTK.h" 00002 00003 using namespace edm; 00004 using namespace reco; 00005 using namespace susybsm; 00006 00007 00008 BetaCalculatorTK::BetaCalculatorTK(const edm::ParameterSet& iConfig){ 00009 /* 00010 m_dedxEstimator1Tag = iConfig.getParameter<edm::InputTag>("dedxEstimator1"); 00011 m_dedxEstimator2Tag = iConfig.getParameter<edm::InputTag>("dedxEstimator2"); 00012 m_dedxEstimator3Tag = iConfig.getParameter<edm::InputTag>("dedxEstimator3"); 00013 m_dedxEstimator4Tag = iConfig.getParameter<edm::InputTag>("dedxEstimator4"); 00014 m_dedxEstimator5Tag = iConfig.getParameter<edm::InputTag>("dedxEstimator5"); 00015 m_dedxEstimator6Tag = iConfig.getParameter<edm::InputTag>("dedxEstimator6"); 00016 m_dedxDiscriminator1Tag = iConfig.getParameter<edm::InputTag>("dedxDiscriminator1"); 00017 m_dedxDiscriminator2Tag = iConfig.getParameter<edm::InputTag>("dedxDiscriminator2"); 00018 m_dedxDiscriminator3Tag = iConfig.getParameter<edm::InputTag>("dedxDiscriminator3"); 00019 m_dedxDiscriminator4Tag = iConfig.getParameter<edm::InputTag>("dedxDiscriminator4"); 00020 m_dedxDiscriminator5Tag = iConfig.getParameter<edm::InputTag>("dedxDiscriminator5"); 00021 m_dedxDiscriminator6Tag = iConfig.getParameter<edm::InputTag>("dedxDiscriminator6"); 00022 */ 00023 } 00024 00025 00026 void BetaCalculatorTK::addInfoToCandidate(HSCParticle& candidate, edm::Event& iEvent, const edm::EventSetup& iSetup) 00027 { 00028 //Do nothing since all dE/dx object are external and get be accessed via reference 00029 return; 00030 /* 00031 if(!candidate.hasTrackRef())return; 00032 00033 edm::Handle<DeDxDataValueMap> Estimator1H; 00034 iEvent.getByLabel(m_dedxEstimator1Tag,Estimator1H); 00035 const ValueMap<DeDxData> Estimator1 = *Estimator1H.product(); 00036 00037 edm::Handle<DeDxDataValueMap> Estimator2H; 00038 iEvent.getByLabel(m_dedxEstimator2Tag,Estimator2H); 00039 const ValueMap<DeDxData> Estimator2 = *Estimator2H.product(); 00040 00041 edm::Handle<DeDxDataValueMap> Estimator3H; 00042 iEvent.getByLabel(m_dedxEstimator3Tag,Estimator3H); 00043 const ValueMap<DeDxData> Estimator3 = *Estimator3H.product(); 00044 00045 edm::Handle<DeDxDataValueMap> Estimator4H; 00046 iEvent.getByLabel(m_dedxEstimator4Tag,Estimator4H); 00047 const ValueMap<DeDxData> Estimator4 = *Estimator4H.product(); 00048 00049 edm::Handle<DeDxDataValueMap> Estimator5H; 00050 iEvent.getByLabel(m_dedxEstimator5Tag,Estimator5H); 00051 const ValueMap<DeDxData> Estimator5 = *Estimator5H.product(); 00052 00053 edm::Handle<DeDxDataValueMap> Estimator6H; 00054 iEvent.getByLabel(m_dedxEstimator6Tag,Estimator6H); 00055 const ValueMap<DeDxData> Estimator6 = *Estimator6H.product(); 00056 00057 edm::Handle<DeDxDataValueMap> Discriminator1H; 00058 iEvent.getByLabel(m_dedxDiscriminator1Tag,Discriminator1H); 00059 const ValueMap<DeDxData> Discriminator1 = *Discriminator1H.product(); 00060 00061 edm::Handle<DeDxDataValueMap> Discriminator2H; 00062 iEvent.getByLabel(m_dedxDiscriminator2Tag,Discriminator2H); 00063 const ValueMap<DeDxData> Discriminator2 = *Discriminator2H.product(); 00064 00065 edm::Handle<DeDxDataValueMap> Discriminator3H; 00066 iEvent.getByLabel(m_dedxDiscriminator3Tag,Discriminator3H); 00067 const ValueMap<DeDxData> Discriminator3 = *Discriminator3H.product(); 00068 00069 edm::Handle<DeDxDataValueMap> Discriminator4H; 00070 iEvent.getByLabel(m_dedxDiscriminator4Tag,Discriminator4H); 00071 const ValueMap<DeDxData> Discriminator4 = *Discriminator4H.product(); 00072 00073 edm::Handle<DeDxDataValueMap> Discriminator5H; 00074 iEvent.getByLabel(m_dedxDiscriminator5Tag,Discriminator5H); 00075 const ValueMap<DeDxData> Discriminator5 = *Discriminator5H.product(); 00076 00077 edm::Handle<DeDxDataValueMap> Discriminator6H; 00078 iEvent.getByLabel(m_dedxDiscriminator6Tag,Discriminator6H); 00079 const ValueMap<DeDxData> Discriminator6 = *Discriminator6H.product(); 00080 00081 reco::TrackRef track = candidate.trackRef(); 00082 candidate.setDedxEstimator1 (Estimator1 [track]); 00083 candidate.setDedxEstimator2 (Estimator2 [track]); 00084 candidate.setDedxEstimator3 (Estimator3 [track]); 00085 candidate.setDedxEstimator4 (Estimator4 [track]); 00086 candidate.setDedxEstimator5 (Estimator5 [track]); 00087 candidate.setDedxEstimator6 (Estimator6 [track]); 00088 candidate.setDedxDiscriminator1(Discriminator1[track]); 00089 candidate.setDedxDiscriminator2(Discriminator2[track]); 00090 candidate.setDedxDiscriminator3(Discriminator3[track]); 00091 candidate.setDedxDiscriminator4(Discriminator4[track]); 00092 candidate.setDedxDiscriminator5(Discriminator5[track]); 00093 candidate.setDedxDiscriminator6(Discriminator6[track]); 00094 */ 00095 } 00096