CMS 3D CMS Logo

JetPlusTrackProducerAA.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: JetPlusTrack
4 // Class: JetPlusTrack
5 //
13 //
14 // Original Author: Olga Kodolova,40 R-A12,+41227671273,
15 // Created: Fri Feb 19 10:14:02 CET 2010
16 //
17 //
18 
19 // system include files
20 #include <memory>
21 
22 // user include files
25 
28 
30 
43 
44 //=>
59 //=>
60 
61 #include <string>
62 
63 using namespace std;
64 using namespace jpt;
65 
66 //
67 // constants, enums and typedefs
68 //
69 
70 //
71 // static data member definitions
72 //
73 
74 //
75 // constructors and destructor
76 //
78  //register your products
79  src = iConfig.getParameter<edm::InputTag>("src");
80  alias = iConfig.getUntrackedParameter<string>("alias");
81  mTracks = iConfig.getParameter<edm::InputTag>("tracks");
82  srcPVs_ = iConfig.getParameter<edm::InputTag>("srcPVs");
83  vectorial_ = iConfig.getParameter<bool>("VectorialCorrection");
84  useZSP = iConfig.getParameter<bool>("UseZSP");
85  std::string tq = iConfig.getParameter<std::string>("TrackQuality");
86  trackQuality_ = reco::TrackBase::qualityByName(tq);
87  mConeSize = iConfig.getParameter<double>("coneSize");
88  //=>
89  mExtrapolations = iConfig.getParameter<edm::InputTag>("extrapolations");
90  //=>
91  mJPTalgo = new JetPlusTrackCorrector(iConfig, consumesCollector());
92  if (useZSP)
93  mZSPalgo = new ZSPJPTJetCorrector(iConfig);
94 
95  produces<reco::JPTJetCollection>().setBranchAlias(alias);
96 
97  input_jets_token_ = consumes<edm::View<reco::CaloJet> >(src);
98  input_vertex_token_ = consumes<reco::VertexCollection>(srcPVs_);
99  input_tracks_token_ = consumes<reco::TrackCollection>(mTracks);
100  input_extrapolations_token_ = consumes<std::vector<reco::TrackExtrapolation> >(mExtrapolations);
101 }
102 
104  // do anything here that needs to be done at desctruction time
105  // (e.g. close files, deallocate resources etc.)
106 }
107 
108 //
109 // member functions
110 //
111 
112 // ------------ method called to produce the data ------------
114  using namespace edm;
115 
116  // std::cout<<" RecoJets::JetPlusTrackProducerAA::produce "<<std::endl;
117 
118  // get stuff from Event
120  iEvent.getByToken(input_jets_token_, jets_h);
121 
123  iEvent.getByToken(input_tracks_token_, tracks_h);
124 
125  std::vector<reco::TrackRef> fTracks;
126  fTracks.reserve(tracks_h->size());
127  for (unsigned i = 0; i < tracks_h->size(); ++i) {
128  fTracks.push_back(reco::TrackRef(tracks_h, i));
129  }
130 
131  //=>
133  iEvent.getByToken(input_extrapolations_token_, extrapolations_h);
134 
135  // std::cout<<"JetPlusTrackProducerAA::produce, extrapolations_h="<<extrapolations_h->size()<<std::endl;
136  //=>
137 
138  auto pOut = std::make_unique<reco::JPTJetCollection>();
139 
140  reco::JPTJetCollection tmpColl;
141 
142  for (unsigned i = 0; i < jets_h->size(); ++i) {
143  const reco::CaloJet* oldjet = &(*(jets_h->refAt(i)));
144 
145  reco::CaloJet corrected = *oldjet;
146 
147  // ZSP corrections
148 
149  double factorZSP = 1.;
150  if (useZSP)
151  factorZSP = mZSPalgo->correction(corrected, iEvent, iSetup);
152 
153  // std::cout << " UseZSP = "<<useZSP<<std::endl;
154 
155  corrected.scaleEnergy(factorZSP);
156 
157  // JPT corrections
158 
159  double scaleJPT = 1.;
160 
162 
163  // Construct JPTJet constituent
164  jpt::MatchedTracks pions;
167  bool ok = false;
168 
169  if (!vectorial_) {
170  scaleJPT = mJPTalgo->correction(corrected, *oldjet, iEvent, iSetup, pions, muons, elecs, ok);
171  p4 = math::XYZTLorentzVector(corrected.px() * scaleJPT,
172  corrected.py() * scaleJPT,
173  corrected.pz() * scaleJPT,
174  corrected.energy() * scaleJPT);
175  } else {
176  scaleJPT = mJPTalgo->correction(corrected, *oldjet, iEvent, iSetup, p4, pions, muons, elecs, ok);
177  }
178 
180 
181  if (ok) {
182  // std::cout<<" Size of Pion in-in "<<pions.inVertexInCalo_.size()<<" in-out "<<pions.inVertexOutOfCalo_.size()
183  // <<" out-in "<<pions.outOfVertexInCalo_.size()<<" Oldjet "<<oldjet->et()<<" factorZSP "<<factorZSP
184  // <<" "<<corrected.et()<<" scaleJPT "<<scaleJPT<<" after JPT "<<p4.pt()<<std::endl;
185 
186  specific.pionsInVertexInCalo = pions.inVertexInCalo_;
187  specific.pionsInVertexOutCalo = pions.inVertexOutOfCalo_;
188  specific.pionsOutVertexInCalo = pions.outOfVertexInCalo_;
189  specific.muonsInVertexInCalo = muons.inVertexInCalo_;
190  specific.muonsInVertexOutCalo = muons.inVertexOutOfCalo_;
191  specific.muonsOutVertexInCalo = muons.outOfVertexInCalo_;
192  specific.elecsInVertexInCalo = elecs.inVertexInCalo_;
193  specific.elecsInVertexOutCalo = elecs.inVertexOutOfCalo_;
194  specific.elecsOutVertexInCalo = elecs.outOfVertexInCalo_;
195  }
196 
197  // Fill JPT Specific
198  edm::RefToBase<reco::Jet> myjet = (edm::RefToBase<reco::Jet>)jets_h->refAt(i);
199  specific.theCaloJetRef = myjet;
200  specific.mZSPCor = factorZSP;
201  specific.mResponseOfChargedWithEff = (float)mJPTalgo->getResponseOfChargedWithEff();
202  specific.mResponseOfChargedWithoutEff = (float)mJPTalgo->getResponseOfChargedWithoutEff();
203  specific.mSumPtOfChargedWithEff = (float)mJPTalgo->getSumPtWithEff();
204  specific.mSumPtOfChargedWithoutEff = (float)mJPTalgo->getSumPtWithoutEff();
205  specific.mSumEnergyOfChargedWithEff = (float)mJPTalgo->getSumEnergyWithEff();
206  specific.mSumEnergyOfChargedWithoutEff = (float)mJPTalgo->getSumEnergyWithoutEff();
207  specific.mChargedHadronEnergy = (float)mJPTalgo->getSumEnergyWithoutEff();
208  // Fill Charged Jet shape parameters
209  double deR2Tr = 0.;
210  double deEta2Tr = 0.;
211  double dePhi2Tr = 0.;
212  double Zch = 0.;
213  double Pout2 = 0.;
214  double Pout = 0.;
215  double denominator_tracks = 0.;
216  int ntracks = 0;
217 
219  it++) {
220  double deR = deltaR((*it)->eta(), (*it)->phi(), p4.eta(), p4.phi());
221  double deEta = (*it)->eta() - p4.eta();
222  double dePhi = deltaPhi((*it)->phi(), p4.phi());
223  if ((**it).ptError() / (**it).pt() < 0.1) {
224  deR2Tr = deR2Tr + deR * deR * (*it)->pt();
225  deEta2Tr = deEta2Tr + deEta * deEta * (*it)->pt();
226  dePhi2Tr = dePhi2Tr + dePhi * dePhi * (*it)->pt();
227  denominator_tracks = denominator_tracks + (*it)->pt();
228  Zch = Zch + (*it)->pt();
229 
230  Pout2 = Pout2 + (**it).p() * (**it).p() - (Zch * p4.P()) * (Zch * p4.P());
231  ntracks++;
232  }
233  }
234  for (reco::TrackRefVector::const_iterator it = muons.inVertexInCalo_.begin(); it != muons.inVertexInCalo_.end();
235  it++) {
236  double deR = deltaR((*it)->eta(), (*it)->phi(), p4.eta(), p4.phi());
237  double deEta = (*it)->eta() - p4.eta();
238  double dePhi = deltaPhi((*it)->phi(), p4.phi());
239  if ((**it).ptError() / (**it).pt() < 0.1) {
240  deR2Tr = deR2Tr + deR * deR * (*it)->pt();
241  deEta2Tr = deEta2Tr + deEta * deEta * (*it)->pt();
242  dePhi2Tr = dePhi2Tr + dePhi * dePhi * (*it)->pt();
243  denominator_tracks = denominator_tracks + (*it)->pt();
244  Zch = Zch + (*it)->pt();
245 
246  Pout2 = Pout2 + (**it).p() * (**it).p() - (Zch * p4.P()) * (Zch * p4.P());
247  ntracks++;
248  }
249  }
250  for (reco::TrackRefVector::const_iterator it = elecs.inVertexInCalo_.begin(); it != elecs.inVertexInCalo_.end();
251  it++) {
252  double deR = deltaR((*it)->eta(), (*it)->phi(), p4.eta(), p4.phi());
253  double deEta = (*it)->eta() - p4.eta();
254  double dePhi = deltaPhi((*it)->phi(), p4.phi());
255  if ((**it).ptError() / (**it).pt() < 0.1) {
256  deR2Tr = deR2Tr + deR * deR * (*it)->pt();
257  deEta2Tr = deEta2Tr + deEta * deEta * (*it)->pt();
258  dePhi2Tr = dePhi2Tr + dePhi * dePhi * (*it)->pt();
259  denominator_tracks = denominator_tracks + (*it)->pt();
260  Zch = Zch + (*it)->pt();
261 
262  Pout2 = Pout2 + (**it).p() * (**it).p() - (Zch * p4.P()) * (Zch * p4.P());
263  ntracks++;
264  }
265  }
267  it != pions.inVertexOutOfCalo_.end();
268  it++) {
269  Zch = Zch + (*it)->pt();
270  }
271  for (reco::TrackRefVector::const_iterator it = muons.inVertexOutOfCalo_.begin();
272  it != muons.inVertexOutOfCalo_.end();
273  it++) {
274  Zch = Zch + (*it)->pt();
275  }
276  for (reco::TrackRefVector::const_iterator it = elecs.inVertexOutOfCalo_.begin();
277  it != elecs.inVertexOutOfCalo_.end();
278  it++) {
279  Zch = Zch + (*it)->pt();
280  }
281 
282  if (mJPTalgo->getSumPtForBeta() > 0.)
283  Zch = Zch / mJPTalgo->getSumPtForBeta();
284 
285  // std::cout<<" Zch "<< Zch<<" "<<mJPTalgo->getSumPtForBeta()<<std::endl;
286 
287  if (ntracks > 0) {
288  Pout = sqrt(fabs(Pout2)) / ntracks;
289  }
290 
291  if (denominator_tracks != 0) {
292  deR2Tr = deR2Tr / denominator_tracks;
293  deEta2Tr = deEta2Tr / denominator_tracks;
294  dePhi2Tr = dePhi2Tr / denominator_tracks;
295  }
296 
297  specific.R2momtr = deR2Tr;
298  specific.Eta2momtr = deEta2Tr;
299  specific.Phi2momtr = dePhi2Tr;
300  specific.Pout = Pout;
301  specific.Zch = Zch;
302 
303  // Create JPT jet
304 
305  reco::Particle::Point vertex_ = reco::Jet::Point(0, 0, 0);
306 
307  // If we add primary vertex
309  iEvent.getByToken(input_vertex_token_, pvCollection);
310  if (pvCollection.isValid() && !pvCollection->empty())
311  vertex_ = pvCollection->begin()->position();
312 
313  reco::JPTJet fJet(p4, vertex_, specific, corrected.getJetConstituents());
314  // fJet.printJet();
315 
316  // Temporarily collection before correction for background
317 
318  tmpColl.push_back(fJet);
319  }
320 
321  //=======================================================================================================>
322  // Correction for background
323 
324  reco::TrackRefVector trBgOutOfCalo;
325  reco::TrackRefVector trBgOutOfVertex = calculateBGtracksJet(tmpColl, fTracks, extrapolations_h, trBgOutOfCalo);
326 
327  //===> Area without Jets
328  std::map<reco::JPTJetCollection::iterator, double> AreaNonJet;
329 
330  for (reco::JPTJetCollection::iterator ij1 = tmpColl.begin(); ij1 != tmpColl.end(); ij1++) {
331  int nj1 = 1;
332  for (reco::JPTJetCollection::iterator ij2 = tmpColl.begin(); ij2 != tmpColl.end(); ij2++) {
333  if (ij2 == ij1)
334  continue;
335  if (fabs((*ij1).eta() - (*ij2).eta()) > 0.5)
336  continue;
337  nj1++;
338  }
339 
340  AreaNonJet[ij1] = 4 * M_PI * mConeSize - nj1 * 4 * mConeSize * mConeSize;
341 
342  // std::cout<<"+++AreaNonJet[ij1]="<<AreaNonJet[ij1]<<" nj1="<<nj1<<std::endl;
343  }
344 
345  //===>
346 
347  // std::cout<<" The size of BG tracks: trBgOutOfVertex= "<<trBgOutOfVertex.size()
348  // <<" trBgOutOfCalo= "<<trBgOutOfCalo.size()<<std::endl;
349  //
350  // std::cout<<" The size of JPT jet collection "<<tmpColl.size()<<std::endl;
351 
352  for (reco::JPTJetCollection::iterator ij = tmpColl.begin(); ij != tmpColl.end(); ij++) {
353  // Correct JPTjet for background tracks
354 
355  const reco::TrackRefVector pioninin = (*ij).getPionsInVertexInCalo();
356  const reco::TrackRefVector pioninout = (*ij).getPionsInVertexOutCalo();
357 
358  double ja = (AreaNonJet.find(ij))->second;
359 
360  // std::cout<<"+++ ja="<<ja<<" pioninout="<<pioninout.size()<<std::endl;
361 
362  double factorPU = mJPTalgo->correctAA(*ij, trBgOutOfVertex, mConeSize, pioninin, pioninout, ja, trBgOutOfCalo);
363 
364  (*ij).scaleEnergy(factorPU);
365 
366  // std::cout<<" FactorPU "<<factorPU<<std::endl;
367 
368  // Output module
369  pOut->push_back(*ij);
370 
371  // std::cout<<" New JPT energy "<<(*ij).et()<<" "<<(*ij).pt()<<" "<<(*ij).eta()<<" "<<(*ij).phi()<<std::endl;
372  }
373 
374  iEvent.put(std::move(pOut));
375 }
376 // -----------------------------------------------
377 // ------------ calculateBGtracksJet ------------
378 // ------------ Tracks not included in jets ------
379 // -----------------------------------------------
381  reco::JPTJetCollection& fJets,
382  std::vector<reco::TrackRef>& fTracks,
383  edm::Handle<std::vector<reco::TrackExtrapolation> >& extrapolations_h,
384  reco::TrackRefVector& trBgOutOfCalo) {
385  reco::TrackRefVector trBgOutOfVertex;
386 
387  for (unsigned t = 0; t < fTracks.size(); ++t) {
388  int track_bg = 0;
389 
390  // if(!(*fTracks[t]).quality(trackQuality_))
391  // {
392  // cout<<"BG, BAD trackQuality, ptBgV="<<fTracks[t]->pt()<<" etaBgV = "<<fTracks[t]->eta()<<" phiBgV = "<<fTracks[t]->phi()<<endl;
393  // continue;
394  // }
395 
396  const reco::Track* track = &*(fTracks[t]);
397  double trackEta = track->eta();
398  double trackPhi = track->phi();
399 
400  // std::cout<<"++++++++++++++++> track="<<t<<" trackEta="<<trackEta<<" trackPhi="<<trackPhi
401  // <<" coneSize="<<mConeSize<<std::endl;
402 
403  //loop on jets
404  for (unsigned j = 0; j < fJets.size(); ++j) {
405  const reco::Jet* jet = &(fJets[j]);
406  double jetEta = jet->eta();
407  double jetPhi = jet->phi();
408 
409  // std::cout<<"-jet="<<j<<" jetEt ="<<jet->pt()
410  // <<" jetE="<<jet->energy()<<" jetEta="<<jetEta<<" jetPhi="<<jetPhi<<std::endl;
411 
412  if (fabs(jetEta - trackEta) < mConeSize) {
413  double dphiTrackJet = fabs(trackPhi - jetPhi);
414  if (dphiTrackJet > M_PI)
415  dphiTrackJet = 2 * M_PI - dphiTrackJet;
416 
417  if (dphiTrackJet < mConeSize) {
418  track_bg = 1;
419  // std::cout<<"===>>>> Track inside jet at vertex, track_bg="<< track_bg <<" track="<<t<<" jet="<<j
420  // <<" trackEta="<<trackEta<<" trackPhi="<<trackPhi
421  // <<" jetEta="<<jetEta<<" jetPhi="<<jetPhi<<std::endl;
422  }
423  }
424  } //jets
425 
426  if (track_bg == 0) {
427  trBgOutOfVertex.push_back(fTracks[t]);
428 
429  // std::cout<<"------Track outside jet at vertex, track_bg="<< track_bg<<" track="<<t
430  // <<" trackEta="<<trackEta<<" trackPhi="<<trackPhi <<std::endl;
431  }
432 
433  } //tracks
434 
435  //=====> Propagate BG tracks to calo
436  int nValid = 0;
437  for (std::vector<reco::TrackExtrapolation>::const_iterator xtrpBegin = extrapolations_h->begin(),
438  xtrpEnd = extrapolations_h->end(),
439  ixtrp = xtrpBegin;
440  ixtrp != xtrpEnd;
441  ++ixtrp) {
442  // std::cout<<"JetPlusTrackProducerAA::calculateBGtracksJet: initial track pt= "<<ixtrp->track()->pt()
443  // <<" eta= "<<ixtrp->track()->eta()<<" phi="<<ixtrp->track()->phi()
444  // <<" Valid? "<<ixtrp->isValid().at(0)<<std::endl;
445 
446  //if( ixtrp->isValid().at(0) == 0 ) continue;
447  //in DF change in 4.2, all entries are valid.
448  nValid++;
449 
450  reco::TrackRefVector::iterator it = find(trBgOutOfVertex.begin(), trBgOutOfVertex.end(), (*ixtrp).track());
451 
452  if (it != trBgOutOfVertex.end()) {
453  trBgOutOfCalo.push_back(*it);
454 
455  // std::cout<<"+++trBgOutOfCalo, pt= "<<ixtrp->track()->pt()<<" eta= "<<ixtrp->track()->eta()<<" phi="<<ixtrp->track()->phi()
456  // <<" Valid? "<<ixtrp->isValid().at(0)<<std::endl;
457  }
458  }
459 
460  // std::cout<<"calculateBGtracksJet, trBgOutOfCalo="<<trBgOutOfCalo.size()
461  // <<" trBgOutOfVertex="<<trBgOutOfVertex.size()<<" nValid="<<nValid<<endl;
462  //=====>
463 
464  return trBgOutOfVertex;
465 }
466 // ------------ method called once each job just before starting event loop ------------
468 
469 // ------------ method called once each job just after ending the event loop ------------
471 
472 //define this as a plug-in
473 //DEFINE_FWK_MODULE(JetPlusTrackProducerAA);
reco::JPTJet
Jets made from CaloJets corrected for ZSP and tracks.
Definition: JPTJet.h:28
Propagator.h
PDWG_BPHSkim_cff.muons
muons
Definition: PDWG_BPHSkim_cff.py:47
CaloJetCollection.h
reco::CaloJet
Jets made from CaloTowers.
Definition: CaloJet.h:27
TrajectoryStateOnSurface.h
reco::Jet::scaleEnergy
virtual void scaleEnergy(double fScale)
scale energy of the jet
CaloJet.h
mps_fire.i
i
Definition: mps_fire.py:355
reco::Jet
Base class for all types of Jets.
Definition: Jet.h:20
FreeTrajectoryState.h
GlobalTrajectoryParameters.h
Cylinder.h
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
EDProducer.h
reco::LeafCandidate::Point
math::XYZPoint Point
point in the space
Definition: LeafCandidate.h:27
jpt::MatchedTracks::inVertexOutOfCalo_
reco::TrackRefVector inVertexOutOfCalo_
Definition: JetPlusTrackCorrector.h:148
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::RefVector::begin
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:215
Jet.h
JetPlusTrackProducerAA::JetPlusTrackProducerAA
JetPlusTrackProducerAA(const edm::ParameterSet &)
Definition: JetPlusTrackProducerAA.cc:77
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
reco::btau::trackEta
Definition: TaggingVariable.h:42
edm::RefVector< TrackCollection >
jpt::MatchedTracks::inVertexInCalo_
reco::TrackRefVector inVertexInCalo_
Definition: JetPlusTrackCorrector.h:146
reco::JPTJetCollection
std::vector< JPTJet > JPTJetCollection
collection of CaloJet objects
Definition: JPTJetCollection.h:13
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
convertSQLiteXML.ok
bool ok
Definition: convertSQLiteXML.py:98
edm::Handle
Definition: AssociativeIterator.h:50
ZSPJPTJetCorrector
Definition: ZSPJPTJetCorrector.h:21
edm::Ref< TrackCollection >
jpt::MatchedTracks
Particles matched to tracks that are in/in, in/out, out/in at Vertex and CaloFace.
Definition: JetPlusTrackCorrector.h:141
deltaR.h
Plane.h
MakerMacros.h
edm::RefVector::end
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
Track.h
TrackFwd.h
SiPixelRawToDigiRegional_cfi.deltaPhi
deltaPhi
Definition: SiPixelRawToDigiRegional_cfi.py:9
JetPlusTrackProducerAA::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition: JetPlusTrackProducerAA.cc:113
reco::LeafCandidate::py
double py() const final
y coordinate of momentum vector
Definition: LeafCandidate.h:142
timingPdfMaker.specific
specific
Definition: timingPdfMaker.py:78
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
reco::Track
Definition: Track.h:27
reco::Jet::getJetConstituents
virtual Constituents getJetConstituents() const
list of constituents
singleTopDQM_cfi.elecs
elecs
Definition: singleTopDQM_cfi.py:41
jpt
Definition: JetPlusTrackCorrector.h:37
anotherprimaryvertexanalyzer_cfi.pvCollection
pvCollection
Definition: anotherprimaryvertexanalyzer_cfi.py:4
JetTracksAssociationXtrpCalo.h
JetPlusTrackProducerAA::endJob
void endJob() override
Definition: JetPlusTrackProducerAA.cc:470
OrderedSet.t
t
Definition: OrderedSet.py:90
JPTJetCollection.h
reco::JPTJet::Specific
Definition: JPTJet.h:30
PbPb_ZMuSkimMuonDPG_cff.deltaR
deltaR
Definition: PbPb_ZMuSkimMuonDPG_cff.py:63
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
Vertex.h
EcalSubdetector.h
reco::btau::jetPhi
Definition: TaggingVariable.h:36
reco::btau::jetEta
Definition: TaggingVariable.h:34
CaloSubdetectorGeometry.h
edm::ParameterSet
Definition: ParameterSet.h:36
TrackRefitter_38T_cff.src
src
Definition: TrackRefitter_38T_cff.py:24
Event.h
JetPlusTrackCorrector
Jet energy correction algorithm using tracks.
Definition: JetPlusTrackCorrector.h:168
reco::btau::trackPhi
Definition: TaggingVariable.h:43
iEvent
int iEvent
Definition: GenABIO.cc:224
p4
double p4[4]
Definition: TauolaWrapper.h:92
M_PI
#define M_PI
Definition: BXVectorInputProducer.cc:50
MagneticField.h
edm::EventSetup
Definition: EventSetup.h:57
JetPlusTrackProducerAA.h
edm::RefVector::push_back
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
JetPlusTrackProducerAA::beginJob
void beginJob() override
Definition: JetPlusTrackProducerAA.cc:467
reco::TrackBase::qualityByName
static TrackQuality qualityByName(const std::string &name)
Definition: TrackBase.cc:126
VertexFwd.h
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
jpt::MatchedTracks::outOfVertexInCalo_
reco::TrackRefVector outOfVertexInCalo_
Definition: JetPlusTrackCorrector.h:147
eostools.move
def move(src, dest)
Definition: eostools.py:511
std
Definition: JetResolutionObject.h:76
DetId.h
Frameworkfwd.h
math::XYZTLorentzVector
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
metsig::jet
Definition: SignAlgoResolutions.h:47
SiStripOfflineCRack_cfg.alias
alias
Definition: SiStripOfflineCRack_cfg.py:129
edm::RefVectorIterator
Definition: EDProductfwd.h:33
edm::RefToBase< reco::Jet >
reco::LeafCandidate::energy
double energy() const final
energy
Definition: LeafCandidate.h:125
reco::Particle::Point
math::XYZPoint Point
point in the space
Definition: Particle.h:25
HLT_2018_cff.track
track
Definition: HLT_2018_cff.py:10352
JetPlusTrackProducerAA::calculateBGtracksJet
reco::TrackRefVector calculateBGtracksJet(reco::JPTJetCollection &, std::vector< reco::TrackRef > &, edm::Handle< std::vector< reco::TrackExtrapolation > > &, reco::TrackRefVector &)
Definition: JetPlusTrackProducerAA.cc:380
ParameterSet.h
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
edm::Event
Definition: Event.h:73
JetPlusTrackProducerAA::~JetPlusTrackProducerAA
~JetPlusTrackProducerAA() override
Definition: JetPlusTrackProducerAA.cc:103
Vector3D.h
reco::LeafCandidate::px
double px() const final
x coordinate of momentum vector
Definition: LeafCandidate.h:140
reco::LeafCandidate::pz
double pz() const final
z coordinate of momentum vector
Definition: LeafCandidate.h:144
edm::InputTag
Definition: InputTag.h:15
deltaPhi.h
JPTJet.h