CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
ParametrizedSubtractor Class Reference

#include <ParametrizedSubtractor.h>

Inheritance diagram for ParametrizedSubtractor:
PileUpSubtractor

Public Member Functions

void calculateOrphanInput (std::vector< fastjet::PseudoJet > &orphanInput) override
 
void calculatePedestal (std::vector< fastjet::PseudoJet > const &coll) override
 
double getEt (const reco::CandidatePtr &in) const
 
double getEta (const reco::CandidatePtr &in) const
 
double getMeanAtTower (const reco::CandidatePtr &in) const override
 
double getPileUpAtTower (const reco::CandidatePtr &in) const override
 
double getPU (int ieta, bool addMean, bool addSigma) const
 
double getSigmaAtTower (const reco::CandidatePtr &in) const override
 
void offsetCorrectJets () override
 
 ParametrizedSubtractor (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
 
void rescaleRMS (double s)
 
void setupGeometryMap (edm::Event &iEvent, const edm::EventSetup &iSetup) override
 
void subtractPedestal (std::vector< fastjet::PseudoJet > &coll) override
 
 ~ParametrizedSubtractor () override
 
- Public Member Functions inherited from PileUpSubtractor
virtual double getCone (double cone, double eta, double phi, double &et, double &pu)
 
int getN (const reco::CandidatePtr &in) const
 
int getNwithJets (const reco::CandidatePtr &in) const
 
virtual double getPileUpEnergy (int ijet) const
 
int ieta (const reco::CandidatePtr &in) const
 
int iphi (const reco::CandidatePtr &in) const
 
 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 ~PileUpSubtractor ()
 

Public Attributes

int bin_
 
const CentralityBinscbins_
 
double centrality_
 
edm::EDGetTokenT< reco::CentralitycentTag_
 
bool dropZeroTowers_
 
TF1 * fMean
 
TF1 * fPU
 
TF1 * fRMS
 
TH1D * hC
 
std::vector< TH1D * > hEta
 
std::vector< TH1D * > hEtaMean
 
std::vector< TH1D * > hEtaRMS
 
bool interpolate_
 
bool sumRecHits_
 

Additional Inherited Members

- Public Types inherited from PileUpSubtractor
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
 
- Protected Attributes inherited from PileUpSubtractor
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 14 of file ParametrizedSubtractor.h.

Constructor & Destructor Documentation

◆ ParametrizedSubtractor()

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

Definition at line 23 of file ParametrizedSubtractor.cc.

24  : PileUpSubtractor(iConfig, std::move(iC)),
25  dropZeroTowers_(iConfig.getUntrackedParameter<bool>("dropZeroTowers", true)),
26  cbins_(nullptr) {
28  iConfig.getUntrackedParameter<edm::InputTag>("centTag", edm::InputTag("hiCentrality", "", "RECO")));
29 
30  interpolate_ = iConfig.getParameter<bool>("interpolate");
31  sumRecHits_ = iConfig.getParameter<bool>("sumRecHits");
32 
33  std::string ifname = "RecoHI/HiJetAlgos/data/PU_DATA.root";
34  TFile* inf = new TFile(edm::FileInPath(ifname).fullPath().data());
35  fPU = (TF1*)inf->Get("fPU");
36  fMean = (TF1*)inf->Get("fMean");
37  fRMS = (TF1*)inf->Get("fRMS");
38  hC = (TH1D*)inf->Get("hC");
39 
40  for (int i = 0; i < 40; ++i) {
41  hEta.push_back((TH1D*)inf->Get(Form("hEta_%d", i)));
42  hEtaMean.push_back((TH1D*)inf->Get(Form("hEtaMean_%d", i)));
43  hEtaRMS.push_back((TH1D*)inf->Get(Form("hEtaRMS_%d", i)));
44  }
45 }

References centTag_, data, fMean, fPU, fRMS, contentValuesFiles::fullPath, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), hC, hEta, hEtaMean, hEtaRMS, mps_fire::i, dqmiodatasetharvest::inf, HLT_2018_cff::InputTag, interpolate_, AlCaHLTBitMon_QueryRunRegistry::string, sumRecHits_, and tools::TF1.

◆ ~ParametrizedSubtractor()

