CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass > Class Template Reference

#include <PFRecoTauChargedHadron.h>

Inheritance diagram for reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >:
reco::tau::PFRecoTauChargedHadronBuilderPlugin reco::tau::RecoTauEventHolderPlugin reco::tau::RecoTauNamedPlugin

Public Member Functions

void beginEvent () override
 Hook called at the beginning of the event. More...
 
return_type operator() (const reco::Jet &) const override
 Build a collection of chargedHadrons from objects in the input jet. More...
 
 PFRecoTauChargedHadronFromGenericTrackPlugin (const edm::ParameterSet &, edm::ConsumesCollector &&iC)
 
 ~PFRecoTauChargedHadronFromGenericTrackPlugin () override
 
- Public Member Functions inherited from reco::tau::PFRecoTauChargedHadronBuilderPlugin
 PFRecoTauChargedHadronBuilderPlugin (const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
 
 ~PFRecoTauChargedHadronBuilderPlugin () override
 
- Public Member Functions inherited from reco::tau::RecoTauEventHolderPlugin
edm::Eventevt ()
 
const edm::Eventevt () const
 
const edm::EventSetupevtSetup () const
 
 RecoTauEventHolderPlugin (const edm::ParameterSet &pset)
 
void setup (edm::Event &, const edm::EventSetup &)
 
 ~RecoTauEventHolderPlugin () override
 
- Public Member Functions inherited from reco::tau::RecoTauNamedPlugin
const std::string & name () const
 
 RecoTauNamedPlugin (const edm::ParameterSet &pset)
 
virtual ~RecoTauNamedPlugin ()
 

Private Member Functions

template<>
bool filterTrack (const edm::Handle< std::vector< pat::PackedCandidate > > &tracks, size_t iTrack) const
 
template<>
bool filterTrack (const edm::Handle< std::vector< reco::Track > > &tracks, size_t iTrack) const
 
bool filterTrack (const edm::Handle< std::vector< TrackClass > > &, size_t iTrack) const
 
template<>
XYZTLorentzVector getTrackPos (const pat::PackedCandidate &track) const
 
template<>
XYZTLorentzVector getTrackPos (const reco::Track &track) const
 
XYZTLorentzVector getTrackPos (const TrackClass &track) const
 
template<>
double getTrackPtError (const pat::PackedCandidate &cand) const
 
template<>
double getTrackPtError (const reco::Track &track) const
 
double getTrackPtError (const TrackClass &track) const
 
template<>
void setChargedHadronTrack (PFRecoTauChargedHadron &chargedHadron, const edm::Ptr< pat::PackedCandidate > &track) const
 
template<>
void setChargedHadronTrack (PFRecoTauChargedHadron &chargedHadron, const edm::Ptr< reco::Track > &track) const
 
void setChargedHadronTrack (PFRecoTauChargedHadron &chargedHadron, const edm::Ptr< TrackClass > &track) const
 

Private Attributes

double dRcone_
 
bool dRconeLimitedToJetArea_
 
double dRmergeNeutralHadron_
 
double dRmergePhoton_
 
math::XYZVector magneticFieldStrength_
 
RecoTauQualityCutsqcuts_
 
edm::InputTag srcTracks_
 
edm::EDGetTokenT< std::vector< TrackClass > > Tracks_token
 
int verbosity_
 
RecoTauVertexAssociator vertexAssociator_
 

Static Private Attributes

static constexpr unsigned int maxWarnings_ = 3
 
static std::atomic< unsigned int > numWarnings_ {0}
 

Additional Inherited Members

- Public Types inherited from reco::tau::PFRecoTauChargedHadronBuilderPlugin
typedef boost::ptr_vector< PFRecoTauChargedHadronChargedHadronVector
 
typedef std::unique_ptr< ChargedHadronVectorreturn_type
 

Detailed Description

template<class TrackClass>
class reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >

Definition at line 13 of file PFRecoTauChargedHadron.h.

Constructor & Destructor Documentation

◆ PFRecoTauChargedHadronFromGenericTrackPlugin()

Definition at line 95 of file PFRecoTauChargedHadronFromGenericTrackPlugin.cc.

98  vertexAssociator_(pset.getParameter<edm::ParameterSet>("qualityCuts"), std::move(iC)),
99  qcuts_(nullptr) {
100  edm::ParameterSet qcuts_pset = pset.getParameterSet("qualityCuts").getParameterSet("signalQualityCuts");
101  qcuts_ = new RecoTauQualityCuts(qcuts_pset);
102 
103  srcTracks_ = pset.getParameter<edm::InputTag>("srcTracks");
104  Tracks_token = iC.consumes<std::vector<TrackClass> >(srcTracks_);
105  dRcone_ = pset.getParameter<double>("dRcone");
106  dRconeLimitedToJetArea_ = pset.getParameter<bool>("dRconeLimitedToJetArea");
107 
108  dRmergeNeutralHadron_ = pset.getParameter<double>("dRmergeNeutralHadron");
109  dRmergePhoton_ = pset.getParameter<double>("dRmergePhoton");
110 
111  verbosity_ = pset.getParameter<int>("verbosity");
112  }

References reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::dRcone_, reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::dRconeLimitedToJetArea_, reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::dRmergeNeutralHadron_, reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::dRmergePhoton_, muonDTDigis_cfi::pset, reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::qcuts_, reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::srcTracks_, reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::Tracks_token, and reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::verbosity_.

◆ ~PFRecoTauChargedHadronFromGenericTrackPlugin()

Definition at line 115 of file PFRecoTauChargedHadronFromGenericTrackPlugin.cc.

115  {
116  delete qcuts_;
117  }

Member Function Documentation

◆ beginEvent()

template<class TrackClass >
void reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::beginEvent ( )
overridevirtual

Hook called at the beginning of the event.

Reimplemented from reco::tau::PFRecoTauChargedHadronBuilderPlugin.

Definition at line 121 of file PFRecoTauChargedHadronFromGenericTrackPlugin.cc.

References reco::get(), edm::EventSetup::get(), and HLT_2018_cff::magneticField.

◆ filterTrack() [1/3]

template<>
bool reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< pat::PackedCandidate >::filterTrack ( const edm::Handle< std::vector< pat::PackedCandidate > > &  tracks,
size_t  iTrack 
) const
private

Definition at line 139 of file PFRecoTauChargedHadronFromGenericTrackPlugin.cc.

140  {
141  // ignore tracks which fail quality cuts
142  const pat::PackedCandidate& cand = (*tracks)[iTrack];
143  if (cand.charge() == 0)
144  return false;
145 
146  return qcuts_->filterChargedCand(cand);
147  }

◆ filterTrack() [2/3]

template<>
bool reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< reco::Track >::filterTrack ( const edm::Handle< std::vector< reco::Track > > &  tracks,
size_t  iTrack 
) const
private

Definition at line 131 of file PFRecoTauChargedHadronFromGenericTrackPlugin.cc.

132  {
133  // ignore tracks which fail quality cuts
134  reco::TrackRef trackRef(tracks, iTrack);
135  return qcuts_->filterTrack(trackRef);
136  }

References PDWG_EXOHSCP_cff::tracks.

◆ filterTrack() [3/3]

template<class TrackClass >
bool reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::filterTrack ( const edm::Handle< std::vector< TrackClass > > &  ,
size_t  iTrack 
) const
private

◆ getTrackPos() [1/3]

Definition at line 190 of file PFRecoTauChargedHadronFromGenericTrackPlugin.cc.

191  {
192  return XYZTLorentzVector(track.vertex().x(), track.vertex().y(), track.vertex().z(), 0.);
193  }

References HLT_2018_cff::track.

◆ getTrackPos() [2/3]

template<>
XYZTLorentzVector reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< reco::Track >::getTrackPos ( const reco::Track track) const
private

Definition at line 184 of file PFRecoTauChargedHadronFromGenericTrackPlugin.cc.

185  {
186  return XYZTLorentzVector(track.referencePoint().x(), track.referencePoint().y(), track.referencePoint().z(), 0.);
187  }

References HLT_2018_cff::track.

◆ getTrackPos() [3/3]

template<class TrackClass >
XYZTLorentzVector reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::getTrackPos ( const TrackClass track) const
private

◆ getTrackPtError() [1/3]

template<>
double reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< pat::PackedCandidate >::getTrackPtError ( const pat::PackedCandidate cand) const
private

Definition at line 167 of file PFRecoTauChargedHadronFromGenericTrackPlugin.cc.

168  {
169  double trackPtError =
170  0.06; // MB: Approximate avarage track PtError by 2.5% (barrel), 4% (transition), 6% (endcaps) lostTracks w/o detailed track information available (after TRK-11-001)
171  const reco::Track* track(cand.bestTrack());
172  if (track != nullptr) {
173  trackPtError = track->ptError();
174  } else {
175  if (std::abs(cand.eta()) < 0.9)
176  trackPtError = 0.025;
177  else if (std::abs(cand.eta()) < 1.4)
178  trackPtError = 0.04;
179  }
180  return trackPtError;
181  }

References funct::abs(), and HLT_2018_cff::track.

◆ getTrackPtError() [2/3]

template<>
double reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< reco::Track >::getTrackPtError ( const reco::Track track) const
private

Definition at line 162 of file PFRecoTauChargedHadronFromGenericTrackPlugin.cc.

162  {
163  return track.ptError();
164  }

References HLT_2018_cff::track.

◆ getTrackPtError() [3/3]

template<class TrackClass >
double reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::getTrackPtError ( const TrackClass track) const
private

◆ operator()()

Build a collection of chargedHadrons from objects in the input jet.

Implements reco::tau::PFRecoTauChargedHadronBuilderPlugin.

Definition at line 208 of file PFRecoTauChargedHadronFromGenericTrackPlugin.cc.

208  {
209  if (verbosity_) {
210  edm::LogPrint("TauChHFromTrack") << "<PFRecoTauChargedHadronFromGenericTrackPlugin::operator()>:";
211  edm::LogPrint("TauChHFromTrack") << " pluginName = " << name();
212  }
213 
215 
216  const edm::Event& evt = (*this->evt());
217 
220 
222  float jEta = jet.eta();
223  float jPhi = jet.phi();
224  size_t numTracks = tracks->size();
225  for (size_t iTrack = 0; iTrack < numTracks; ++iTrack) {
226  const TrackClass& track = (*tracks)[iTrack];
227 
228  // consider tracks in vicinity of tau-jet candidate only
229  double dR = deltaR(track.eta(), track.phi(), jEta, jPhi);
230  double dRmatch = dRcone_;
232  double jetArea = jet.jetArea();
233  if (jetArea > 0.) {
234  dRmatch = std::min(dRmatch, sqrt(jetArea / M_PI));
235  } else {
236  if (numWarnings_ < maxWarnings_) {
237  edm::LogInfo("PFRecoTauChargedHadronFromGenericTrackPlugin::operator()")
238  << "Jet: Pt = " << jet.pt() << ", eta = " << jet.eta() << ", phi = " << jet.phi()
239  << " has area = " << jetArea << " !!" << std::endl;
240  ++numWarnings_;
241  }
242  dRmatch = 0.1;
243  }
244  }
245  if (dR > dRmatch)
246  continue;
247 
248  if (!this->filterTrack(tracks, iTrack))
249  continue;
250 
251  reco::Candidate::Charge trackCharge_int = 0;
252  if (track.charge() > 0.)
253  trackCharge_int = +1;
254  else if (track.charge() < 0.)
255  trackCharge_int = -1;
256 
257  const double chargedPionMass = 0.13957; // GeV
258  double chargedPionP = track.p();
259  double chargedPionEn = TMath::Sqrt(chargedPionP * chargedPionP + chargedPionMass * chargedPionMass);
260  reco::Candidate::LorentzVector chargedPionP4(track.px(), track.py(), track.pz(), chargedPionEn);
261 
262  reco::Vertex::Point vtx(0., 0., 0.);
264  vtx = vertexAssociator_.associatedVertex(jet)->position();
265 
266  std::unique_ptr<PFRecoTauChargedHadron> chargedHadron(
267  new PFRecoTauChargedHadron(trackCharge_int, chargedPionP4, vtx, 0, true, PFRecoTauChargedHadron::kTrack));
268 
270 
271  // CV: Take code for propagating track to ECAL entrance
272  // from RecoParticleFlow/PFTracking/src/PFTrackTransformer.cc
273  // to make sure propagation is done in the same way as for charged PFCandidates.
274  //
275  // The following replacements need to be made
276  // outerMomentum -> momentum
277  // outerPosition -> referencePoint
278  // in order to run on AOD input
279  // (outerMomentum and outerPosition require access to reco::TrackExtra objects, which are available in RECO only)
280  //
281  XYZTLorentzVector chargedPionPos(getTrackPos(track));
282  RawParticle p(chargedPionP4, chargedPionPos);
283  p.setCharge(track.charge());
284  BaseParticlePropagator trackPropagator(p, 0., 0., magneticFieldStrength_.z());
285  trackPropagator.propagateToEcalEntrance(false);
286  if (trackPropagator.getSuccess() != 0) {
287  chargedHadron->positionAtECALEntrance_ = trackPropagator.particle().vertex();
288  } else {
289  if (chargedPionP4.pt() > 2. and std::abs(chargedPionP4.eta()) < 3.) {
290  edm::LogWarning("PFRecoTauChargedHadronFromGenericTrackPlugin::operator()")
291  << "Failed to propagate track: Pt = " << track.pt() << ", eta = " << track.eta()
292  << ", phi = " << track.phi() << " to ECAL entrance !!" << std::endl;
293  }
294  chargedHadron->positionAtECALEntrance_ = math::XYZPointF(0., 0., 0.);
295  }
296 
297  std::vector<Candidate_withDistance> neutralJetConstituents_withDistance;
298  for (const auto& jetConstituent : jet.daughterPtrVector()) {
299  int pdgId = jetConstituent->pdgId();
300  if (!(pdgId == 130 || pdgId == 22))
301  continue;
302  double dR = deltaR(atECALEntrance(&*jetConstituent, magneticFieldStrength_.z()),
303  chargedHadron->positionAtECALEntrance_);
304  double dRmerge = -1.;
305  if (pdgId == 130)
306  dRmerge = dRmergeNeutralHadron_;
307  else if (pdgId == 22)
308  dRmerge = dRmergePhoton_;
309  if (dR < dRmerge) {
310  Candidate_withDistance jetConstituent_withDistance;
311  jetConstituent_withDistance.pfCandidate_ = jetConstituent;
312  jetConstituent_withDistance.distance_ = dR;
313  neutralJetConstituents_withDistance.push_back(jetConstituent_withDistance);
314  chargedHadron->addDaughter(jetConstituent);
315  }
316  }
317  std::sort(
318  neutralJetConstituents_withDistance.begin(), neutralJetConstituents_withDistance.end(), isSmallerDistance);
319 
320  const double caloResolutionCoeff =
321  1.0; // CV: approximate ECAL + HCAL calorimeter resolution for hadrons by 100%*sqrt(E)
322  double resolutionTrackP = track.p() * (getTrackPtError(track) / track.pt());
323  double neutralEnSum = 0.;
324  for (std::vector<Candidate_withDistance>::const_iterator nextNeutral =
325  neutralJetConstituents_withDistance.begin();
326  nextNeutral != neutralJetConstituents_withDistance.end();
327  ++nextNeutral) {
328  double nextNeutralEn = nextNeutral->pfCandidate_->energy();
329  double resolutionCaloEn = caloResolutionCoeff * sqrt(neutralEnSum + nextNeutralEn);
330  double resolution = sqrt(resolutionTrackP * resolutionTrackP + resolutionCaloEn * resolutionCaloEn);
331  if ((neutralEnSum + nextNeutralEn) < (track.p() + 2. * resolution)) {
332  chargedHadron->neutralPFCandidates_.push_back(nextNeutral->pfCandidate_);
333  neutralEnSum += nextNeutralEn;
334  } else {
335  break;
336  }
337  }
338 
340 
341  if (verbosity_) {
342  edm::LogPrint("TauChHFromTrack") << *chargedHadron;
343  }
344 
345  output.push_back(std::move(chargedHadron));
346  }
347 
348  return output.release();
349  }

