Skip to content

Commit

Permalink
remove unused collections
Browse files Browse the repository at this point in the history
  • Loading branch information
VinInn committed Jul 16, 2014
1 parent 7478433 commit 65baa00
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Validation/RecoTrack/plugins/MultiTrackValidator.cc
Expand Up @@ -176,11 +176,10 @@ void MultiTrackValidator::analyze(const edm::Event& event, const edm::EventSetup

edm::Handle<TrackingParticleCollection> TPCollectionHeff ;
event.getByToken(label_tp_effic,TPCollectionHeff);
const TrackingParticleCollection tPCeff = *(TPCollectionHeff.product());
TrackingParticleCollection const & tPCeff = *(TPCollectionHeff.product());

edm::Handle<TrackingParticleCollection> TPCollectionHfake ;
event.getByToken(label_tp_fake,TPCollectionHfake);
const TrackingParticleCollection tPCfake = *(TPCollectionHfake.product());

if(parametersDefiner=="CosmicParametersDefinerForTP") {
edm::Handle<SimHitTPAssociationProducer::SimHitTPAssociationList> simHitsTPAssoc;
Expand All @@ -190,14 +189,10 @@ void MultiTrackValidator::analyze(const edm::Event& event, const edm::EventSetup
cosmictpSelector.initEvent(simHitsTPAssoc);
}

//if (tPCeff.size()==0) {edm::LogInfo("TrackValidator")
//<< "TP Collection for efficiency studies has size = 0! Skipping Event." ; return;}
//if (tPCfake.size()==0) {edm::LogInfo("TrackValidator")
//<< "TP Collection for fake rate studies has size = 0! Skipping Event." ; return;}

edm::Handle<reco::BeamSpot> recoBeamSpotHandle;
event.getByToken(bsSrc,recoBeamSpotHandle);
reco::BeamSpot bs = *recoBeamSpotHandle;
reco::BeamSpot const & bs = *recoBeamSpotHandle;

edm::Handle< vector<PileupSummaryInfo> > puinfoH;
event.getByToken(label_pileupinfo,puinfoH);
Expand All @@ -210,9 +205,11 @@ void MultiTrackValidator::analyze(const edm::Event& event, const edm::EventSetup
}
}

/*
edm::Handle<TrackingVertexCollection> tvH;
event.getByToken(label_tv,tvH);
TrackingVertexCollection tv = *tvH;
TrackingVertexCollection const & tv = *tvH;
*/

//calculate dR for TPs
std::vector<double> dR_tPCeff;
Expand Down

0 comments on commit 65baa00

Please sign in to comment.