CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Attributes
PileUpSubtractor Class Reference

#include <PileUpSubtractor.h>

Inheritance diagram for PileUpSubtractor:
JetOffsetCorrector MultipleAlgoIterator ParametrizedSubtractor ReflectedIterator

Public Types

typedef std::shared_ptr< fastjet::GhostedAreaSpec > ActiveAreaSpecPtr
 
typedef std::shared_ptr< fastjet::ClusterSequence > ClusterSequencePtr
 
typedef std::shared_ptr< fastjet::JetDefinition > JetDefPtr
 
typedef std::shared_ptr< fastjet::RangeDefinition > RangeDefPtr
 

Public Member Functions

virtual void calculateOrphanInput (std::vector< fastjet::PseudoJet > &orphanInput)
 
virtual void calculatePedestal (std::vector< fastjet::PseudoJet > const &coll)
 
virtual double getCone (double cone, double eta, double phi, double &et, double &pu)
 
virtual double getMeanAtTower (const reco::CandidatePtr &in) const
 
int getN (const reco::CandidatePtr &in) const
 
int getNwithJets (const reco::CandidatePtr &in) const
 
virtual double getPileUpAtTower (const reco::CandidatePtr &in) const
 
virtual double getPileUpEnergy (int ijet) const
 
virtual double getSigmaAtTower (const reco::CandidatePtr &in) const
 
int ieta (const reco::CandidatePtr &in) const
 
int iphi (const reco::CandidatePtr &in) const
 
virtual void offsetCorrectJets ()
 
 PileUpSubtractor (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
 
virtual void reset (std::vector< edm::Ptr< reco::Candidate > > &input, std::vector< fastjet::PseudoJet > &towers, std::vector< fastjet::PseudoJet > &output)
 
virtual void setDefinition (JetDefPtr const &jetDef)
 
virtual void setupGeometryMap (edm::Event &iEvent, const edm::EventSetup &iSetup)
 
virtual void subtractPedestal (std::vector< fastjet::PseudoJet > &coll)
 
virtual ~PileUpSubtractor ()
 

Protected Attributes

int activeAreaRepeats
 
std::vector< HcalDetIdallgeomid_
 
bool doAreaFastjet_
 
bool doRhoFastjet_
 
std::map< int, double > emean_
 
std::map< int, double > esigma_
 
ActiveAreaSpecPtr fjActiveArea_
 
ClusterSequencePtr fjClusterSeq_
 
std::vector< fastjet::PseudoJet > * fjInputs_
 
JetDefPtr fjJetDefinition_
 
std::vector< fastjet::PseudoJet > * fjJets_
 
std::vector< fastjet::PseudoJet > fjOriginalInputs_
 
CaloGeometry const * geo_
 
std::map< int, int > geomtowers_
 
double ghostArea
 
double ghostEtaMax
 
int ietamax_
 
int ietamin_
 
std::vector< edm::Ptr< reco::Candidate > > * inputs_
 
std::vector< double > jetOffset_
 
double jetPtMin_
 
double nSigmaPU_
 
std::map< int, int > ntowersWithJets_
 
double puPtMin_
 
double radiusPU_
 
bool reRunAlgo_
 

Detailed Description

Definition at line 23 of file PileUpSubtractor.h.

Member Typedef Documentation

◆ ActiveAreaSpecPtr

typedef std::shared_ptr<fastjet::GhostedAreaSpec> PileUpSubtractor::ActiveAreaSpecPtr

Definition at line 26 of file PileUpSubtractor.h.

◆ ClusterSequencePtr

typedef std::shared_ptr<fastjet::ClusterSequence> PileUpSubtractor::ClusterSequencePtr

Definition at line 25 of file PileUpSubtractor.h.

◆ JetDefPtr

typedef std::shared_ptr<fastjet::JetDefinition> PileUpSubtractor::JetDefPtr

Definition at line 28 of file PileUpSubtractor.h.

◆ RangeDefPtr

typedef std::shared_ptr<fastjet::RangeDefinition> PileUpSubtractor::RangeDefPtr

Definition at line 27 of file PileUpSubtractor.h.

Constructor & Destructor Documentation

◆ PileUpSubtractor()

PileUpSubtractor::PileUpSubtractor ( const edm::ParameterSet iConfig,
edm::ConsumesCollector &&  iC 
)

Definition at line 20 of file PileUpSubtractor.cc.

20  {
21  geo_ = nullptr;
22  doAreaFastjet_ = iConfig.getParameter<bool>("doAreaFastjet");
23  doRhoFastjet_ = iConfig.getParameter<bool>("doRhoFastjet");
24  nSigmaPU_ = iConfig.getParameter<double>("nSigmaPU");
25  radiusPU_ = iConfig.getParameter<double>("radiusPU");
26  jetPtMin_ = iConfig.getParameter<double>("jetPtMin");
27  puPtMin_ = iConfig.getParameter<double>("puPtMin");
28  ghostEtaMax = iConfig.getParameter<double>("Ghost_EtaMax");
29  activeAreaRepeats = iConfig.getParameter<int>("Active_Area_Repeats");
30  ghostArea = iConfig.getParameter<double>("GhostArea");
31 
33  fjActiveArea_ = std::make_shared<fastjet::ActiveAreaSpec>(ghostEtaMax, activeAreaRepeats, ghostArea);
34  if ((ghostEtaMax < 0) || (activeAreaRepeats < 0) || (ghostArea < 0))
35  throw cms::Exception("doAreaFastjet or doRhoFastjet")
36  << "Parameters ghostEtaMax, activeAreaRepeats or ghostArea for doAreaFastjet/doRhoFastjet are not defined."
37  << std::endl;
38  }
39 }