References funct::abs(), reco::tau::atECALEntrance(), HPSPFTauProducerPuppi_cfi::chargedHadron, reco::deltaR(), HGC3DClusterGenMatchSelector_cfi::dR, edm::Event::getByToken(), metsig::jet, reco::PFRecoTauChargedHadron::kTrack, M_PI, min(), eostools::move(), Skims_PA_cff::name, convertSQLitetoXML_cfg::output, AlCaHLTBitMon_ParallelJobs::p, EgammaValidation_cff::pdgId, BaseParticlePropagator::propagateToEcalEntrance(), L1TObjectsTimingClient_cff::resolution, reco::tau::setChargedHadronP4(), mathSSE::sqrt(), HLT_2018_cff::track, PDWG_EXOHSCP_cff::tracks, and badGlobalMuonTaggersAOD_cff::vtx.

◆ setChargedHadronTrack() [1/3]

template<>
void reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< pat::PackedCandidate >::setChargedHadronTrack ( PFRecoTauChargedHadron chargedHadron,
const edm::Ptr< pat::PackedCandidate > &  track 
) const
private

Definition at line 156 of file PFRecoTauChargedHadronFromGenericTrackPlugin.cc.

157  {
158  chargedHadron.lostTrackCandidate_ = track;
159  }

References HPSPFTauProducerPuppi_cfi::chargedHadron, and HLT_2018_cff::track.

