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_
 
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecordmagneticFieldToken_
 
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),
101  edm::ParameterSet qcuts_pset = pset.getParameterSet("qualityCuts").getParameterSet("signalQualityCuts");
102  qcuts_ = new RecoTauQualityCuts(qcuts_pset);
103 
104  srcTracks_ = pset.getParameter<edm::InputTag>("srcTracks");
105  Tracks_token = iC.consumes<std::vector<TrackClass> >(srcTracks_);
106  dRcone_ = pset.getParameter<double>("dRcone");
107  dRconeLimitedToJetArea_ = pset.getParameter<bool>("dRconeLimitedToJetArea");
108 
109  dRmergeNeutralHadron_ = pset.getParameter<double>("dRmergeNeutralHadron");
110  dRmergePhoton_ = pset.getParameter<double>("dRmergePhoton");
111 
112  verbosity_ = pset.getParameter<int>("verbosity");
113  }

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 116 of file PFRecoTauChargedHadronFromGenericTrackPlugin.cc.

116  {
117  delete qcuts_;
118  }

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 122 of file PFRecoTauChargedHadronFromGenericTrackPlugin.cc.

122  {
123  vertexAssociator_.setEvent(*this->evt());
124 
126  }

◆ 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 137 of file PFRecoTauChargedHadronFromGenericTrackPlugin.cc.

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

◆ 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 129 of file PFRecoTauChargedHadronFromGenericTrackPlugin.cc.

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

References 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 188 of file PFRecoTauChargedHadronFromGenericTrackPlugin.cc.

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

References HLT_FULL_cff::track.

◆ getTrackPos() [2/3]

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

Definition at line 182 of file PFRecoTauChargedHadronFromGenericTrackPlugin.cc.

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

References HLT_FULL_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 165 of file PFRecoTauChargedHadronFromGenericTrackPlugin.cc.

166  {
167  double trackPtError =
168  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)
169  const reco::Track* track(cand.bestTrack());
170  if (track != nullptr) {
171  trackPtError = track->ptError();
172  } else {
173  if (std::abs(cand.eta()) < 0.9)
174  trackPtError = 0.025;
175  else if (std::abs(cand.eta()) < 1.4)
176  trackPtError = 0.04;
177  }
178  return trackPtError;
179  }

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

◆ getTrackPtError() [2/3]

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

Definition at line 160 of file PFRecoTauChargedHadronFromGenericTrackPlugin.cc.

160  {
161  return track.ptError();
162  }

References HLT_FULL_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 206 of file PFRecoTauChargedHadronFromGenericTrackPlugin.cc.

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

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(), jetUpdater_cfi::sort, mathSSE::sqrt(), HLT_FULL_cff::track, tracks, and extraflags_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 154 of file PFRecoTauChargedHadronFromGenericTrackPlugin.cc.

155  {
156  chargedHadron.lostTrackCandidate_ = track;
157  }

References HPSPFTauProducerPuppi_cfi::chargedHadron, and HLT_FULL_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

◆ magneticFieldToken_

◆ 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
RawParticle
Definition: RawParticle.h:37
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin::filterTrack
bool filterTrack(const edm::Handle< std::vector< TrackClass > > &, size_t iTrack) const
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11724
BaseParticlePropagator::propagateToEcalEntrance
bool propagateToEcalEntrance(bool first=true)
Definition: BaseParticlePropagator.cc:450
reco::tau::RecoTauNamedPlugin::name
const std::string & name() const
Definition: RecoTauPluginsCommon.cc:10
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:72
min
T min(T a, T b)
Definition: MathUtil.h:58
edm::LogPrint
Log< level::Warning, true > LogPrint
Definition: MessageLogger.h:130
reco::tau::atECALEntrance
math::XYZPointF atECALEntrance(const reco::Candidate *part, double bField)
Definition: RecoTauCommonUtilities.cc:109
reco::Candidate::Charge
int Charge
electric charge type
Definition: Candidate.h:34
XYZTLorentzVector
math::XYZTLorentzVector XYZTLorentzVector
Definition: RawParticle.h:25
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin::getTrackPtError
double getTrackPtError(const TrackClass &track) const
edm::ConsumesCollector::esConsumes
auto esConsumes()
Definition: ConsumesCollector.h:97
edm::Handle
Definition: AssociativeIterator.h:50
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin::getTrackPos
XYZTLorentzVector getTrackPos(const TrackClass &track) const
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
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
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
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
reco::tau::RecoTauQualityCuts::setPV
void setPV(const reco::VertexRef &vtx)
Update the primary vertex.
Definition: RecoTauQualityCuts.h:47
L1TObjectsTimingClient_cff.resolution
resolution
Definition: L1TObjectsTimingClient_cff.py:52
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:55
edm::Event::getByToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:539
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:75
reco::tau::RecoTauQualityCuts::filterChargedCand
bool filterChargedCand(const reco::Candidate &cand) const
or a single charged candidate
Definition: RecoTauQualityCuts.cc:237
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:47
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
tracks
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
Definition: CAHitNtupletGeneratorKernelsImpl.h:176
pat::PackedCandidate
Definition: PackedCandidate.h:22
jetUpdater_cfi.sort
sort
Definition: jetUpdater_cfi.py:29
edm::Ref::isNonnull
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:238
cand
Definition: decayParser.h:32
reco::tau::PFRecoTauChargedHadronBuilderPlugin::PFRecoTauChargedHadronBuilderPlugin
PFRecoTauChargedHadronBuilderPlugin(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
Definition: PFRecoTauChargedHadronPlugins.h:42
M_PI
#define M_PI
Definition: BXVectorInputProducer.cc:49
EgammaValidation_cff.pdgId
pdgId
Definition: EgammaValidation_cff.py:117
reco::tau::RecoTauQualityCuts::filterTrack
bool filterTrack(const reco::TrackBaseRef &track) const
Filter a single Track.
Definition: RecoTauQualityCuts.cc:182
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin::srcTracks_
edm::InputTag srcTracks_
Definition: PFRecoTauChargedHadronFromGenericTrackPlugin.cc:74
reco::tau::RecoTauVertexAssociator::setEvent
void setEvent(const edm::Event &evt)
Load the vertices from the event.
Definition: RecoTauVertexAssociator.cc:242
edm::Ptr
Definition: AssociationVector.h:31
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
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
extraflags_cff.vtx
vtx
Definition: extraflags_cff.py:19
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin::vertexAssociator_
RecoTauVertexAssociator vertexAssociator_
Definition: PFRecoTauChargedHadronFromGenericTrackPlugin.cc:70
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
reco::tau::PFRecoTauChargedHadronFromGenericTrackPlugin::magneticFieldToken_
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldToken_
Definition: PFRecoTauChargedHadronFromGenericTrackPlugin.cc:76
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:72
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