CMS 3D CMS Logo

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::TrackCollectioninput_tracks_token_
 
edm::EDGetTokenT< reco::VertexCollectioninput_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::JetPlusTrackProducerAA ( const edm::ParameterSet iConfig)
explicit

Definition at line 76 of file JetPlusTrackProducerAA.cc.

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 }

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

◆ ~JetPlusTrackProducerAA()

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

◆ calculateBGtracksJet()

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.

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 }

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

◆ produce()

void JetPlusTrackProducerAA::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
override

Definition at line 112 of file JetPlusTrackProducerAA.cc.

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;
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;
188  specific.mResponseOfChargedWithEff = (float)mJPTalgo->getResponseOfChargedWithEff();
189  specific.mResponseOfChargedWithoutEff = (float)mJPTalgo->getResponseOfChargedWithoutEff();
190  specific.mSumPtOfChargedWithEff = (float)mJPTalgo->getSumPtWithEff();
191  specific.mSumPtOfChargedWithoutEff = (float)mJPTalgo->getSumPtWithoutEff();
192  specific.mSumEnergyOfChargedWithEff = (float)mJPTalgo->getSumEnergyWithEff();
193  specific.mSumEnergyOfChargedWithoutEff = (float)mJPTalgo->getSumEnergyWithoutEff();
194  specific.mChargedHadronEnergy = (float)mJPTalgo->getSumEnergyWithoutEff();
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  }
221  for (reco::TrackRefVector::const_iterator it = muons.inVertexInCalo_.begin(); it != muons.inVertexInCalo_.end();
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  }
237  for (reco::TrackRefVector::const_iterator it = elecs.inVertexInCalo_.begin(); it != elecs.inVertexInCalo_.end();
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  }
258  for (reco::TrackRefVector::const_iterator it = muons.inVertexOutOfCalo_.begin();
259  it != muons.inVertexOutOfCalo_.end();
260  it++) {
261  Zch = Zch + (*it)->pt();
262  }
263  for (reco::TrackRefVector::const_iterator it = elecs.inVertexOutOfCalo_.begin();
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
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 }

References edm::RefVector< C, T, F >::begin(), SiPixelRawToDigiRegional_cfi::deltaPhi, PbPb_ZMuSkimMuonDPG_cff::deltaR, singleTopDQM_cfi::elecs, edm::RefVector< C, T, F >::end(), reco::LeafCandidate::energy(), dqmMemoryStats::float, reco::Jet::getJetConstituents(), mps_fire::i, iEvent, jpt::MatchedTracks::inVertexInCalo_, jpt::MatchedTracks::inVertexOutOfCalo_, M_PI, eostools::move(), PDWG_BPHSkim_cff::muons, vertices_cff::ntracks, convertSQLiteXML::ok, jpt::MatchedTracks::outOfVertexInCalo_, p4, L1TrackObjectNtupleMaker_cfg::pOut, anotherprimaryvertexanalyzer_cfi::pvCollection, reco::LeafCandidate::px(), reco::LeafCandidate::py(), reco::LeafCandidate::pz(), reco::Jet::scaleEnergy(), edm::second(), timingPdfMaker::specific, and mathSSE::sqrt().

Member Data Documentation

◆ alias

std::string JetPlusTrackProducerAA::alias
private

Definition at line 72 of file JetPlusTrackProducerAA.h.

◆ input_extrapolations_token_

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

Definition at line 86 of file JetPlusTrackProducerAA.h.

◆ input_jets_token_

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

Definition at line 83 of file JetPlusTrackProducerAA.h.

◆ input_tracks_token_

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

Definition at line 85 of file JetPlusTrackProducerAA.h.

◆ input_vertex_token_

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

Definition at line 84 of file JetPlusTrackProducerAA.h.

◆ mConeSize

double JetPlusTrackProducerAA::mConeSize
private

Definition at line 76 of file JetPlusTrackProducerAA.h.

◆ mExtrapolations

edm::InputTag JetPlusTrackProducerAA::mExtrapolations
private

Definition at line 80 of file JetPlusTrackProducerAA.h.

◆ mJPTalgo

JetPlusTrackCorrector* JetPlusTrackProducerAA::mJPTalgo
private

Definition at line 68 of file JetPlusTrackProducerAA.h.

◆ mTracks

edm::InputTag JetPlusTrackProducerAA::mTracks
private

Definition at line 75 of file JetPlusTrackProducerAA.h.

◆ mZSPalgo

