CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
JetPlusTrackProducerAA Class Reference

#include <JetPlusTrackProducerAA.cc>

Inheritance diagram for JetPlusTrackProducerAA:
edm::stream::EDProducer<>

Public Member Functions

reco::TrackRefVector calculateBGtracksJet (reco::JPTJetCollection &, std::vector< reco::TrackRef > &, edm::Handle< std::vector< reco::TrackExtrapolation > > &, reco::TrackRefVector &)
 
 JetPlusTrackProducerAA (const edm::ParameterSet &)
 
void produce (edm::Event &, const edm::EventSetup &) override
 
 ~JetPlusTrackProducerAA () override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Private Attributes

std::string alias
 
edm::EDGetTokenT< std::vector
< reco::TrackExtrapolation > > 
input_extrapolations_token_
 
edm::EDGetTokenT< edm::View
< reco::CaloJet > > 
input_jets_token_
 
edm::EDGetTokenT
< reco::TrackCollection
input_tracks_token_
 
edm::EDGetTokenT
< reco::VertexCollection
input_vertex_token_
 
double mConeSize
 
edm::InputTag mExtrapolations
 
JetPlusTrackCorrectormJPTalgo
 
edm::InputTag mTracks
 
ZSPJPTJetCorrectormZSPalgo
 
edm::InputTag src
 
edm::InputTag srcPVs_
 
reco::TrackBase::TrackQuality trackQuality_
 
bool useZSP
 
bool vectorial_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
using CacheTypes = CacheContexts< T...>
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T...>
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Detailed Description

Description: [one line class summary]

Implementation: [Notes on implementation]

Definition at line 55 of file JetPlusTrackProducerAA.h.

Constructor & Destructor Documentation

JetPlusTrackProducerAA::JetPlusTrackProducerAA ( const edm::ParameterSet iConfig)
explicit

Definition at line 76 of file JetPlusTrackProducerAA.cc.

References HLT_FULL_cff::alias, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), reco::TrackBase::qualityByName(), alcazmumu_cfi::src, and AlCaHLTBitMon_QueryRunRegistry::string.

76  {
77  //register your products
78  src = iConfig.getParameter<edm::InputTag>("src");
79  alias = iConfig.getUntrackedParameter<string>("alias");
80  mTracks = iConfig.getParameter<edm::InputTag>("tracks");
81  srcPVs_ = iConfig.getParameter<edm::InputTag>("srcPVs");
82  vectorial_ = iConfig.getParameter<bool>("VectorialCorrection");
83  useZSP = iConfig.getParameter<bool>("UseZSP");
84  std::string tq = iConfig.getParameter<std::string>("TrackQuality");
86  mConeSize = iConfig.getParameter<double>("coneSize");
87  //=>
88  mExtrapolations = iConfig.getParameter<edm::InputTag>("extrapolations");
89  //=>
90  mJPTalgo = new JetPlusTrackCorrector(iConfig, consumesCollector());
91  if (useZSP)
92  mZSPalgo = new ZSPJPTJetCorrector(iConfig);
93 
94  produces<reco::JPTJetCollection>().setBranchAlias(alias);
95 
96  input_jets_token_ = consumes<edm::View<reco::CaloJet> >(src);
97  input_vertex_token_ = consumes<reco::VertexCollection>(srcPVs_);
98  input_tracks_token_ = consumes<reco::TrackCollection>(mTracks);
99  input_extrapolations_token_ = consumes<std::vector<reco::TrackExtrapolation> >(mExtrapolations);
100 }
T getUntrackedParameter(std::string const &, T const &) const
reco::TrackBase::TrackQuality trackQuality_
ZSPJPTJetCorrector * mZSPalgo
edm::EDGetTokenT< edm::View< reco::CaloJet > > input_jets_token_
JetPlusTrackCorrector * mJPTalgo
edm::EDGetTokenT< reco::TrackCollection > input_tracks_token_
static TrackQuality qualityByName(const std::string &name)
Definition: TrackBase.cc:126
edm::EDGetTokenT< reco::VertexCollection > input_vertex_token_
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
Jet energy correction algorithm using tracks.
edm::EDGetTokenT< std::vector< reco::TrackExtrapolation > > input_extrapolations_token_
JetPlusTrackProducerAA::~JetPlusTrackProducerAA ( )
override

Definition at line 102 of file JetPlusTrackProducerAA.cc.