References Exception, and edm::ParameterSet::getParameter().

◆ ~PileUpSubtractor()

virtual PileUpSubtractor::~PileUpSubtractor ( )
inlinevirtual

Definition at line 31 of file PileUpSubtractor.h.

31 { ; }

Member Function Documentation

◆ calculateOrphanInput()

void PileUpSubtractor::calculateOrphanInput ( std::vector< fastjet::PseudoJet > &  orphanInput)
virtual

Reimplemented in ParametrizedSubtractor, and MultipleAlgoIterator.

Definition at line 184 of file PileUpSubtractor.cc.

184  {
185  LogDebug("PileUpSubtractor") << "The subtractor calculating orphan input...\n";
186 
187  (*fjInputs_) = fjOriginalInputs_;
188 
189  vector<int> jettowers; // vector of towers indexed by "user_index"
190  vector<pair<int, int> > excludedTowers; // vector of excluded ieta, iphi values
191 
192  vector<fastjet::PseudoJet>::iterator pseudojetTMP = fjJets_->begin(), fjJetsEnd = fjJets_->end();
193  for (; pseudojetTMP != fjJetsEnd; ++pseudojetTMP) {
194  if (pseudojetTMP->perp() < puPtMin_)
195  continue;
196 
197  // find towers within radiusPU_ of this jet
198  for (vector<HcalDetId>::const_iterator im = allgeomid_.begin(); im != allgeomid_.end(); im++) {
199  double dr = reco::deltaR(geo_->getPosition((DetId)(*im)), (*pseudojetTMP));
200  vector<pair<int, int> >::const_iterator exclude =
201  find(excludedTowers.begin(), excludedTowers.end(), pair<int, int>(im->ieta(), im->iphi()));
202  if (dr < radiusPU_ && exclude == excludedTowers.end()) {
203  ntowersWithJets_[(*im).ieta()]++;
204  excludedTowers.push_back(pair<int, int>(im->ieta(), im->iphi()));
205  }
206  }
207  vector<fastjet::PseudoJet>::const_iterator it = fjInputs_->begin(), fjInputsEnd = fjInputs_->end();
208 
209  for (; it != fjInputsEnd; ++it) {
210  int index = it->user_index();
211  int ie = ieta((*inputs_)[index]);
212  int ip = iphi((*inputs_)[index]);
213  vector<pair<int, int> >::const_iterator exclude =
214  find(excludedTowers.begin(), excludedTowers.end(), pair<int, int>(ie, ip));
215  if (exclude != excludedTowers.end()) {
216  jettowers.push_back(index);
217  } //dr < radiusPU_
218  } // initial input collection
219  } // pseudojets
220 
221  //
222  // Create a new collections from the towers not included in jets
223  //
224  for (vector<fastjet::PseudoJet>::const_iterator it = fjInputs_->begin(), fjInputsEnd = fjInputs_->end();
225  it != fjInputsEnd;
226  ++it) {
227  int index = it->user_index();
228  vector<int>::const_iterator itjet = find(jettowers.begin(), jettowers.end(), index);
229  if (itjet == jettowers.end()) {
230  const reco::CandidatePtr& originalTower = (*inputs_)[index];
231  fastjet::PseudoJet orphan(originalTower->px(), originalTower->py(), originalTower->pz(), originalTower->energy());
232  orphan.set_user_index(index);
233 
234  orphanInput.push_back(orphan);
235  }
236  }
237 }

