18 #include "TLorentzVector.h"
28 qualityCuts_(iConfig.getParameter<
ParameterSet>(
"qualityCuts")){
29 flightPathSig = iConfig.
getParameter<
double>(
"flightPathSig");
34 booleanOutput = iConfig.
getParameter<
bool>(
"BooleanOutput");
43 double threeProngFlightPathSig(
const PFTauRef&);
65 primaryVertex = *(vertexCollection.
begin());
70 transientTrackBuilder = builder.
product();
76 if(booleanOutput)
return ( threeProngFlightPathSig(tau) > flightPathSig ? 1. : 0. );
77 return threeProngFlightPathSig(tau);
82 double flightPathSignificance = 0;
86 vector<TransientTrack> transientTracks;
88 for(iTrack = pfSignalCandidates.
begin(); iTrack!= pfSignalCandidates.
end(); iTrack++){
92 transientTracks.push_back(transientTrack);
95 if(transientTracks.size() > 1){
104 flightPathSignificance = vertexSignificance(primaryVertex,secVer,tauDir);
107 return flightPathSignificance;
T getParameter(std::string const &) const
double vertexSignificance(reco::Vertex &, reco::Vertex &, GlobalVector &)
virtual CachingVertex< 5 > vertex(const std::vector< reco::TransientTrack > &tracks) const
PFRecoTauDiscriminationByFlightPathSignificance(const ParameterSet &iConfig)
const_iterator end() const
Termination of iteration.
double discriminate(const reco::PFTauRef &)
const_iterator begin() const
Initialize an iterator over the RefVector.
reco::TrackRef trackRef() const
double threeProngFlightPathSig(const PFTauRef &)
PFTauQualityCutWrapper qualityCuts_
bool isNonnull() const
Checks for non-null.
const TransientTrackBuilder * transientTrackBuilder
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
static Measurement1D computeDist3d(const reco::Vertex &pv, const reco::Vertex &sv, const GlobalVector &direction, bool withPVError)
reco::Vertex primaryVertex
DEFINE_FWK_MODULE(CosmicTrackingParticleSelector)
double significance() const
T const * product() const
Particle reconstructed by the particle flow algorithm.
const_iterator begin() const
void beginEvent(const edm::Event &, const edm::EventSetup &)
~PFRecoTauDiscriminationByFlightPathSignificance()