102  {
103  // do anything here that needs to be done at desctruction time
104  // (e.g. close files, deallocate resources etc.)
105 }

Member Function Documentation

reco::TrackRefVector JetPlusTrackProducerAA::calculateBGtracksJet ( reco::JPTJetCollection fJets,
std::vector< reco::TrackRef > &  fTracks,
edm::Handle< std::vector< reco::TrackExtrapolation > > &  extrapolations_h,
reco::TrackRefVector trBgOutOfCalo 
)

Definition at line 352 of file JetPlusTrackProducerAA.cc.

References edm::RefVector< C, T, F >::begin(), srCondWrite_cfg::deltaPhi, edm::RefVector< C, T, F >::end(), reco::LeafCandidate::eta(), reco::TrackBase::eta(), spr::find(), dqmiolumiharvest::j, metsig::jet, reco::btau::jetEta, reco::btau::jetPhi, reco::LeafCandidate::phi(), reco::TrackBase::phi(), edm::RefVector< C, T, F >::push_back(), submitPVValidationJobs::t, HLT_FULL_cff::track, reco::btau::trackEta, and reco::btau::trackPhi.

356  {
357  reco::TrackRefVector trBgOutOfVertex;
358 
359  for (unsigned t = 0; t < fTracks.size(); ++t) {
360  int track_bg = 0;
361 
362  const reco::Track* track = &*(fTracks[t]);
363  double trackEta = track->eta();
364  double trackPhi = track->phi();
365 
366  //loop on jets
367  for (unsigned j = 0; j < fJets.size(); ++j) {
368  const reco::Jet* jet = &(fJets[j]);
369  double jetEta = jet->eta();
370  double jetPhi = jet->phi();
371 
372  if (fabs(jetEta - trackEta) < mConeSize) {
373  double dphiTrackJet = deltaPhi(trackPhi, jetPhi);
374  if (dphiTrackJet < mConeSize) {
375  track_bg = 1;
376  }
377  }
378  } //jets
379 
380  if (track_bg == 0) {
381  trBgOutOfVertex.push_back(fTracks[t]);
382  }
383 
384  } //tracks
385 
386  //=====> Propagate BG tracks to calo
387  int nValid = 0;
388  for (std::vector<reco::TrackExtrapolation>::const_iterator xtrpBegin = extrapolations_h->begin(),
389  xtrpEnd = extrapolations_h->end(),
390  ixtrp = xtrpBegin;
391  ixtrp != xtrpEnd;
392  ++ixtrp) {
393  nValid++;
394 
395  reco::TrackRefVector::iterator it = find(trBgOutOfVertex.begin(), trBgOutOfVertex.end(), (*ixtrp).track());
396 
397  if (it != trBgOutOfVertex.end()) {
398  trBgOutOfCalo.push_back(*it);
399  }
400  }
401 
402  return trBgOutOfVertex;
403 }
Base class for all types of Jets.
Definition: Jet.h:20
double phi() const
azimuthal angle of momentum vector
Definition: TrackBase.h:649
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223
double eta() const
pseudorapidity of momentum vector
Definition: TrackBase.h:652
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:67
double phi() const final
momentum azimuthal angle
double eta() const final
momentum pseudorapidity
void JetPlusTrackProducerAA::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
override

Definition at line 112 of file JetPlusTrackProducerAA.cc.