References reco::deltaR(), flavorHistoryFilter_cfi::dr, spr::find(), LEDCalibrationChannels::ieta, LEDCalibrationChannels::iphi, and LogDebug.

◆ calculatePedestal()

void PileUpSubtractor::calculatePedestal ( std::vector< fastjet::PseudoJet > const &  coll)
virtual

Reimplemented in ParametrizedSubtractor, ReflectedIterator, and MultipleAlgoIterator.

Definition at line 96 of file PileUpSubtractor.cc.

96  {
97  LogDebug("PileUpSubtractor") << "The subtractor calculating pedestals...\n";
98  map<int, double> emean2;
99  map<int, int> ntowers;
100 
101  int ietaold = -10000;
102  int ieta0 = -100;
103 
104  // Initial values for emean_, emean2, esigma_, ntowers
105 
106  for (int i = ietamin_; i < ietamax_ + 1; i++) {
107  emean_[i] = 0.;
108  emean2[i] = 0.;
109  esigma_[i] = 0.;
110  ntowers[i] = 0;
111  }
112 
113  for (vector<fastjet::PseudoJet>::const_iterator input_object = coll.begin(), fjInputsEnd = coll.end();
114  input_object != fjInputsEnd;
115  ++input_object) {
116  const reco::CandidatePtr& originalTower = (*inputs_)[input_object->user_index()];
117  ieta0 = ieta(originalTower);
118  double Original_Et = originalTower->et();
119  if (ieta0 - ietaold != 0) {
120  emean_[ieta0] = emean_[ieta0] + Original_Et;
121  emean2[ieta0] = emean2[ieta0] + Original_Et * Original_Et;
122  ntowers[ieta0] = 1;
123  ietaold = ieta0;
124  } else {
125  emean_[ieta0] = emean_[ieta0] + Original_Et;
126  emean2[ieta0] = emean2[ieta0] + Original_Et * Original_Et;
127  ntowers[ieta0]++;
128  }
129  }
130 
131  for (map<int, int>::const_iterator gt = geomtowers_.begin(); gt != geomtowers_.end(); gt++) {
132  int it = (*gt).first;
133 
134  double e1 = (*(emean_.find(it))).second;
135  double e2 = (*emean2.find(it)).second;
136  int nt = (*gt).second - (*(ntowersWithJets_.find(it))).second;
137 
138  LogDebug("PileUpSubtractor") << " ieta : " << it << " number of towers : " << nt << " e1 : " << e1 << " e2 : " << e2
139  << "\n";
140  if (nt > 0) {
141  emean_[it] = e1 / nt;
142  double eee = e2 / nt - e1 * e1 / (nt * nt);
143  if (eee < 0.)
144  eee = 0.;
145  esigma_[it] = nSigmaPU_ * sqrt(eee);
146  } else {
147  emean_[it] = 0.;
148  esigma_[it] = 0.;
149  }
150  LogDebug("PileUpSubtractor") << " ieta : " << it << " Pedestals : " << emean_[it] << " " << esigma_[it] << "\n";
151  }
152 }

References StorageManager_cfg::e1, submitPVValidationJobs::gt, mps_fire::i, LEDCalibrationChannels::ieta, LogDebug, nt, edm::second(), and mathSSE::sqrt().

◆ getCone()

double PileUpSubtractor::getCone ( double  cone,
double  eta,
double  phi,
double &  et,
double &  pu 
)
virtual

Definition at line 281 of file PileUpSubtractor.cc.