◆ setChargedHadronTrack() [2/3]

template<>
void reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< reco::Track >::setChargedHadronTrack ( PFRecoTauChargedHadron chargedHadron,
const edm::Ptr< reco::Track > &  track 
) const
private

◆ setChargedHadronTrack() [3/3]

template<class TrackClass >
void reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::setChargedHadronTrack ( PFRecoTauChargedHadron chargedHadron,
const edm::Ptr< TrackClass > &  track 
) const
private

Member Data Documentation

◆ dRcone_

template<class TrackClass >
double reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::dRcone_
private

◆ dRconeLimitedToJetArea_

template<class TrackClass >
bool reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::dRconeLimitedToJetArea_
private

◆ dRmergeNeutralHadron_

template<class TrackClass >
double reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::dRmergeNeutralHadron_
private

◆ dRmergePhoton_

template<class TrackClass >
double reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::dRmergePhoton_
private

◆ magneticFieldStrength_

template<class TrackClass >
math::XYZVector reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::magneticFieldStrength_
private

◆ maxWarnings_

template<class TrackClass >
constexpr unsigned int reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::maxWarnings_ = 3
staticconstexprprivate

◆ numWarnings_

template<class TrackClass >
std::atomic< unsigned int > reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::numWarnings_ {0}
staticprivate