ParametrizedSubtractor::~ParametrizedSubtractor ( )
inlineoverride

Definition at line 30 of file ParametrizedSubtractor.h.

30 { ; }

Member Function Documentation

◆ calculateOrphanInput()

void ParametrizedSubtractor::calculateOrphanInput ( std::vector< fastjet::PseudoJet > &  orphanInput)
overridevirtual

Reimplemented from PileUpSubtractor.

Definition at line 147 of file ParametrizedSubtractor.cc.

147 { orphanInput = *fjInputs_; }

References PileUpSubtractor::fjInputs_.

◆ calculatePedestal()

void ParametrizedSubtractor::calculatePedestal ( std::vector< fastjet::PseudoJet > const &  coll)
overridevirtual

Reimplemented from PileUpSubtractor.

Definition at line 102 of file ParametrizedSubtractor.cc.

102 { return; }

◆ getEt()

double ParametrizedSubtractor::getEt ( const reco::CandidatePtr in) const

Definition at line 210 of file ParametrizedSubtractor.cc.

210  {
211  const CaloTower* ctc = dynamic_cast<const CaloTower*>(in.get());
212  const GlobalPoint& pos = geo_->getPosition(ctc->id());
213  double energy = ctc->emEnergy() + ctc->hadEnergy();
214 
215  if (false) {
216  energy = 0;
217  const std::vector<DetId>& hitids = ctc->constituents();
218  for (unsigned int i = 0; i < hitids.size(); ++i) {
219  }
220  }
221 
222  double et = energy * sin(pos.theta());
223  return et;
224 }

References CaloTower::constituents(), CaloTower::emEnergy(), HCALHighEnergyHPDFilter_cfi::energy, EgHLTOffHistBins_cfi::et, PileUpSubtractor::geo_, CaloGeometry::getPosition(), CaloTower::hadEnergy(), mps_fire::i, CaloTower::id(), recoMuon::in, and funct::sin().

Referenced by offsetCorrectJets(), and subtractPedestal().

◆ getEta()

double ParametrizedSubtractor::getEta ( const reco::CandidatePtr in) const

Definition at line 226 of file ParametrizedSubtractor.cc.

226  {
227  const CaloTower* ctc = dynamic_cast<const CaloTower*>(in.get());
228  const GlobalPoint& pos = geo_->getPosition(ctc->id());
229  double eta = pos.eta();
230  return eta;
231 }

References PVValHelper::eta, PileUpSubtractor::geo_, CaloGeometry::getPosition(), CaloTower::id(), and recoMuon::in.

◆ getMeanAtTower()

double ParametrizedSubtractor::getMeanAtTower ( const reco::CandidatePtr in) const
overridevirtual

Reimplemented from PileUpSubtractor.

Definition at line 233 of file ParametrizedSubtractor.cc.

233  {
234  int it = ieta(in);
235  return getPU(it, true, false);
236 }

References getPU(), PileUpSubtractor::ieta(), and recoMuon::in.

◆ getPileUpAtTower()

double ParametrizedSubtractor::getPileUpAtTower ( const reco::CandidatePtr in) const
overridevirtual

Reimplemented from PileUpSubtractor.

Definition at line 243 of file ParametrizedSubtractor.cc.

243  {
244  int it = ieta(in);
245  return getPU(it, true, true);
246 }

References getPU(), PileUpSubtractor::ieta(), and recoMuon::in.

◆ getPU()

double ParametrizedSubtractor::getPU ( int  ieta,
bool  addMean,
bool  addSigma 
) const

Definition at line 248 of file ParametrizedSubtractor.cc.