281  {
282  pu = 0;
283 
284  for (vector<HcalDetId>::const_iterator im = allgeomid_.begin(); im != allgeomid_.end(); im++) {
285  if (im->depth() != 1)
286  continue;
287  const GlobalPoint& point = geo_->getPosition((DetId)(*im));
288  double dr = reco::deltaR(point.eta(), point.phi(), eta, phi);
289  if (dr < cone) {
290  pu += (*emean_.find(im->ieta())).second + (*esigma_.find(im->ieta())).second;
291  }
292  }
293 
294  return pu;
295 }

References reco::deltaR(), flavorHistoryFilter_cfi::dr, PVValHelper::eta, point, and muons2muons_cfi::pu.

◆ getMeanAtTower()

double PileUpSubtractor::getMeanAtTower ( const reco::CandidatePtr in) const
virtual

Reimplemented in ParametrizedSubtractor.

Definition at line 297 of file PileUpSubtractor.cc.

297  {
298  int it = ieta(in);
299  return (*emean_.find(it)).second;
300 }

References LEDCalibrationChannels::ieta, recoMuon::in, and edm::second().

◆ getN()

int PileUpSubtractor::getN ( const reco::CandidatePtr in) const

Definition at line 312 of file PileUpSubtractor.cc.

312  {
313  int it = ieta(in);
314 
315  int n = (*(geomtowers_.find(it))).second - (*(ntowersWithJets_.find(it))).second;
316  return n;
317 }

References LEDCalibrationChannels::ieta, recoMuon::in, and dqmiodumpmetadata::n.

◆ getNwithJets()

int PileUpSubtractor::getNwithJets ( const reco::CandidatePtr in) const

Definition at line 319 of file PileUpSubtractor.cc.

319  {
320  int it = ieta(in);
321  int n = (*(ntowersWithJets_.find(it))).second;
322  return n;
323 }

References LEDCalibrationChannels::ieta, recoMuon::in, and dqmiodumpmetadata::n.

◆ getPileUpAtTower()

double PileUpSubtractor::getPileUpAtTower ( const reco::CandidatePtr in) const
virtual

Reimplemented in ParametrizedSubtractor.

Definition at line 307 of file PileUpSubtractor.cc.

307  {
308  int it = ieta(in);
309  return (*emean_.find(it)).second + (*esigma_.find(it)).second;
310 }

References LEDCalibrationChannels::ieta, recoMuon::in, and edm::second().

◆ getPileUpEnergy()

virtual double PileUpSubtractor::getPileUpEnergy ( int  ijet) const
inlinevirtual

Definition at line 45 of file PileUpSubtractor.h.

45 { return jetOffset_[ijet]; }

References jetOffset_.

◆ getSigmaAtTower()

double PileUpSubtractor::getSigmaAtTower ( const reco::CandidatePtr in) const
virtual

Reimplemented in ParametrizedSubtractor.

Definition at line 302 of file PileUpSubtractor.cc.

302  {
303  int it = ieta(in);
304  return (*esigma_.find(it)).second;
305 }

References LEDCalibrationChannels::ieta, recoMuon::in, and edm::second().

◆ ieta()

int PileUpSubtractor::ieta ( const reco::CandidatePtr in) const

Definition at line 325 of file PileUpSubtractor.cc.

325  {
326  int it = 0;
327  const CaloTower* ctc = dynamic_cast<const CaloTower*>(in.get());
328  if (ctc) {
329  it = ctc->id().ieta();
330  } else {
331  throw cms::Exception("Invalid Constituent") << "CaloJet constituent is not of CaloTower type";
332  }
333  return it;
334 }

References Exception, CaloTower::id(), CaloTowerDetId::ieta(), and recoMuon::in.

Referenced by MultipleAlgoIterator::calculateOrphanInput(), MultipleAlgoIterator::calculatePedestal(), ParametrizedSubtractor::getMeanAtTower(), ParametrizedSubtractor::getPileUpAtTower(), ParametrizedSubtractor::getPU(), ParametrizedSubtractor::getSigmaAtTower(), MultipleAlgoIterator::offsetCorrectJets(), ParametrizedSubtractor::offsetCorrectJets(), MultipleAlgoIterator::subtractPedestal(), and ParametrizedSubtractor::subtractPedestal().

◆ iphi()

int PileUpSubtractor::iphi ( const reco::CandidatePtr in) const