◆ qcuts_

◆ srcTracks_

template<class TrackClass >
edm::InputTag reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::srcTracks_
private

◆ Tracks_token

template<class TrackClass >
edm::EDGetTokenT<std::vector<TrackClass> > reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::Tracks_token
private

◆ verbosity_

template<class TrackClass >
int reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::verbosity_
private

◆ vertexAssociator_

template<class TrackClass >
RecoTauVertexAssociator reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin< TrackClass >::vertexAssociator_
private
reco::tau::RecoTauEventHolderPlugin::evt
const edm::Event * evt() const
Definition: RecoTauPluginsCommon.cc:16
PDWG_EXOHSCP_cff.tracks
tracks
Definition: PDWG_EXOHSCP_cff.py:28
RawParticle
Definition: RawParticle.h:37
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin::filterTrack
bool filterTrack(const edm::Handle< std::vector< TrackClass > > &, size_t iTrack) const
BaseParticlePropagator::propagateToEcalEntrance
bool propagateToEcalEntrance(bool first=true)
Definition: BaseParticlePropagator.cc:450
reco::tau::RecoTauNamedPlugin::name
const std::string & name() const
Definition: RecoTauPluginsCommon.cc:10
HLT_2018_cff.magneticField
magneticField
Definition: HLT_2018_cff.py:348
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:32
min
T min(T a, T b)
Definition: MathUtil.h:58
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
edm::LogInfo
Definition: MessageLogger.h:254
reco::tau::atECALEntrance
math::XYZPointF atECALEntrance(const reco::Candidate *part, double bField)
Definition: RecoTauCommonUtilities.cc:108
reco::Candidate::Charge
int Charge
electric charge type
Definition: Candidate.h:34
XYZTLorentzVector
math::XYZTLorentzVector XYZTLorentzVector
Definition: RawParticle.h:25
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin::getTrackPtError
double getTrackPtError(const TrackClass &track) const
edm::Handle
Definition: AssociativeIterator.h:50
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin::getTrackPos
XYZTLorentzVector getTrackPos(const TrackClass &track) const
HPSPFTauProducerPuppi_cfi.chargedHadron
chargedHadron
Definition: HPSPFTauProducerPuppi_cfi.py:7
BaseParticlePropagator
Definition: BaseParticlePropagator.h:82
edm::Ref< TrackCollection >
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin::setChargedHadronTrack
void setChargedHadronTrack(PFRecoTauChargedHadron &chargedHadron, const edm::Ptr< TrackClass > &track) const
IdealMagneticFieldRecord
Definition: IdealMagneticFieldRecord.h:11
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin::dRcone_
double dRcone_
Definition: PFRecoTauChargedHadronFromGenericTrackPlugin.cc:77
reco::tau::setChargedHadronP4
void setChargedHadronP4(reco::PFRecoTauChargedHadron &chargedHadron, double scaleFactor_neutralPFCands=1.0)
Definition: pfRecoTauChargedHadronAuxFunctions.cc:31
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin::numWarnings_
static std::atomic< unsigned int > numWarnings_
Definition: PFRecoTauChargedHadronFromGenericTrackPlugin.cc:85
reco::Track
Definition: Track.h:27
edm::ESHandle< MagneticField >
reco::tau::RecoTauQualityCuts::setPV
void setPV(const reco::VertexRef &vtx)
Update the primary vertex.
Definition: RecoTauQualityCuts.h:46
L1TObjectsTimingClient_cff.resolution
resolution
Definition: L1TObjectsTimingClient_cff.py:52
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:49
edm::Event::getByToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:528
GlobalPoint
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
reco::tau::PFRecoTauChargedHadronBuilderPlugin::ChargedHadronVector
boost::ptr_vector< PFRecoTauChargedHadron > ChargedHadronVector
Definition: PFRecoTauChargedHadronPlugins.h:38
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin::Tracks_token
edm::EDGetTokenT< std::vector< TrackClass > > Tracks_token
Definition: PFRecoTauChargedHadronFromGenericTrackPlugin.cc:76
badGlobalMuonTaggersAOD_cff.vtx
vtx
Definition: badGlobalMuonTaggersAOD_cff.py:5
reco::tau::RecoTauQualityCuts::filterChargedCand
bool filterChargedCand(const reco::Candidate &cand) const
or a single charged candidate
Definition: RecoTauQualityCuts.cc:454
edm::LogWarning
Definition: MessageLogger.h:141
TrackClass
TrackClass
Definition: L1MuBMTrackAssParam.h:21
reco::tau::RecoTauVertexAssociator::associatedVertex
reco::VertexRef associatedVertex(const Jet &jet) const
Definition: RecoTauVertexAssociator.cc:378
edm::ParameterSet
Definition: ParameterSet.h:36
pat::PackedCandidate
Definition: PackedCandidate.h:22
edm::Ref::isNonnull
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:238
cand
Definition: decayParser.h:34
reco::tau::PFRecoTauChargedHadronBuilderPlugin::PFRecoTauChargedHadronBuilderPlugin
PFRecoTauChargedHadronBuilderPlugin(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
Definition: PFRecoTauChargedHadronPlugins.h:42
M_PI
#define M_PI
Definition: BXVectorInputProducer.cc:50
edm::LogPrint
Definition: MessageLogger.h:342
EgammaValidation_cff.pdgId
pdgId
Definition: EgammaValidation_cff.py:118
edm::EventSetup
Definition: EventSetup.h:57
reco::tau::RecoTauQualityCuts::filterTrack
bool filterTrack(const reco::TrackBaseRef &track) const
Filter a single Track.
Definition: RecoTauQualityCuts.cc:399
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin::srcTracks_
edm::InputTag srcTracks_
Definition: PFRecoTauChargedHadronFromGenericTrackPlugin.cc:75
reco::tau::RecoTauVertexAssociator::setEvent
void setEvent(const edm::Event &evt)
Load the vertices from the event.
Definition: RecoTauVertexAssociator.cc:242
reco::get
T get(const Candidate &c)
Definition: component.h:60
edm::Ptr
Definition: AssociationVector.h:31
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin::verbosity_
int verbosity_
Definition: PFRecoTauChargedHadronFromGenericTrackPlugin.cc:88
reco::Vertex::Point
math::XYZPoint Point
point in the space
Definition: Vertex.h:40
eostools.move
def move(src, dest)
Definition: eostools.py:511
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin::vertexAssociator_
RecoTauVertexAssociator vertexAssociator_
Definition: PFRecoTauChargedHadronFromGenericTrackPlugin.cc:71
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin::dRmergeNeutralHadron_
double dRmergeNeutralHadron_
Definition: PFRecoTauChargedHadronFromGenericTrackPlugin.cc:80
metsig::jet
Definition: SignAlgoResolutions.h:47
reco::deltaR
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Definition: deltaR.h:30
HLT_2018_cff.track
track
Definition: HLT_2018_cff.py:10352
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
HGC3DClusterGenMatchSelector_cfi.dR
dR
Definition: HGC3DClusterGenMatchSelector_cfi.py:7
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
reco::tau::RecoTauEventHolderPlugin::evtSetup
const edm::EventSetup * evtSetup() const
Definition: RecoTauPluginsCommon.cc:18
math::XYZPointF
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float > > XYZPointF
point in space with cartesian internal representation
Definition: Point3D.h:10
edm::Event
Definition: Event.h:73
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin::maxWarnings_
static constexpr unsigned int maxWarnings_
Definition: PFRecoTauChargedHadronFromGenericTrackPlugin.cc:86
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin::magneticFieldStrength_
math::XYZVector magneticFieldStrength_
Definition: PFRecoTauChargedHadronFromGenericTrackPlugin.cc:83
edm::InputTag
Definition: InputTag.h:15
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin::qcuts_
RecoTauQualityCuts * qcuts_
Definition: PFRecoTauChargedHadronFromGenericTrackPlugin.cc:73
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin::dRmergePhoton_
double dRmergePhoton_
Definition: PFRecoTauChargedHadronFromGenericTrackPlugin.cc:81
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin::dRconeLimitedToJetArea_
bool dRconeLimitedToJetArea_
Definition: PFRecoTauChargedHadronFromGenericTrackPlugin.cc:78
reco::PFRecoTauChargedHadron::kTrack
Definition: PFRecoTauChargedHadron.h:31