248  {
249  //double e = hEta[bin_]->GetBinContent(hEta[bin_]->FindBin(ieta));
250  //double c = fPU->Eval(centrality_);
251 
252  double em = hEtaMean[bin_]->GetBinContent(hEtaMean[bin_]->FindBin(ieta));
253  double cm = fMean->Eval(centrality_);
254 
255  double er = hEtaRMS[bin_]->GetBinContent(hEtaRMS[bin_]->FindBin(ieta));
256  double cr = fRMS->Eval(centrality_);
257 
258  if (interpolate_) {
259  double n = 0;
260  int hbin = 40 - bin_;
261  double centerweight = (centrality_ - hC->GetBinCenter(hbin));
262  double lowerweight = (centrality_ - hC->GetBinLowEdge(hbin));
263  double upperweight = (centrality_ - hC->GetBinLowEdge(hbin + 1));
264 
265  em *= lowerweight * upperweight;
266  er *= lowerweight * upperweight;
267  n += lowerweight * upperweight;
268 
269  if (bin_ > 0) {
270  em += upperweight * centerweight * hEtaMean[bin_]->GetBinContent(hEtaMean[bin_ - 1]->FindBin(ieta));
271  er += upperweight * centerweight * hEtaRMS[bin_]->GetBinContent(hEtaRMS[bin_ - 1]->FindBin(ieta));
272  n += upperweight * centerweight;
273  }
274 
275  if (bin_ < 39) {
276  em += lowerweight * centerweight * hEtaMean[bin_]->GetBinContent(hEtaMean[bin_ + 1]->FindBin(ieta));
277  er += lowerweight * centerweight * hEtaRMS[bin_]->GetBinContent(hEtaRMS[bin_ + 1]->FindBin(ieta));
278  n += lowerweight * centerweight;
279  }
280  em /= n;
281  er /= n;
282  }
283 
284  // return e*c;
285  return addMean * em * cm + addSigma * nSigmaPU_ * er * cr;
286 }

References bin_, centrality_, fMean, fRMS, hC, hEtaMean, hEtaRMS, PileUpSubtractor::ieta(), interpolate_, dqmiodumpmetadata::n, and PileUpSubtractor::nSigmaPU_.

Referenced by getMeanAtTower(), getPileUpAtTower(), getSigmaAtTower(), offsetCorrectJets(), and subtractPedestal().

◆ getSigmaAtTower()

double ParametrizedSubtractor::getSigmaAtTower ( const reco::CandidatePtr in) const
overridevirtual

Reimplemented from PileUpSubtractor.

Definition at line 238 of file ParametrizedSubtractor.cc.

238  {
239  int it = ieta(in);
240  return getPU(it, false, true);
241 }

References getPU(), PileUpSubtractor::ieta(), and recoMuon::in.

◆ offsetCorrectJets()

void ParametrizedSubtractor::offsetCorrectJets ( )
overridevirtual

Reimplemented from PileUpSubtractor.

Definition at line 149 of file ParametrizedSubtractor.cc.

149  {
150  LogDebug("PileUpSubtractor") << "The subtractor correcting jets...\n";
151  jetOffset_.clear();
152 
153  using namespace reco;
154 
155  (*fjInputs_) = fjOriginalInputs_;
158 
159  if (false) {
160  const fastjet::JetDefinition& def = fjClusterSeq_->jet_def();
161  if (!doAreaFastjet_ && !doRhoFastjet_) {
162  fastjet::ClusterSequence newseq(*fjInputs_, def);
163  (*fjClusterSeq_) = newseq;
164  } else {
165  fastjet::ClusterSequenceArea newseq(*fjInputs_, def, *fjActiveArea_);
166  (*fjClusterSeq_) = newseq;
167  }
168 
169  (*fjJets_) = fastjet::sorted_by_pt(fjClusterSeq_->inclusive_jets(jetPtMin_));
170  }
171 
172  jetOffset_.reserve(fjJets_->size());
173 
174  vector<fastjet::PseudoJet>::iterator pseudojetTMP = fjJets_->begin(), jetsEnd = fjJets_->end();
175  for (; pseudojetTMP != jetsEnd; ++pseudojetTMP) {
176  int ijet = pseudojetTMP - fjJets_->begin();
177  jetOffset_[ijet] = 0;
178 
179  std::vector<fastjet::PseudoJet> towers = sorted_by_pt(fjClusterSeq_->constituents(*pseudojetTMP));
180 
181  double newjetet = 0.;
182  for (vector<fastjet::PseudoJet>::const_iterator ito = towers.begin(), towEnd = towers.end(); ito != towEnd; ++ito) {
183  const reco::CandidatePtr& originalTower = (*inputs_)[ito->user_index()];
184  int it = ieta(originalTower);
185  double Original_Et = originalTower->et();
186 
187  if (sumRecHits_) {
188  Original_Et = getEt(originalTower);
189  }
190 
191  double etnew = Original_Et - getPU(it, true, true);
192  if (etnew < 0.)
193  etnew = 0;
194  newjetet = newjetet + etnew;
195  jetOffset_[ijet] += Original_Et - etnew;
196  }
197 
198  if (sumRecHits_) {
199  double mScale = newjetet / pseudojetTMP->Et();
200  int cshist = pseudojetTMP->cluster_hist_index();
201  pseudojetTMP->reset(pseudojetTMP->px() * mScale,
202  pseudojetTMP->py() * mScale,
203  pseudojetTMP->pz() * mScale,
204  pseudojetTMP->e() * mScale);
205  pseudojetTMP->set_cluster_hist_index(cshist);
206  }
207  }
208 }