Definition at line 336 of file PileUpSubtractor.cc.

336  {
337  int it = 0;
338  const CaloTower* ctc = dynamic_cast<const CaloTower*>(in.get());
339  if (ctc) {
340  it = ctc->id().iphi();
341  } else {
342  throw cms::Exception("Invalid Constituent") << "CaloJet constituent is not of CaloTower type";
343  }
344  return it;
345 }

References Exception, CaloTower::id(), recoMuon::in, and CaloTowerDetId::iphi().

Referenced by MultipleAlgoIterator::calculateOrphanInput(), MultipleAlgoIterator::subtractPedestal(), and ParametrizedSubtractor::subtractPedestal().

◆ offsetCorrectJets()

void PileUpSubtractor::offsetCorrectJets ( )
virtual

Reimplemented in ParametrizedSubtractor, ReflectedIterator, and MultipleAlgoIterator.

Definition at line 239 of file PileUpSubtractor.cc.

239  {
240  LogDebug("PileUpSubtractor") << "The subtractor correcting jets...\n";
241  jetOffset_.clear();
242  using namespace reco;
243 
244  //
245  // Reestimate energy of jet (energy of jet with initial map)
246  //
247  jetOffset_.reserve(fjJets_->size());
248  vector<fastjet::PseudoJet>::iterator pseudojetTMP = fjJets_->begin(), jetsEnd = fjJets_->end();
249  for (; pseudojetTMP != jetsEnd; ++pseudojetTMP) {
250  int ijet = pseudojetTMP - fjJets_->begin();
251  jetOffset_[ijet] = 0;
252 
253  std::vector<fastjet::PseudoJet> towers = fastjet::sorted_by_pt(pseudojetTMP->constituents());
254  double newjetet = 0.;
255  for (vector<fastjet::PseudoJet>::const_iterator ito = towers.begin(), towEnd = towers.end(); ito != towEnd; ++ito) {
256  const reco::CandidatePtr& originalTower = (*inputs_)[ito->user_index()];
257  int it = ieta(originalTower);
258  double Original_Et = originalTower->et();
259  double etnew = Original_Et - (*emean_.find(it)).second - (*esigma_.find(it)).second;
260  if (etnew < 0.)
261  etnew = 0;
262  newjetet = newjetet + etnew;
263  jetOffset_[ijet] += Original_Et - etnew;
264  }
265  double mScale = newjetet / pseudojetTMP->Et();
266  LogDebug("PileUpSubtractor") << "pseudojetTMP->Et() : " << pseudojetTMP->Et() << '\n';
267  LogDebug("PileUpSubtractor") << "newjetet : " << newjetet << '\n';
268  LogDebug("PileUpSubtractor") << "jetOffset_[ijet] : " << jetOffset_[ijet] << '\n';
269  LogDebug("PileUpSubtractor") << "pseudojetTMP->Et() - jetOffset_[ijet] : " << pseudojetTMP->Et() - jetOffset_[ijet]
270  << '\n';
271  LogDebug("PileUpSubtractor") << "Scale is : " << mScale << '\n';
272  int cshist = pseudojetTMP->cluster_hist_index();
273  pseudojetTMP->reset_momentum(pseudojetTMP->px() * mScale,
274  pseudojetTMP->py() * mScale,
275  pseudojetTMP->pz() * mScale,
276  pseudojetTMP->e() * mScale);
277  pseudojetTMP->set_cluster_hist_index(cshist);
278  }
279 }

References LEDCalibrationChannels::ieta, LogDebug, edm::second(), and HLT_FULL_cff::towers.

◆ reset()

void PileUpSubtractor::reset ( std::vector< edm::Ptr< reco::Candidate > > &  input,
std::vector< fastjet::PseudoJet > &  towers,
std::vector< fastjet::PseudoJet > &  output 
)
virtual

Definition at line 41 of file PileUpSubtractor.cc.

43  {
44  inputs_ = &input;
45  fjInputs_ = &towers;
46  fjJets_ = &output;
47  fjOriginalInputs_ = (*fjInputs_);
48  for (unsigned int i = 0; i < fjInputs_->size(); ++i) {
49  fjOriginalInputs_[i].set_user_index((*fjInputs_)[i].user_index());
50  }
51 }