ZSPJPTJetCorrector* JetPlusTrackProducerAA::mZSPalgo
private

Definition at line 69 of file JetPlusTrackProducerAA.h.

◆ src

edm::InputTag JetPlusTrackProducerAA::src
private

Definition at line 70 of file JetPlusTrackProducerAA.h.

◆ srcPVs_

edm::InputTag JetPlusTrackProducerAA::srcPVs_
private

Definition at line 71 of file JetPlusTrackProducerAA.h.

◆ trackQuality_

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

Definition at line 77 of file JetPlusTrackProducerAA.h.

◆ useZSP

bool JetPlusTrackProducerAA::useZSP
private

Definition at line 74 of file JetPlusTrackProducerAA.h.

◆ vectorial_

bool JetPlusTrackProducerAA::vectorial_
private

Definition at line 73 of file JetPlusTrackProducerAA.h.

JetPlusTrackProducerAA::srcPVs_
edm::InputTag srcPVs_
Definition: JetPlusTrackProducerAA.h:71
reco::JPTJet
Jets made from CaloJets corrected for ZSP and tracks.
Definition: JPTJet.h:28
PDWG_BPHSkim_cff.muons
muons
Definition: PDWG_BPHSkim_cff.py:47
reco::CaloJet
Jets made from CaloTowers.
Definition: CaloJet.h:27
JetPlusTrackProducerAA::input_extrapolations_token_
edm::EDGetTokenT< std::vector< reco::TrackExtrapolation > > input_extrapolations_token_
Definition: JetPlusTrackProducerAA.h:86
JetPlusTrackProducerAA::src
edm::InputTag src
Definition: JetPlusTrackProducerAA.h:70
reco::Jet::scaleEnergy
virtual void scaleEnergy(double fScale)
scale energy of the jet
mps_fire.i
i
Definition: mps_fire.py:428
reco::Jet
Base class for all types of Jets.
Definition: Jet.h:20
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11724
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
reco::LeafCandidate::Point
math::XYZPoint Point
point in the space
Definition: LeafCandidate.h:27
JetPlusTrackCorrector::correctAA
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.
Definition: JetPlusTrackCorrector.cc:1263
JetPlusTrackProducerAA::input_vertex_token_
edm::EDGetTokenT< reco::VertexCollection > input_vertex_token_
Definition: JetPlusTrackProducerAA.h:84
jpt::MatchedTracks::inVertexOutOfCalo_
reco::TrackRefVector inVertexOutOfCalo_
Definition: JetPlusTrackCorrector.h:151
edm
HLT enums.
Definition: AlignableModifier.h:19
JetPlusTrackProducerAA::vectorial_
bool vectorial_
Definition: JetPlusTrackProducerAA.h:73
edm::RefVector::begin
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223
JetPlusTrackProducerAA::mConeSize
double mConeSize
Definition: JetPlusTrackProducerAA.h:76
JetPlusTrackProducerAA::alias
std::string alias
Definition: JetPlusTrackProducerAA.h:72
L1TrackObjectNtupleMaker_cfg.pOut
pOut
Definition: L1TrackObjectNtupleMaker_cfg.py:172
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:222
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
reco::btau::trackEta
Definition: TaggingVariable.h:42
edm::RefVector< TrackCollection >
vertices_cff.ntracks
ntracks
Definition: vertices_cff.py:34
jpt::MatchedTracks::inVertexInCalo_
reco::TrackRefVector inVertexInCalo_
Definition: JetPlusTrackCorrector.h:149
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:144
JetPlusTrackProducerAA::input_jets_token_
edm::EDGetTokenT< edm::View< reco::CaloJet > > input_jets_token_
Definition: JetPlusTrackProducerAA.h:83
JetPlusTrackProducerAA::input_tracks_token_
edm::EDGetTokenT< reco::TrackCollection > input_tracks_token_
Definition: JetPlusTrackProducerAA.h:85
edm::RefVector::end
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
JetPlusTrackCorrector::correction
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)
Definition: JetPlusTrackCorrector.cc:151
SiPixelRawToDigiRegional_cfi.deltaPhi
deltaPhi
Definition: SiPixelRawToDigiRegional_cfi.py:9
reco::LeafCandidate::py
double py() const final
y coordinate of momentum vector
Definition: LeafCandidate.h:142
timingPdfMaker.specific
specific
Definition: timingPdfMaker.py:77
JetPlusTrackProducerAA::useZSP
bool useZSP
Definition: JetPlusTrackProducerAA.h:74
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
reco::Track
Definition: Track.h:27
JetPlusTrackProducerAA::mExtrapolations
edm::InputTag mExtrapolations
Definition: JetPlusTrackProducerAA.h:80
reco::Jet::getJetConstituents
virtual Constituents getJetConstituents() const
list of constituents
singleTopDQM_cfi.elecs
elecs
Definition: singleTopDQM_cfi.py:41
anotherprimaryvertexanalyzer_cfi.pvCollection
pvCollection
Definition: anotherprimaryvertexanalyzer_cfi.py:4
ZSPJPTJetCorrector::correction
virtual double correction(const reco::Jet &, const edm::Event &, const edm::EventSetup &) const
apply correction using Event information
Definition: ZSPJPTJetCorrector.cc:41
JetPlusTrackProducerAA::trackQuality_
reco::TrackBase::TrackQuality trackQuality_
Definition: JetPlusTrackProducerAA.h:77
reco::JPTJet::Specific
Definition: JPTJet.h:30
PbPb_ZMuSkimMuonDPG_cff.deltaR
deltaR
Definition: PbPb_ZMuSkimMuonDPG_cff.py:63
JetPlusTrackCorrector::getSumEnergyWithoutEff
double getSumEnergyWithoutEff()
Definition: JetPlusTrackCorrector.h:249
reco::btau::jetPhi
Definition: TaggingVariable.h:36
reco::btau::jetEta
Definition: TaggingVariable.h:34
JetPlusTrackCorrector
Jet energy correction algorithm using tracks.
Definition: JetPlusTrackCorrector.h:171
reco::btau::trackPhi
Definition: TaggingVariable.h:43
JetPlusTrackCorrector::getResponseOfChargedWithEff
double getResponseOfChargedWithEff()
Get responses/sumPT/SumEnergy with and without Efficiency correction.
Definition: JetPlusTrackCorrector.h:244
iEvent
int iEvent
Definition: GenABIO.cc:224
p4
double p4[4]
Definition: TauolaWrapper.h:92
M_PI
#define M_PI
Definition: BXVectorInputProducer.cc:49
JetPlusTrackCorrector::getSumPtWithoutEff
double getSumPtWithoutEff()
Definition: JetPlusTrackCorrector.h:247
JetPlusTrackProducerAA::mJPTalgo
JetPlusTrackCorrector * mJPTalgo
Definition: JetPlusTrackProducerAA.h:68
edm::RefVector::push_back
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
JetPlusTrackCorrector::getSumEnergyWithEff
double getSumEnergyWithEff()
Definition: JetPlusTrackCorrector.h:248
reco::TrackBase::qualityByName
static TrackQuality qualityByName(const std::string &name)
Definition: TrackBase.cc:126
JetPlusTrackCorrector::getSumPtForBeta
double getSumPtForBeta()
Definition: JetPlusTrackCorrector.h:250
jpt::MatchedTracks::outOfVertexInCalo_
reco::TrackRefVector outOfVertexInCalo_
Definition: JetPlusTrackCorrector.h:150
eostools.move
def move(src, dest)
Definition: eostools.py:511
JetPlusTrackProducerAA::mTracks
edm::InputTag mTracks
Definition: JetPlusTrackProducerAA.h:75
math::XYZTLorentzVector
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
metsig::jet
Definition: SignAlgoResolutions.h:47
JetPlusTrackCorrector::getResponseOfChargedWithoutEff
double getResponseOfChargedWithoutEff()
Definition: JetPlusTrackCorrector.h:245
edm::RefVectorIterator
Definition: EDProductfwd.h:33
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::RefToBase< reco::Jet >
JetPlusTrackCorrector::getSumPtWithEff
double getSumPtWithEff()
Definition: JetPlusTrackCorrector.h:246
reco::LeafCandidate::energy
double energy() const final
energy
Definition: LeafCandidate.h:125
JetPlusTrackProducerAA::mZSPalgo
ZSPJPTJetCorrector * mZSPalgo
Definition: JetPlusTrackProducerAA.h:69
reco::Particle::Point
math::XYZPoint Point
point in the space
Definition: Particle.h:25
JetPlusTrackProducerAA::calculateBGtracksJet
reco::TrackRefVector calculateBGtracksJet(reco::JPTJetCollection &, std::vector< reco::TrackRef > &, edm::Handle< std::vector< reco::TrackExtrapolation > > &, reco::TrackRefVector &)
Definition: JetPlusTrackProducerAA.cc:352
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
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