References spu::def(), PileUpSubtractor::doAreaFastjet_, PileUpSubtractor::doRhoFastjet_, PileUpSubtractor::fjActiveArea_, PileUpSubtractor::fjClusterSeq_, PileUpSubtractor::fjInputs_, PileUpSubtractor::fjJets_, PileUpSubtractor::fjOriginalInputs_, getEt(), getPU(), PileUpSubtractor::ieta(), PileUpSubtractor::jetOffset_, PileUpSubtractor::jetPtMin_, LogDebug, PileUpSubtractor::nSigmaPU_, rescaleRMS(), subtractPedestal(), sumRecHits_, and HLT_2018_cff::towers.

◆ rescaleRMS()

void ParametrizedSubtractor::rescaleRMS ( double  s)

Definition at line 17 of file ParametrizedSubtractor.cc.

17  {
18  for (std::map<int, double>::iterator iter = esigma_.begin(); iter != esigma_.end(); ++iter) {
19  iter->second = s * (iter->second);
20  }
21 }

References alignCSCRings::s.

Referenced by offsetCorrectJets().

◆ setupGeometryMap()

void ParametrizedSubtractor::setupGeometryMap ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overridevirtual

Reimplemented from PileUpSubtractor.

Definition at line 47 of file ParametrizedSubtractor.cc.

47  {
48  LogDebug("PileUpSubtractor") << "The subtractor setting up geometry...\n";
49 
50  // The function below that is commented out was deleted from
51  // DataFormats/HeavyIonEvent/src/Centrality.cc
52  // in June 2015. See comments associated with that commit.
53  // if(!cbins_) getCentralityBinsFromDB(iSetup);
54 
56  iEvent.getByToken(centTag_, cent);
57 
58  centrality_ = cent->EtHFhitSum();
59  bin_ = 40 - hC->FindBin(centrality_);
60  if (bin_ > 39)
61  bin_ = 39;
62  if (bin_ < 0)
63  bin_ = 0;
64 
65  if (!geo_) {
67  iSetup.get<CaloGeometryRecord>().get(pG);
68  geo_ = pG.product();
69  std::vector<DetId> alldid = geo_->getValidDetIds();
70 
71  int ietaold = -10000;
72  ietamax_ = -10000;
73  ietamin_ = 10000;
74  for (std::vector<DetId>::const_iterator did = alldid.begin(); did != alldid.end(); did++) {
75  if ((*did).det() == DetId::Hcal) {
76  HcalDetId hid = HcalDetId(*did);
77  if ((hid).depth() == 1) {
78  allgeomid_.push_back(*did);
79 
80  if ((hid).ieta() != ietaold) {
81  ietaold = (hid).ieta();
82  geomtowers_[(hid).ieta()] = 1;
83  if ((hid).ieta() > ietamax_)
84  ietamax_ = (hid).ieta();
85  if ((hid).ieta() < ietamin_)
86  ietamin_ = (hid).ieta();
87  } else {
88  geomtowers_[(hid).ieta()]++;
89  }
90  }
91  }
92  }
93  }
94 
95  for (int i = ietamin_; i < ietamax_ + 1; i++) {
96  emean_[i] = 0.;
97  esigma_[i] = 0.;
98  ntowersWithJets_[i] = 0;
99  }
100 }