References mps_fire::i, input, convertSQLitetoXML_cfg::output, and HLT_FULL_cff::towers.

◆ setDefinition()

void PileUpSubtractor::setDefinition ( JetDefPtr const &  jetDef)
virtual

Definition at line 53 of file PileUpSubtractor.cc.

53  {
54  fjJetDefinition_ = std::make_shared<fastjet::JetDefinition>(*jetDef);
55 }

◆ setupGeometryMap()

void PileUpSubtractor::setupGeometryMap ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
virtual

Reimplemented in ParametrizedSubtractor.

Definition at line 57 of file PileUpSubtractor.cc.

57  {
58  LogDebug("PileUpSubtractor") << "The subtractor setting up geometry...\n";
59 
60  if (geo_ == nullptr) {
62  iSetup.get<CaloGeometryRecord>().get(pG);
63  geo_ = pG.product();
64  std::vector<DetId> alldid = geo_->getValidDetIds();
65 
66  int ietaold = -10000;
67  ietamax_ = -10000;
68  ietamin_ = 10000;
69  for (std::vector<DetId>::const_iterator did = alldid.begin(); did != alldid.end(); did++) {
70  if ((*did).det() == DetId::Hcal) {
71  HcalDetId hid = HcalDetId(*did);
72  allgeomid_.push_back(*did);
73 
74  if (hid.ieta() != ietaold) {
75  ietaold = hid.ieta();
76  geomtowers_[hid.ieta()] = 1;
77  if (hid.ieta() > ietamax_)
78  ietamax_ = hid.ieta();
79  if (hid.ieta() < ietamin_)
80  ietamin_ = hid.ieta();
81  } else {
82  geomtowers_[hid.ieta()]++;
83  }
84  }
85  }
86  }
87 
88  for (int i = ietamin_; i < ietamax_ + 1; i++) {
89  ntowersWithJets_[i] = 0;
90  }
91 }

References edm::EventSetup::get(), get, CaloGeometry::getValidDetIds(), DetId::Hcal, mps_fire::i, HcalDetId::ieta(), LogDebug, and edm::ESHandle< T >::product().

◆ subtractPedestal()

void PileUpSubtractor::subtractPedestal ( std::vector< fastjet::PseudoJet > &  coll)
virtual

Reimplemented in ParametrizedSubtractor, ReflectedIterator, and MultipleAlgoIterator.

Definition at line 157 of file PileUpSubtractor.cc.

157  {
158  LogDebug("PileUpSubtractor") << "The subtractor subtracting pedestals...\n";
159 
160  int it = -100;
161  for (vector<fastjet::PseudoJet>::iterator input_object = coll.begin(), fjInputsEnd = coll.end();
162  input_object != fjInputsEnd;
163  ++input_object) {
164  reco::CandidatePtr const& itow = (*inputs_)[input_object->user_index()];
165 
166  it = ieta(itow);
167 
168  double etnew = itow->et() - (*(emean_.find(it))).second - (*(esigma_.find(it))).second;
169  float mScale = etnew / input_object->Et();
170  if (etnew < 0.)
171  mScale = 0.;
172 
173  math::XYZTLorentzVectorD towP4(input_object->px() * mScale,
174  input_object->py() * mScale,
175  input_object->pz() * mScale,
176  input_object->e() * mScale);
177 
178  int index = input_object->user_index();
179  input_object->reset_momentum(towP4.px(), towP4.py(), towP4.pz(), towP4.energy());
180  input_object->set_user_index(index);
181  }
182 }

References LEDCalibrationChannels::ieta, and LogDebug.

Member Data Documentation

◆ activeAreaRepeats

int PileUpSubtractor::activeAreaRepeats
protected

Definition at line 70 of file PileUpSubtractor.h.

◆ allgeomid_

std::vector<HcalDetId> PileUpSubtractor::allgeomid_
protected

◆ doAreaFastjet_

bool PileUpSubtractor::doAreaFastjet_
protected

◆ doRhoFastjet_

bool PileUpSubtractor::doRhoFastjet_
protected

◆ emean_

std::map<int, double> PileUpSubtractor::emean_
protected

◆ esigma_

std::map<int, double> PileUpSubtractor::esigma_
protected

◆ fjActiveArea_

