Skip to content

Commit

Permalink
recovering recent changes made by other people
Browse files Browse the repository at this point in the history
  • Loading branch information
Cesare committed Dec 27, 2013
1 parent ec16e4d commit 30bcfec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions Validation/RecoMuon/plugins/MuonTrackValidator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -339,17 +339,17 @@ void MuonTrackValidator::analyze(const edm::Event& event, const edm::EventSetup&
momentumTP = tp->momentum();
vertexTP = tp->vertex();
//Calcualte the impact parameters w.r.t. PCA
TrackingParticle::Vector momentum = parametersDefinerTP->momentum(event,setup,*tp);
TrackingParticle::Point vertex = parametersDefinerTP->vertex(event,setup,*tp);
TrackingParticle::Vector momentum = parametersDefinerTP->momentum(event,setup,tpr);
TrackingParticle::Point vertex = parametersDefinerTP->vertex(event,setup,tpr);
dxySim = (-vertex.x()*sin(momentum.phi())+vertex.y()*cos(momentum.phi()));
dzSim = vertex.z() - (vertex.x()*momentum.x()+vertex.y()*momentum.y())/sqrt(momentum.perp2()) * momentum.z()/sqrt(momentum.perp2());
}
//If the TrackingParticle is comics, get the momentum and vertex at PCA
if(parametersDefiner=="CosmicParametersDefinerForTP")
{
if(! cosmictpSelector(*tp,&bs,event,setup)) continue;
momentumTP = parametersDefinerTP->momentum(event,setup,*tp);
vertexTP = parametersDefinerTP->vertex(event,setup,*tp);
if(! cosmictpSelector(tpr,&bs,event,setup)) continue;
momentumTP = parametersDefinerTP->momentum(event,setup,tpr);
vertexTP = parametersDefinerTP->vertex(event,setup,tpr);
dxySim = (-vertexTP.x()*sin(momentumTP.phi())+vertexTP.y()*cos(momentumTP.phi()));
dzSim = vertexTP.z() - (vertexTP.x()*momentumTP.x()+vertexTP.y()*momentumTP.y())/sqrt(momentumTP.perp2()) * momentumTP.z()/sqrt(momentumTP.perp2());
}
Expand Down Expand Up @@ -669,8 +669,8 @@ void MuonTrackValidator::analyze(const edm::Event& event, const edm::EventSetup&
h_charge[w]->Fill( track->charge() );

//Get tracking particle parameters at point of closest approach to the beamline
TrackingParticle::Vector momentumTP = parametersDefinerTP->momentum(event,setup,*(tpr.get()));
TrackingParticle::Point vertexTP = parametersDefinerTP->vertex(event,setup,*(tpr.get()));
TrackingParticle::Vector momentumTP = parametersDefinerTP->momentum(event,setup,tpr) ;
TrackingParticle::Point vertexTP = parametersDefinerTP->vertex(event,setup,tpr);
double ptSim = sqrt(momentumTP.perp2());
double qoverpSim = tpr->charge()/sqrt(momentumTP.x()*momentumTP.x()+momentumTP.y()*momentumTP.y()+momentumTP.z()*momentumTP.z());
double thetaSim = momentumTP.theta();
Expand Down
2 changes: 1 addition & 1 deletion Validation/RecoMuon/plugins/MuonTrackValidatorBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "FWCore/ServiceRegistry/interface/Service.h"

#include "CommonTools/RecoAlgos/interface/RecoTrackSelector.h"
#include "CommonTools/RecoAlgos/interface/TrackingParticleSelector.h"
#include "SimGeneral/TrackingAnalysis/interface/TrackingParticleSelector.h"
#include "CommonTools/RecoAlgos/interface/CosmicTrackingParticleSelector.h"

#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion Validation/RecoMuon/src/RecoMuonValidator.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Utilities/interface/InputTag.h"

#include "CommonTools/RecoAlgos/interface/TrackingParticleSelector.h"
#include "SimGeneral/TrackingAnalysis/interface/TrackingParticleSelector.h"
#include "DataFormats/TrackReco/interface/Track.h"

#include "SimMuon/MCTruth/interface/MuonAssociatorByHits.h"
Expand Down

0 comments on commit 30bcfec

Please sign in to comment.