References edm::RefVector< C, T, F >::begin(), srCondWrite_cfg::deltaPhi, HLT_FULL_cff::deltaR, reco::JPTJet::Specific::elecsInVertexInCalo, reco::JPTJet::Specific::elecsInVertexOutCalo, reco::JPTJet::Specific::elecsOutVertexInCalo, edm::RefVector< C, T, F >::end(), reco::LeafCandidate::energy(), reco::JPTJet::Specific::Eta2momtr, edm::Event::getByToken(), reco::Jet::getJetConstituents(), mps_fire::i, jpt::MatchedTracks::inVertexInCalo_, jpt::MatchedTracks::inVertexOutOfCalo_, edm::HandleBase::isValid(), M_PI, reco::JPTJet::Specific::mChargedHadronEnergy, eostools::move(), reco::JPTJet::Specific::mResponseOfChargedWithEff, reco::JPTJet::Specific::mResponseOfChargedWithoutEff, reco::JPTJet::Specific::mSumEnergyOfChargedWithEff, reco::JPTJet::Specific::mSumEnergyOfChargedWithoutEff, reco::JPTJet::Specific::mSumPtOfChargedWithEff, reco::JPTJet::Specific::mSumPtOfChargedWithoutEff, patZpeak::muons, reco::JPTJet::Specific::muonsInVertexInCalo, reco::JPTJet::Specific::muonsInVertexOutCalo, reco::JPTJet::Specific::muonsOutVertexInCalo, reco::JPTJet::Specific::mZSPCor, convertSQLiteXML::ok, jpt::MatchedTracks::outOfVertexInCalo_, reco::JPTJet::Specific::Phi2momtr, reco::JPTJet::Specific::pionsInVertexInCalo, reco::JPTJet::Specific::pionsInVertexOutCalo, reco::JPTJet::Specific::pionsOutVertexInCalo, reco::JPTJet::Specific::Pout, edm::Event::put(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), reco::LeafCandidate::pz(), reco::JPTJet::Specific::R2momtr, reco::Jet::scaleEnergy(), edm::second(), timingPdfMaker::specific, mathSSE::sqrt(), reco::JPTJet::Specific::theCaloJetRef, and reco::JPTJet::Specific::Zch.