ActiveAreaSpecPtr PileUpSubtractor::fjActiveArea_
protected

◆ fjClusterSeq_

ClusterSequencePtr PileUpSubtractor::fjClusterSeq_
protected

◆ fjInputs_

std::vector<fastjet::PseudoJet>* PileUpSubtractor::fjInputs_
protected

◆ fjJetDefinition_

JetDefPtr PileUpSubtractor::fjJetDefinition_
protected

Definition at line 55 of file PileUpSubtractor.h.

Referenced by MultipleAlgoIterator::offsetCorrectJets().

◆ fjJets_

std::vector<fastjet::PseudoJet>* PileUpSubtractor::fjJets_
protected

◆ fjOriginalInputs_

std::vector<fastjet::PseudoJet> PileUpSubtractor::fjOriginalInputs_
protected

◆ geo_

CaloGeometry const* PileUpSubtractor::geo_
protected

◆ geomtowers_

std::map<int, int> PileUpSubtractor::geomtowers_
protected

◆ ghostArea

double PileUpSubtractor::ghostArea
protected

Definition at line 71 of file PileUpSubtractor.h.

◆ ghostEtaMax

double PileUpSubtractor::ghostEtaMax
protected

Definition at line 69 of file PileUpSubtractor.h.

◆ ietamax_

int PileUpSubtractor::ietamax_
protected

◆ ietamin_

int PileUpSubtractor::ietamin_
protected

◆ inputs_

std::vector<edm::Ptr<reco::Candidate> >* PileUpSubtractor::inputs_
protected

Definition at line 57 of file PileUpSubtractor.h.

Referenced by MultipleAlgoIterator::calculateOrphanInput().

◆ jetOffset_

std::vector<double> PileUpSubtractor::jetOffset_
protected

◆ jetPtMin_

double PileUpSubtractor::jetPtMin_
protected

◆ nSigmaPU_

double PileUpSubtractor::nSigmaPU_
protected

◆ ntowersWithJets_

std::map<int, int> PileUpSubtractor::ntowersWithJets_
protected

◆ puPtMin_

double PileUpSubtractor::puPtMin_
protected

Definition at line 67 of file PileUpSubtractor.h.

Referenced by MultipleAlgoIterator::calculateOrphanInput().

◆ radiusPU_

double PileUpSubtractor::radiusPU_
protected

Definition at line 74 of file PileUpSubtractor.h.

Referenced by MultipleAlgoIterator::calculateOrphanInput().

◆ reRunAlgo_

bool PileUpSubtractor::reRunAlgo_
protected

Definition at line 63 of file PileUpSubtractor.h.

