CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/SUSYBSMAnalysis/HSCP/src/BetaCalculatorTK.cc

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