112  {
113  using namespace edm;
114 
115  // get stuff from Event
117  iEvent.getByToken(input_jets_token_, jets_h);
118 
120  iEvent.getByToken(input_tracks_token_, tracks_h);
121 
122  std::vector<reco::TrackRef> fTracks;
123  fTracks.reserve(tracks_h->size());
124  for (unsigned i = 0; i < tracks_h->size(); ++i) {
125  fTracks.push_back(reco::TrackRef(tracks_h, i));
126  }
127 
129  iEvent.getByToken(input_extrapolations_token_, extrapolations_h);
130 
131  auto pOut = std::make_unique<reco::JPTJetCollection>();
132 
133  reco::JPTJetCollection tmpColl;
134 
135  for (unsigned i = 0; i < jets_h->size(); ++i) {
136  const reco::CaloJet* oldjet = &(*(jets_h->refAt(i)));
137 
138  reco::CaloJet corrected = *oldjet;
139 
140  // ZSP corrections
141 
142  double factorZSP = 1.;
143  if (useZSP)
144  factorZSP = mZSPalgo->correction(corrected, iEvent, iSetup);
145 
146  corrected.scaleEnergy(factorZSP);
147 
148  // JPT corrections
149 
150  double scaleJPT = 1.;
151 
153 
154  // Construct JPTJet constituent
155  jpt::MatchedTracks pions;
157  jpt::MatchedTracks elecs;
158  bool ok = false;
159 
160  if (!vectorial_) {
161  scaleJPT = mJPTalgo->correction(corrected, *oldjet, iEvent, iSetup, pions, muons, elecs, ok);
162  p4 = math::XYZTLorentzVector(corrected.px() * scaleJPT,
163  corrected.py() * scaleJPT,
164  corrected.pz() * scaleJPT,
165  corrected.energy() * scaleJPT);
166  } else {
167  scaleJPT = mJPTalgo->correction(corrected, *oldjet, iEvent, iSetup, p4, pions, muons, elecs, ok);
168  }
169 
171 
172  if (ok) {
173  specific.pionsInVertexInCalo = pions.inVertexInCalo_;
174  specific.pionsInVertexOutCalo = pions.inVertexOutOfCalo_;
175  specific.pionsOutVertexInCalo = pions.outOfVertexInCalo_;
176  specific.muonsInVertexInCalo = muons.inVertexInCalo_;
177  specific.muonsInVertexOutCalo = muons.inVertexOutOfCalo_;
178  specific.muonsOutVertexInCalo = muons.outOfVertexInCalo_;
179  specific.elecsInVertexInCalo = elecs.inVertexInCalo_;
180  specific.elecsInVertexOutCalo = elecs.inVertexOutOfCalo_;
181  specific.elecsOutVertexInCalo = elecs.outOfVertexInCalo_;
182  }
183 
184  // Fill JPT Specific
185  edm::RefToBase<reco::Jet> myjet = (edm::RefToBase<reco::Jet>)jets_h->refAt(i);
186  specific.theCaloJetRef = myjet;
187  specific.mZSPCor = factorZSP;
190  specific.mSumPtOfChargedWithEff = (float)mJPTalgo->getSumPtWithEff();
195  // Fill Charged Jet shape parameters
196  double deR2Tr = 0.;
197  double deEta2Tr = 0.;
198  double dePhi2Tr = 0.;
199  double Zch = 0.;
200  double Pout2 = 0.;
201  double Pout = 0.;
202  double denominator_tracks = 0.;
203  int ntracks = 0;
204 
206  it++) {
207  double deR = deltaR((*it)->eta(), (*it)->phi(), p4.eta(), p4.phi());
208  double deEta = (*it)->eta() - p4.eta();
209  double dePhi = deltaPhi((*it)->phi(), p4.phi());
210  if ((**it).ptError() / (**it).pt() < 0.1) {
211  deR2Tr = deR2Tr + deR * deR * (*it)->pt();
212  deEta2Tr = deEta2Tr + deEta * deEta * (*it)->pt();
213  dePhi2Tr = dePhi2Tr + dePhi * dePhi * (*it)->pt();
214  denominator_tracks = denominator_tracks + (*it)->pt();
215  Zch = Zch + (*it)->pt();
216 
217  Pout2 = Pout2 + (**it).p() * (**it).p() - (Zch * p4.P()) * (Zch * p4.P());
218  ntracks++;
219  }
220  }
222  it++) {
223  double deR = deltaR((*it)->eta(), (*it)->phi(), p4.eta(), p4.phi());
224  double deEta = (*it)->eta() - p4.eta();
225  double dePhi = deltaPhi((*it)->phi(), p4.phi());
226  if ((**it).ptError() / (**it).pt() < 0.1) {
227  deR2Tr = deR2Tr + deR * deR * (*it)->pt();
228  deEta2Tr = deEta2Tr + deEta * deEta * (*it)->pt();
229  dePhi2Tr = dePhi2Tr + dePhi * dePhi * (*it)->pt();
230  denominator_tracks = denominator_tracks + (*it)->pt();
231  Zch = Zch + (*it)->pt();
232 
233  Pout2 = Pout2 + (**it).p() * (**it).p() - (Zch * p4.P()) * (Zch * p4.P());
234  ntracks++;
235  }
236  }
238  it++) {
239  double deR = deltaR((*it)->eta(), (*it)->phi(), p4.eta(), p4.phi());
240  double deEta = (*it)->eta() - p4.eta();
241  double dePhi = deltaPhi((*it)->phi(), p4.phi());
242  if ((**it).ptError() / (**it).pt() < 0.1) {
243  deR2Tr = deR2Tr + deR * deR * (*it)->pt();
244  deEta2Tr = deEta2Tr + deEta * deEta * (*it)->pt();
245  dePhi2Tr = dePhi2Tr + dePhi * dePhi * (*it)->pt();
246  denominator_tracks = denominator_tracks + (*it)->pt();
247  Zch = Zch + (*it)->pt();
248 
249  Pout2 = Pout2 + (**it).p() * (**it).p() - (Zch * p4.P()) * (Zch * p4.P());
250  ntracks++;
251  }
252  }
254  it != pions.inVertexOutOfCalo_.end();
255  it++) {
256  Zch = Zch + (*it)->pt();
257  }
259  it != muons.inVertexOutOfCalo_.end();
260  it++) {
261  Zch = Zch + (*it)->pt();
262  }
264  it != elecs.inVertexOutOfCalo_.end();
265  it++) {
266  Zch = Zch + (*it)->pt();
267  }
268 
269  if (mJPTalgo->getSumPtForBeta() > 0.)
270  Zch = Zch / mJPTalgo->getSumPtForBeta();
271 
272  if (ntracks > 0) {
273  Pout = sqrt(fabs(Pout2)) / ntracks;
274  }
275 
276  if (denominator_tracks != 0) {
277  deR2Tr = deR2Tr / denominator_tracks;
278  deEta2Tr = deEta2Tr / denominator_tracks;
279  dePhi2Tr = dePhi2Tr / denominator_tracks;
280  }
281 
282  specific.R2momtr = deR2Tr;
283  specific.Eta2momtr = deEta2Tr;
284  specific.Phi2momtr = dePhi2Tr;
285  specific.Pout = Pout;
286  specific.Zch = Zch;
287 
288  // Create JPT jet
289 
290  reco::Particle::Point vertex_ = reco::Jet::Point(0, 0, 0);
291 
292  // If we add primary vertex
294  iEvent.getByToken(input_vertex_token_, pvCollection);
295  if (pvCollection.isValid() && !pvCollection->empty())
296  vertex_ = pvCollection->begin()->position();
297 
298  reco::JPTJet fJet(p4, vertex_, specific, corrected.getJetConstituents());
299  // fJet.printJet();
300 
301  // Temporarily collection before correction for background
302 
303  tmpColl.push_back(fJet);
304  }
305 
306  //=======================================================================================================>
307  // Correction for background
308 
309  reco::TrackRefVector trBgOutOfCalo;
310  reco::TrackRefVector trBgOutOfVertex = calculateBGtracksJet(tmpColl, fTracks, extrapolations_h, trBgOutOfCalo);
311 
312  //===> Area without Jets
313  std::map<reco::JPTJetCollection::iterator, double> AreaNonJet;
314 
315  for (reco::JPTJetCollection::iterator ij1 = tmpColl.begin(); ij1 != tmpColl.end(); ij1++) {
316  int nj1 = 1;
317  for (reco::JPTJetCollection::iterator ij2 = tmpColl.begin(); ij2 != tmpColl.end(); ij2++) {
318  if (ij2 == ij1)
319  continue;
320  if (fabs((*ij1).eta() - (*ij2).eta()) > 0.5)
321  continue;
322  nj1++;
323  }
324 
325  AreaNonJet[ij1] = 4 * M_PI * mConeSize - nj1 * 4 * mConeSize * mConeSize;
326  }
327 
328  //===>
329 
330  for (reco::JPTJetCollection::iterator ij = tmpColl.begin(); ij != tmpColl.end(); ij++) {
331  // Correct JPTjet for background tracks
332 
333  const reco::TrackRefVector pioninin = (*ij).getPionsInVertexInCalo();
334  const reco::TrackRefVector pioninout = (*ij).getPionsInVertexOutCalo();
335 
336  double ja = (AreaNonJet.find(ij))->second;
337 
338  double factorPU = mJPTalgo->correctAA(*ij, trBgOutOfVertex, mConeSize, pioninin, pioninout, ja, trBgOutOfCalo);
339 
340  (*ij).scaleEnergy(factorPU);
341 
342  // Output module
343  pOut->push_back(*ij);
344  }
345 
346  iEvent.put(std::move(pOut));
347 }
reco::TrackRefVector muonsInVertexOutCalo
Definition: JPTJet.h:54
float mSumEnergyOfChargedWithoutEff
Definition: JPTJet.h:68
dictionary specific
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:133
double pz() const final
z coordinate of momentum vector
Jets made from CaloTowers.
Definition: CaloJet.h:27
reco::TrackRefVector muonsInVertexInCalo
Definition: JPTJet.h:53
virtual void scaleEnergy(double fScale)
scale energy of the jet
reco::TrackRefVector calculateBGtracksJet(reco::JPTJetCollection &, std::vector< reco::TrackRef > &, edm::Handle< std::vector< reco::TrackExtrapolation > > &, reco::TrackRefVector &)
ZSPJPTJetCorrector * mZSPalgo
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:539
std::vector< JPTJet > JPTJetCollection
collection of CaloJet objects
float mChargedHadronEnergy
Definition: JPTJet.h:59
float mSumPtOfChargedWithEff
Definition: JPTJet.h:65
reco::TrackRefVector inVertexInCalo_
reco::TrackRefVector muonsOutVertexInCalo
Definition: JPTJet.h:55
reco::TrackRefVector inVertexOutOfCalo_
virtual double correction(const reco::Jet &, const edm::Event &, const edm::EventSetup &) const
apply correction using Event information
float mResponseOfChargedWithEff
Definition: JPTJet.h:63
reco::TrackRefVector elecsOutVertexInCalo
Definition: JPTJet.h:58
virtual Constituents getJetConstituents() const
list of constituents
reco::TrackRefVector pionsInVertexOutCalo
Definition: JPTJet.h:51
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223
edm::EDGetTokenT< edm::View< reco::CaloJet > > input_jets_token_
U second(std::pair< T, U > const &p)
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
double px() const final
x coordinate of momentum vector
T sqrt(T t)
Definition: SSEVec.h:19
Jets made from CaloJets corrected for ZSP and tracks.
Definition: JPTJet.h:28
double correction(const reco::Jet &, const reco::Jet &, const edm::Event &, const edm::EventSetup &, P4 &, jpt::MatchedTracks &pions, jpt::MatchedTracks &muons, jpt::MatchedTracks &elecs, bool &validMatches)
Vectorial correction method (corrected 4-momentum passed by reference)
JetPlusTrackCorrector * mJPTalgo
def move
Definition: eostools.py:511
double getResponseOfChargedWithEff()
Get responses/sumPT/SumEnergy with and without Efficiency correction.
reco::TrackRefVector pionsOutVertexInCalo
Definition: JPTJet.h:52
float mSumEnergyOfChargedWithEff
Definition: JPTJet.h:67
math::XYZPoint Point
point in the space
Definition: Particle.h:25
reco::TrackRefVector outOfVertexInCalo_
reco::TrackRefVector elecsInVertexInCalo
Definition: JPTJet.h:56
edm::EDGetTokenT< reco::TrackCollection > input_tracks_token_
double py() const final
y coordinate of momentum vector
bool isValid() const
Definition: HandleBase.h:70
double correctAA(const reco::Jet &, const reco::TrackRefVector &, double &, const reco::TrackRefVector &, const reco::TrackRefVector &, double, const reco::TrackRefVector &) const
For AA - correct in tracker.
edm::RefToBase< reco::Jet > theCaloJetRef
Definition: JPTJet.h:49
#define M_PI
float mResponseOfChargedWithoutEff
Definition: JPTJet.h:64
reco::TrackRefVector pionsInVertexInCalo
Definition: JPTJet.h:50
edm::EDGetTokenT< reco::VertexCollection > input_vertex_token_
float mSumPtOfChargedWithoutEff
Definition: JPTJet.h:66
reco::TrackRefVector elecsInVertexOutCalo
Definition: JPTJet.h:57
Particles matched to tracks that are in/in, in/out, out/in at Vertex and CaloFace.
tuple muons
Definition: patZpeak.py:39
edm::EDGetTokenT< std::vector< reco::TrackExtrapolation > > input_extrapolations_token_
math::XYZPoint Point
point in the space
Definition: LeafCandidate.h:27
double energy() const final
energy