reco::Candidate::energy
virtual double energy() const =0
energy
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
HLT_FULL_cff.towers
towers
Definition: HLT_FULL_cff.py:36362
PileUpSubtractor::ieta
int ieta(const reco::CandidatePtr &in) const
Definition: PileUpSubtractor.cc:325
PileUpSubtractor::iphi
int iphi(const reco::CandidatePtr &in) const
Definition: PileUpSubtractor.cc:336
mps_fire.i
i
Definition: mps_fire.py:428
input
static const std::string input
Definition: EdmProvDump.cc:48
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
nt
int nt
Definition: AMPTWrapper.h:42
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:72
CaloGeometry::getPosition
GlobalPoint getPosition(const DetId &id) const
Get the position of a given detector id.
Definition: CaloGeometry.cc:50
PileUpSubtractor::ghostArea
double ghostArea
Definition: PileUpSubtractor.h:71
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
PileUpSubtractor::puPtMin_
double puPtMin_
Definition: PileUpSubtractor.h:67
math::XYZTLorentzVectorD
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:14
DetId::Hcal
Definition: DetId.h:28
CaloTower::id
CaloTowerDetId id() const
Definition: CaloTower.h:123
PileUpSubtractor::doRhoFastjet_
bool doRhoFastjet_
Definition: PileUpSubtractor.h:65
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:222
PileUpSubtractor::allgeomid_
std::vector< HcalDetId > allgeomid_
Definition: PileUpSubtractor.h:79
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
PileUpSubtractor::fjActiveArea_
ActiveAreaSpecPtr fjActiveArea_
Definition: PileUpSubtractor.h:75
DetId
Definition: DetId.h:17
reco::Candidate::pz
virtual double pz() const =0
z coordinate of momentum vector
edm::EventSetup::get
T get() const
Definition: EventSetup.h:80
submitPVValidationJobs.gt
list gt
Definition: submitPVValidationJobs.py:663
PVValHelper::eta
Definition: PVValidationHelpers.h:69
PileUpSubtractor::doAreaFastjet_
bool doAreaFastjet_
Definition: PileUpSubtractor.h:64
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
edm::ESHandle< CaloGeometry >
Point3DBase< float, GlobalTag >
PileUpSubtractor::geo_
CaloGeometry const * geo_
Definition: PileUpSubtractor.h:76
reco::Candidate::py
virtual double py() const =0
y coordinate of momentum vector
PileUpSubtractor::jetOffset_
std::vector< double > jetOffset_
Definition: PileUpSubtractor.h:85
HcalDetId::ieta
constexpr int ieta() const
get the cell ieta
Definition: HcalDetId.h:155
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:223
PileUpSubtractor::fjOriginalInputs_
std::vector< fastjet::PseudoJet > fjOriginalInputs_
Definition: PileUpSubtractor.h:60
PileUpSubtractor::fjJets_
std::vector< fastjet::PseudoJet > * fjJets_
Definition: PileUpSubtractor.h:59
recoMuon::in
Definition: RecoMuonEnumerators.h:6
PileUpSubtractor::fjJetDefinition_
JetDefPtr fjJetDefinition_
Definition: PileUpSubtractor.h:55
StorageManager_cfg.e1
e1
Definition: StorageManager_cfg.py:16
HcalDetId
Definition: HcalDetId.h:12
PileUpSubtractor::geomtowers_
std::map< int, int > geomtowers_
Definition: PileUpSubtractor.h:80
CaloTower
Definition: CaloTower.h:26
PileUpSubtractor::esigma_
std::map< int, double > esigma_
Definition: PileUpSubtractor.h:82
get
#define get
edm::Ptr< Candidate >
CaloTowerDetId::iphi
int iphi() const
get the tower iphi
Definition: CaloTowerDetId.cc:30
DDAxes::phi
PileUpSubtractor::ghostEtaMax
double ghostEtaMax
Definition: PileUpSubtractor.h:69
PileUpSubtractor::fjInputs_
std::vector< fastjet::PseudoJet > * fjInputs_
Definition: PileUpSubtractor.h:58
PileUpSubtractor::ietamin_
int ietamin_
Definition: PileUpSubtractor.h:78
CaloGeometry::getValidDetIds
std::vector< DetId > getValidDetIds() const
Get the list of all valid detector ids.
Definition: CaloGeometry.cc:75
CaloTowerDetId::ieta
int ieta() const
get the tower ieta
Definition: CaloTowerDetId.h:30
PileUpSubtractor::ietamax_
int ietamax_
Definition: PileUpSubtractor.h:77
reco::Candidate::px
virtual double px() const =0
x coordinate of momentum vector
PileUpSubtractor::nSigmaPU_
double nSigmaPU_
Definition: PileUpSubtractor.h:73
PileUpSubtractor::inputs_
std::vector< edm::Ptr< reco::Candidate > > * inputs_
Definition: PileUpSubtractor.h:57
flavorHistoryFilter_cfi.dr
dr
Definition: flavorHistoryFilter_cfi.py:37
Exception
Definition: hltDiff.cc:246
PileUpSubtractor::jetPtMin_
double jetPtMin_
Definition: PileUpSubtractor.h:66
reco::deltaR
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Definition: deltaR.h:30
PileUpSubtractor::activeAreaRepeats
int activeAreaRepeats
Definition: PileUpSubtractor.h:70
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
muons2muons_cfi.pu
pu
Definition: muons2muons_cfi.py:31
point
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
PileUpSubtractor::ntowersWithJets_
std::map< int, int > ntowersWithJets_
Definition: PileUpSubtractor.h:81
PileUpSubtractor::radiusPU_
double radiusPU_
Definition: PileUpSubtractor.h:74
PileUpSubtractor::emean_
std::map< int, double > emean_
Definition: PileUpSubtractor.h:83
reco::Candidate::et
virtual double et() const =0
transverse energy