References PileUpSubtractor::allgeomid_, bin_, centrality_, centTag_, LEDCalibrationChannels::depth, PileUpSubtractor::emean_, PileUpSubtractor::esigma_, reco::Centrality::EtHFhitSum(), PileUpSubtractor::geo_, PileUpSubtractor::geomtowers_, edm::EventSetup::get(), get, CaloGeometry::getValidDetIds(), hC, DetId::Hcal, mps_fire::i, PileUpSubtractor::ieta(), PileUpSubtractor::ietamax_, PileUpSubtractor::ietamin_, iEvent, LogDebug, PileUpSubtractor::ntowersWithJets_, and edm::ESHandle< T >::product().

◆ subtractPedestal()

void ParametrizedSubtractor::subtractPedestal ( std::vector< fastjet::PseudoJet > &  coll)
overridevirtual

Reimplemented from PileUpSubtractor.

Definition at line 104 of file ParametrizedSubtractor.cc.

104  {
105  if (false) {
106  return;
107  } else {
108  LogDebug("PileUpSubtractor") << "The subtractor subtracting pedestals...\n";
109 
110  int it = -100;
111  vector<fastjet::PseudoJet> newcoll;
112 
113  for (vector<fastjet::PseudoJet>::iterator input_object = coll.begin(), fjInputsEnd = coll.end();
114  input_object != fjInputsEnd;
115  ++input_object) {
116  reco::CandidatePtr const& itow = (*inputs_)[input_object->user_index()];
117 
118  it = ieta(itow);
119  iphi(itow);
120 
121  double Original_Et = itow->et();
122  if (sumRecHits_) {
123  Original_Et = getEt(itow);
124  }
125 
126  double etnew = Original_Et - getPU(it, true, true);
127  float mScale = etnew / input_object->Et();
128  if (etnew < 0.)
129  mScale = 0.;
130 
131  math::XYZTLorentzVectorD towP4(input_object->px() * mScale,
132  input_object->py() * mScale,
133  input_object->pz() * mScale,
134  input_object->e() * mScale);
135 
136  int index = input_object->user_index();
137  input_object->reset(towP4.px(), towP4.py(), towP4.pz(), towP4.energy());
138  input_object->set_user_index(index);
139  if (etnew > 0. && dropZeroTowers_)
140  newcoll.push_back(*input_object);
141  }
142  if (dropZeroTowers_)
143  coll = newcoll;
144  }
145 }

References dropZeroTowers_, getEt(), getPU(), PileUpSubtractor::ieta(), PileUpSubtractor::iphi(), LogDebug, and sumRecHits_.

Referenced by offsetCorrectJets().

Member Data Documentation

◆ bin_

int ParametrizedSubtractor::bin_

Definition at line 35 of file ParametrizedSubtractor.h.

Referenced by getPU(), and setupGeometryMap().

◆ cbins_

const CentralityBins* ParametrizedSubtractor::cbins_

Definition at line 37 of file ParametrizedSubtractor.h.

◆ centrality_

double ParametrizedSubtractor::centrality_

Definition at line 36 of file ParametrizedSubtractor.h.

Referenced by getPU(), and setupGeometryMap().

◆ centTag_

edm::EDGetTokenT<reco::Centrality> ParametrizedSubtractor::centTag_

Definition at line 38 of file ParametrizedSubtractor.h.

Referenced by ParametrizedSubtractor(), and setupGeometryMap().

◆ dropZeroTowers_

bool ParametrizedSubtractor::dropZeroTowers_

Definition at line 34 of file ParametrizedSubtractor.h.

Referenced by subtractPedestal().

◆ fMean

TF1* ParametrizedSubtractor::fMean

Definition at line 44 of file ParametrizedSubtractor.h.

Referenced by getPU(), and ParametrizedSubtractor().

◆ fPU

TF1* ParametrizedSubtractor::fPU

Definition at line 43 of file ParametrizedSubtractor.h.

Referenced by ParametrizedSubtractor().

◆ fRMS

TF1* ParametrizedSubtractor::fRMS

Definition at line 45 of file ParametrizedSubtractor.h.

Referenced by getPU(), and ParametrizedSubtractor().

◆ hC

TH1D* ParametrizedSubtractor::hC