Member Data Documentation

std::string JetPlusTrackProducerAA::alias
private

Definition at line 72 of file JetPlusTrackProducerAA.h.

edm::EDGetTokenT<std::vector<reco::TrackExtrapolation> > JetPlusTrackProducerAA::input_extrapolations_token_
private

Definition at line 86 of file JetPlusTrackProducerAA.h.

edm::EDGetTokenT<edm::View<reco::CaloJet> > JetPlusTrackProducerAA::input_jets_token_
private

Definition at line 83 of file JetPlusTrackProducerAA.h.

edm::EDGetTokenT<reco::TrackCollection> JetPlusTrackProducerAA::input_tracks_token_
private

Definition at line 85 of file JetPlusTrackProducerAA.h.

edm::EDGetTokenT<reco::VertexCollection> JetPlusTrackProducerAA::input_vertex_token_
private

Definition at line 84 of file JetPlusTrackProducerAA.h.

double JetPlusTrackProducerAA::mConeSize
private

Definition at line 76 of file JetPlusTrackProducerAA.h.

edm::InputTag JetPlusTrackProducerAA::mExtrapolations
private

Definition at line 80 of file JetPlusTrackProducerAA.h.

JetPlusTrackCorrector* JetPlusTrackProducerAA::mJPTalgo
private

Definition at line 68 of file JetPlusTrackProducerAA.h.

edm::InputTag JetPlusTrackProducerAA::mTracks
private

Definition at line 75 of file JetPlusTrackProducerAA.h.

ZSPJPTJetCorrector* JetPlusTrackProducerAA::mZSPalgo
private

Definition at line 69 of file JetPlusTrackProducerAA.h.

edm::InputTag JetPlusTrackProducerAA::src
private

Definition at line 70 of file JetPlusTrackProducerAA.h.

edm::InputTag JetPlusTrackProducerAA::srcPVs_
private

Definition at line 71 of file JetPlusTrackProducerAA.h.

reco::TrackBase::TrackQuality JetPlusTrackProducerAA::trackQuality_
private

Definition at line 77 of file JetPlusTrackProducerAA.h.

bool JetPlusTrackProducerAA::useZSP
private

Definition at line 74 of file JetPlusTrackProducerAA.h.

bool JetPlusTrackProducerAA::vectorial_
private

Definition at line 73 of file JetPlusTrackProducerAA.h.