Definition at line 46 of file ParametrizedSubtractor.h.

Referenced by getPU(), ParametrizedSubtractor(), and setupGeometryMap().

◆ hEta

std::vector<TH1D*> ParametrizedSubtractor::hEta

Definition at line 39 of file ParametrizedSubtractor.h.

Referenced by ParametrizedSubtractor().

◆ hEtaMean

std::vector<TH1D*> ParametrizedSubtractor::hEtaMean

Definition at line 40 of file ParametrizedSubtractor.h.

Referenced by getPU(), and ParametrizedSubtractor().

◆ hEtaRMS

std::vector<TH1D*> ParametrizedSubtractor::hEtaRMS

Definition at line 41 of file ParametrizedSubtractor.h.

Referenced by getPU(), and ParametrizedSubtractor().

◆ interpolate_

bool ParametrizedSubtractor::interpolate_

Definition at line 33 of file ParametrizedSubtractor.h.

Referenced by getPU(), and ParametrizedSubtractor().

◆ sumRecHits_

bool ParametrizedSubtractor::sumRecHits_
ParametrizedSubtractor::hEta
std::vector< TH1D * > hEta
Definition: ParametrizedSubtractor.h:39
CaloTower::emEnergy
double emEnergy() const
Definition: CaloTower.h:134
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
PileUpSubtractor::ieta
int ieta(const reco::CandidatePtr &in) const
Definition: PileUpSubtractor.cc:327
PileUpSubtractor::iphi
int iphi(const reco::CandidatePtr &in) const
Definition: PileUpSubtractor.cc:338
mps_fire.i
i
Definition: mps_fire.py:355
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
CaloGeometry::getPosition
GlobalPoint getPosition(const DetId &id) const
Get the position of a given detector id.
Definition: CaloGeometry.cc:50
contentValuesFiles.fullPath
fullPath
Definition: contentValuesFiles.py:64
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
reco::Centrality::EtHFhitSum
double EtHFhitSum() const
Definition: Centrality.h:21
math::XYZTLorentzVectorD
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:14
pos
Definition: PixelAliasList.h:18
DetId::Hcal
Definition: DetId.h:28
ParametrizedSubtractor::getPU
double getPU(int ieta, bool addMean, bool addSigma) const
Definition: ParametrizedSubtractor.cc:248
ParametrizedSubtractor::getEt
double getEt(const reco::CandidatePtr &in) const
Definition: ParametrizedSubtractor.cc:210
CaloTower::id
CaloTowerDetId id() const
Definition: CaloTower.h:127
PileUpSubtractor::doRhoFastjet_
bool doRhoFastjet_
Definition: PileUpSubtractor.h:65
ParametrizedSubtractor::interpolate_
bool interpolate_
Definition: ParametrizedSubtractor.h:33
ParametrizedSubtractor::fMean
TF1 * fMean
Definition: ParametrizedSubtractor.h:44
ParametrizedSubtractor::subtractPedestal
void subtractPedestal(std::vector< fastjet::PseudoJet > &coll) override
Definition: ParametrizedSubtractor.cc:104
PileUpSubtractor::allgeomid_
std::vector< HcalDetId > allgeomid_
Definition: PileUpSubtractor.h:79
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
tools.TF1
TF1
Definition: tools.py:23
edm::Handle< reco::Centrality >
funct::sin
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
PileUpSubtractor::fjActiveArea_
ActiveAreaSpecPtr fjActiveArea_
Definition: PileUpSubtractor.h:75
edm::FileInPath
Definition: FileInPath.h:64
alignCSCRings.s
s
Definition: alignCSCRings.py:92
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
PVValHelper::eta
Definition: PVValidationHelpers.h:69
PileUpSubtractor::doAreaFastjet_
bool doAreaFastjet_
Definition: PileUpSubtractor.h:64
CaloTower::hadEnergy
double hadEnergy() const
Definition: CaloTower.h:135
PileUpSubtractor::PileUpSubtractor
PileUpSubtractor(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
Definition: PileUpSubtractor.cc:20
edm::ESHandle< CaloGeometry >
CaloTower::constituents
const std::vector< DetId > & constituents() const
Definition: CaloTower.h:128
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:49
ParametrizedSubtractor::rescaleRMS
void rescaleRMS(double s)
Definition: ParametrizedSubtractor.cc:17
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
ParametrizedSubtractor::dropZeroTowers_
bool dropZeroTowers_
Definition: ParametrizedSubtractor.h:34
Point3DBase< float, GlobalTag >
PileUpSubtractor::geo_
CaloGeometry const * geo_
Definition: PileUpSubtractor.h:76
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
ParametrizedSubtractor::bin_
int bin_
Definition: ParametrizedSubtractor.h:35
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PileUpSubtractor::jetOffset_
std::vector< double > jetOffset_
Definition: PileUpSubtractor.h:85
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:670
PileUpSubtractor::fjOriginalInputs_
std::vector< fastjet::PseudoJet > fjOriginalInputs_
Definition: PileUpSubtractor.h:60
ParametrizedSubtractor::fRMS
TF1 * fRMS
Definition: ParametrizedSubtractor.h:45
PileUpSubtractor::fjJets_
std::vector< fastjet::PseudoJet > * fjJets_
Definition: PileUpSubtractor.h:59
recoMuon::in
Definition: RecoMuonEnumerators.h:6
HcalDetId
Definition: HcalDetId.h:12
PileUpSubtractor::geomtowers_
std::map< int, int > geomtowers_
Definition: PileUpSubtractor.h:80
iEvent
int iEvent
Definition: GenABIO.cc:224
ParametrizedSubtractor::hEtaRMS
std::vector< TH1D * > hEtaRMS
Definition: ParametrizedSubtractor.h:41
CaloTower
Definition: CaloTower.h:26
PileUpSubtractor::esigma_
std::map< int, double > esigma_
Definition: PileUpSubtractor.h:82
reco::Centrality
Definition: Centrality.h:11
EgHLTOffHistBins_cfi.et
et
Definition: EgHLTOffHistBins_cfi.py:8
get
#define get
edm::Ptr< Candidate >
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
PileUpSubtractor::fjInputs_
std::vector< fastjet::PseudoJet > * fjInputs_
Definition: PileUpSubtractor.h:58
HLT_2018_cff.towers
towers
Definition: HLT_2018_cff.py:35030
ParametrizedSubtractor::fPU
TF1 * fPU
Definition: ParametrizedSubtractor.h:43
eostools.move
def move(src, dest)
Definition: eostools.py:511
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
dqmiodatasetharvest.inf
inf
Definition: dqmiodatasetharvest.py:38
PileUpSubtractor::ietamax_
int ietamax_
Definition: PileUpSubtractor.h:77
PileUpSubtractor::nSigmaPU_
double nSigmaPU_
Definition: PileUpSubtractor.h:73
PileUpSubtractor::jetPtMin_
double jetPtMin_
Definition: PileUpSubtractor.h:66
ParametrizedSubtractor::hC
TH1D * hC
Definition: ParametrizedSubtractor.h:46
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
ParametrizedSubtractor::centTag_
edm::EDGetTokenT< reco::Centrality > centTag_
Definition: ParametrizedSubtractor.h:38
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
spu::def
int def(FILE *, FILE *, int)
Definition: SherpackUtilities.cc:14
PileUpSubtractor::ntowersWithJets_
std::map< int, int > ntowersWithJets_
Definition: PileUpSubtractor.h:81
ParametrizedSubtractor::hEtaMean
std::vector< TH1D * > hEtaMean
Definition: ParametrizedSubtractor.h:40
edm::InputTag
Definition: InputTag.h:15
PileUpSubtractor::emean_
std::map< int, double > emean_
Definition: PileUpSubtractor.h:83
ParametrizedSubtractor::sumRecHits_
bool sumRecHits_
Definition: ParametrizedSubtractor.h:32
PileUpSubtractor::fjClusterSeq_
ClusterSequencePtr fjClusterSeq_
Definition: PileUpSubtractor.h:56
reco::Candidate::et
virtual double et() const =0
transverse energy
ParametrizedSubtractor::centrality_
double centrality_
Definition: ParametrizedSubtractor.h:36
ParametrizedSubtractor::cbins_
const CentralityBins * cbins_
Definition: ParametrizedSubtractor.h:37