CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
HcalHBHEMuonAnalyzer Class Reference
Inheritance diagram for HcalHBHEMuonAnalyzer:
edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::SharedResources > edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 HcalHBHEMuonAnalyzer (const edm::ParameterSet &)
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::SharedResources >
 EDAnalyzer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Member Functions

double activeLength (const DetId &)
 
void analyze (edm::Event const &, edm::EventSetup const &) override
 
void beginJob () override
 
void beginRun (edm::Run const &, edm::EventSetup const &) override
 
void clearVectors ()
 
int depth16HE (int ieta, int iphi)
 
void endRun (edm::Run const &, edm::EventSetup const &) override
 
double gainFactor (const edm::ESHandle< HcalDbService > &, const HcalDetId &id)
 
bool goodCell (const HcalDetId &hcid, const reco::Track *pTrack, const CaloGeometry *geo, const MagneticField *bField)
 
bool isGoodVertex (const reco::Vertex &vtx)
 
int matchId (const HcalDetId &, const HcalDetId &)
 
double respCorr (const DetId &id)
 

Private Attributes

std::vector< HcalDDDRecConstants::HcalActiveLengthactHB
 
std::vector< HcalDDDRecConstants::HcalActiveLengthactHE
 
std::vector< std::string > all_triggers_
 
unsigned int bxNumber_
 
std::vector< double > chiGlobal_
 
std::vector< double > chiTracker_
 
const bool collapseDepth_
 
std::map< DetId, double > corrValue_
 
std::vector< double > dxyTracker_
 
std::vector< double > dzTracker_
 
std::vector< double > ecal3x3Energy_
 
std::vector< unsigned int > ecalDetId_
 
std::vector< double > ecalEnergy_
 
std::vector< unsigned int > ehcalDetId_
 
std::vector< double > energyMuon_
 
std::vector< double > etaGlob_
 
unsigned int eventNumber_
 
const std::string fileInCorr_
 
edm::Service< TFileServicefs
 
const bool getCharge_
 
std::vector< int > globalMuonHits_
 
std::vector< bool > globalTrack_
 
std::vector< double > globalTrckEta_
 
std::vector< double > globalTrckPhi_
 
std::vector< double > globalTrckPt_
 
unsigned int goodVertex_
 
std::vector< double > hcal1x1Energy_
 
std::vector< int > hcal_ieta_
 
std::vector< int > hcal_iphi_
 
std::vector< double > hcalActiveLength_
 
std::vector< double > hcalActiveLengthHot_
 
std::vector< double > hcalDepthActiveLength_ [depthMax_]
 
std::vector< double > hcalDepthActiveLengthHot_ [depthMax_]
 
std::vector< double > hcalDepthChargeHot_ [depthMax_]
 
std::vector< double > hcalDepthChargeHotBG_ [depthMax_]
 
std::vector< double > hcalDepthEnergy_ [depthMax_]
 
std::vector< double > hcalDepthEnergyCorr_ [depthMax_]
 
std::vector< double > hcalDepthEnergyHot_ [depthMax_]
 
std::vector< double > hcalDepthEnergyHotCorr_ [depthMax_]
 
std::vector< bool > hcalDepthMatch_ [depthMax_]
 
std::vector< bool > hcalDepthMatchHot_ [depthMax_]
 
std::vector< unsigned int > hcalDetId_
 
std::vector< double > hcalEnergy_
 
std::vector< bool > hcalHot_
 
const HcalDDDRecConstantshdc_
 
HLTConfigProvider hltConfig_
 
std::vector< int > hltresults_
 
const edm::InputTag hlTriggerResults_
 
std::vector< double > hoEnergy_
 
const bool ignoreHECorr_
 
std::vector< bool > innerTrack_
 
std::vector< double > innerTracketa_
 
std::vector< double > innerTrackphi_
 
std::vector< double > innerTrackpt_
 
const bool isItPlan1_
 
const bool isItPreRecHit_
 
std::vector< double > isolationR03_
 
std::vector< double > isolationR04_
 
int kount_
 
const edm::InputTag labelEBRecHit_
 
const edm::InputTag labelEERecHit_
 
const edm::InputTag labelHBHERecHit_
 
const std::string labelMuon_
 
const std::string labelVtx_
 
unsigned int lumiNumber_
 
std::vector< bool > matchedId_
 
std::vector< int > matchedStat_
 
int maxDepth_
 
bool mergedDepth_
 
std::vector< float > muon_chi2LocalPosition
 
std::vector< bool > muon_global_
 
std::vector< bool > muon_is_good_
 
std::vector< bool > muon_is_medium_
 
std::vector< bool > muon_is_tight_
 
std::vector< float > muon_segComp
 
std::vector< bool > muon_tracker_
 
std::vector< float > muon_trkKink
 
std::vector< int > numPixelLayers_
 
std::vector< bool > outerTrack_
 
std::vector< double > outerTrackChi_
 
std::vector< double > outerTrackEta_
 
std::vector< int > outerTrackHits_
 
std::vector< double > outerTrackPhi_
 
std::vector< double > outerTrackPt_
 
std::vector< int > outerTrackRHits_
 
std::vector< double > phiGlob_
 
std::vector< double > pMuon_
 
std::vector< double > ptGlob_
 
HcalRespCorrsrespCorrs_
 
unsigned int runNumber_
 
const HcalTopologytheHBHETopology_
 
std::vector< double > tight_LongPara_
 
std::vector< int > tight_PixelHits_
 
std::vector< double > tight_TransImpara_
 
std::vector< double > tight_validFraction_
 
edm::EDGetTokenT< EcalRecHitCollectiontok_EB_
 
edm::EDGetTokenT< EcalRecHitCollectiontok_EE_
 
edm::EDGetTokenT< HBHERecHitCollectiontok_HBHE_
 
edm::EDGetTokenT< reco::MuonCollectiontok_Muon_
 
edm::EDGetTokenT< edm::TriggerResultstok_trigRes_
 
edm::EDGetTokenT< reco::VertexCollectiontok_Vtx_
 
std::vector< int > trackerLayer_
 
TTree * tree_
 
const std::vector< std::string > triggers_
 
const bool unCorrect_
 
bool useMyCorr_
 
const int useRaw_
 
const int verbosity_
 
const bool writeRespCorr_
 

Static Private Attributes

static const int depthMax_ = 7
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 72 of file HcalHBHEMuonAnalyzer.cc.

Constructor & Destructor Documentation

◆ HcalHBHEMuonAnalyzer()

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

Definition at line 161 of file HcalHBHEMuonAnalyzer.cc.

162  : hlTriggerResults_(iConfig.getParameter<edm::InputTag>("hlTriggerResults")),
163  labelEBRecHit_(iConfig.getParameter<edm::InputTag>("labelEBRecHit")),
164  labelEERecHit_(iConfig.getParameter<edm::InputTag>("labelEERecHit")),
165  labelHBHERecHit_(iConfig.getParameter<edm::InputTag>("labelHBHERecHit")),
166  labelVtx_(iConfig.getParameter<std::string>("labelVertex")),
167  labelMuon_(iConfig.getParameter<std::string>("labelMuon")),
168  fileInCorr_(iConfig.getUntrackedParameter<std::string>("fileInCorr", "")),
169  triggers_(iConfig.getParameter<std::vector<std::string>>("triggers")),
170  verbosity_(iConfig.getUntrackedParameter<int>("verbosity", 0)),
171  useRaw_(iConfig.getParameter<int>("useRaw")),
172  unCorrect_(iConfig.getParameter<bool>("unCorrect")),
173  collapseDepth_(iConfig.getParameter<bool>("collapseDepth")),
174  isItPlan1_(iConfig.getParameter<bool>("isItPlan1")),
175  ignoreHECorr_(iConfig.getUntrackedParameter<bool>("ignoreHECorr", false)),
176  isItPreRecHit_(iConfig.getUntrackedParameter<bool>("isItPreRecHit", false)),
177  getCharge_(iConfig.getParameter<bool>("getCharge")),
178  writeRespCorr_(iConfig.getUntrackedParameter<bool>("writeRespCorr", false)),
179  hdc_(nullptr),
180  theHBHETopology_(nullptr),
181  respCorrs_(nullptr) {
182  usesResource(TFileService::kSharedResource);
183  //now do what ever initialization is needed
184  kount_ = 0;
185  maxDepth_ = iConfig.getUntrackedParameter<int>("maxDepth", 4);
186  if (maxDepth_ > depthMax_)
188  else if (maxDepth_ < 1)
189  maxDepth_ = 4;
190  std::string modnam = iConfig.getUntrackedParameter<std::string>("moduleName", "");
191  std::string procnm = iConfig.getUntrackedParameter<std::string>("processName", "");
192 
194  tok_trigRes_ = consumes<edm::TriggerResults>(hlTriggerResults_);
195  tok_EB_ = consumes<EcalRecHitCollection>(labelEBRecHit_);
196  tok_EE_ = consumes<EcalRecHitCollection>(labelEERecHit_);
197  tok_HBHE_ = consumes<HBHERecHitCollection>(labelHBHERecHit_);
198  if (modnam.empty()) {
199  tok_Vtx_ = consumes<reco::VertexCollection>(labelVtx_);
200  tok_Muon_ = consumes<reco::MuonCollection>(labelMuon_);
201  edm::LogVerbatim("HBHEMuon") << "Labels used: Trig " << hlTriggerResults_ << " Vtx " << labelVtx_ << " EB "
202  << labelEBRecHit_ << " EE " << labelEERecHit_ << " HBHE " << labelHBHERecHit_ << " MU "
203  << labelMuon_;
204  } else {
205  tok_Vtx_ = consumes<reco::VertexCollection>(edm::InputTag(modnam, labelVtx_, procnm));
206  tok_Muon_ = consumes<reco::MuonCollection>(edm::InputTag(modnam, labelMuon_, procnm));
207  edm::LogVerbatim("HBHEMuon") << "Labels used Trig " << hlTriggerResults_ << "\n Vtx "
208  << edm::InputTag(modnam, labelVtx_, procnm) << "\n EB " << labelEBRecHit_
209  << "\n EE " << labelEERecHit_ << "\n HBHE " << labelHBHERecHit_ << "\n MU "
210  << edm::InputTag(modnam, labelMuon_, procnm);
211  }
212 
213  if (!fileInCorr_.empty()) {
214  std::ifstream infile(fileInCorr_.c_str());
215  if (infile.is_open()) {
216  while (true) {
217  unsigned int id;
218  double cfac;
219  infile >> id >> cfac;
220  if (!infile.good())
221  break;
222  corrValue_[DetId(id)] = cfac;
223  }
224  infile.close();
225  }
226  }
227  useMyCorr_ = (!corrValue_.empty());
228  edm::LogVerbatim("HBHEMuon") << "Flags used: UseRaw " << useRaw_ << " GetCharge " << getCharge_ << " UnCorrect "
229  << unCorrect_ << " IgnoreHECorr " << ignoreHECorr_ << " CollapseDepth " << collapseDepth_
230  << ":" << mergedDepth_ << " IsItPlan1 " << isItPlan1_ << " IsItPreRecHit "
231  << isItPreRecHit_ << " UseMyCorr " << useMyCorr_;
232 }

References collapseDepth_, corrValue_, depthMax_, fileInCorr_, getCharge_, edm::ParameterSet::getUntrackedParameter(), hlTriggerResults_, triggerObjects_cff::id, ignoreHECorr_, timingPdfMaker::infile, HLT_2018_cff::InputTag, isItPlan1_, isItPreRecHit_, kount_, TFileService::kSharedResource, labelEBRecHit_, labelEERecHit_, labelHBHERecHit_, labelMuon_, labelVtx_, maxDepth_, mergedDepth_, AlCaHLTBitMon_QueryRunRegistry::string, tok_EB_, tok_EE_, tok_HBHE_, tok_Muon_, tok_trigRes_, tok_Vtx_, unCorrect_, useMyCorr_, and useRaw_.

Member Function Documentation

◆ activeLength()

double HcalHBHEMuonAnalyzer::activeLength ( const DetId id_)
private

Definition at line 1086 of file HcalHBHEMuonAnalyzer.cc.

1086  {
1087  HcalDetId id(id_);
1088  int ieta = id.ietaAbs();
1089  int zside = id.zside();
1090  int iphi = id.iphi();
1091  std::vector<int> dpths;
1092  if (mergedDepth_) {
1093  std::vector<HcalDetId> ids;
1094  hdc_->unmergeDepthDetId(id, ids);
1095  for (auto idh : ids)
1096  dpths.emplace_back(idh.depth());
1097  } else {
1098  dpths.emplace_back(id.depth());
1099  }
1100  double lx(0);
1101  if (id.subdet() == HcalBarrel) {
1102  for (unsigned int i = 0; i < actHB.size(); ++i) {
1103  if ((ieta == actHB[i].ieta) && (zside == actHB[i].zside) &&
1104  (std::find(dpths.begin(), dpths.end(), actHB[i].depth) != dpths.end()) &&
1105  (std::find(actHB[i].iphis.begin(), actHB[i].iphis.end(), iphi) != actHB[i].iphis.end())) {
1106  lx += actHB[i].thick;
1107  }
1108  }
1109  } else {
1110  for (unsigned int i = 0; i < actHE.size(); ++i) {
1111  if ((ieta == actHE[i].ieta) && (zside == actHE[i].zside) &&
1112  (std::find(dpths.begin(), dpths.end(), actHE[i].depth) != dpths.end()) &&
1113  (std::find(actHE[i].iphis.begin(), actHE[i].iphis.end(), iphi) != actHE[i].iphis.end())) {
1114  lx += actHE[i].thick;
1115  }
1116  }
1117  }
1118  return lx;
1119 }

References actHB, actHE, LEDCalibrationChannels::depth, spr::find(), HcalBarrel, hdc_, mps_fire::i, triggerObjects_cff::id, LEDCalibrationChannels::ieta, LEDCalibrationChannels::iphi, mergedDepth_, HcalDDDRecConstants::unmergeDepthDetId(), and ecaldqm::zside().

Referenced by analyze(), and beginRun().

◆ analyze()

void HcalHBHEMuonAnalyzer::analyze ( edm::Event const &  iEvent,
edm::EventSetup const &  iSetup 
)
overrideprivatevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 239 of file HcalHBHEMuonAnalyzer.cc.

239  {
240  ++kount_;
241  clearVectors();
242  runNumber_ = iEvent.id().run();
243  eventNumber_ = iEvent.id().event();
244  lumiNumber_ = iEvent.id().luminosityBlock();
245  bxNumber_ = iEvent.bunchCrossing();
246 #ifdef EDM_ML_DEBUG
247  edm::LogVerbatim("HBHEMuon") << "Run " << runNumber_ << " Event " << eventNumber_ << " Lumi " << lumiNumber_ << " BX "
248  << bxNumber_ << std::endl;
249 #endif
251  iEvent.getByToken(tok_trigRes_, _Triggers);
252 #ifdef EDM_ML_DEBUG
253  if ((verbosity_ / 10000) % 10 > 0)
254  edm::LogVerbatim("HBHEMuon") << "Size of all triggers " << all_triggers_.size() << std::endl;
255 #endif
256  int Ntriggers = all_triggers_.size();
257 #ifdef EDM_ML_DEBUG
258  if ((verbosity_ / 10000) % 10 > 0)
259  edm::LogVerbatim("HBHEMuon") << "Size of HLT MENU: " << _Triggers->size() << std::endl;
260 #endif
261  if (_Triggers.isValid()) {
262  const edm::TriggerNames& triggerNames_ = iEvent.triggerNames(*_Triggers);
263  std::vector<int> index;
264  for (int i = 0; i < Ntriggers; i++) {
265  index.push_back(triggerNames_.triggerIndex(all_triggers_[i]));
266  int triggerSize = int(_Triggers->size());
267 #ifdef EDM_ML_DEBUG
268  if ((verbosity_ / 10000) % 10 > 0)
269  edm::LogVerbatim("HBHEMuon") << "outside loop " << index[i] << "\ntriggerSize " << triggerSize << std::endl;
270 #endif
271  if (index[i] < triggerSize) {
272  hltresults_.push_back(_Triggers->accept(index[i]));
273 #ifdef EDM_ML_DEBUG
274  if ((verbosity_ / 10000) % 10 > 0)
275  edm::LogVerbatim("HBHEMuon") << "Trigger_info " << triggerSize << " triggerSize " << index[i]
276  << " trigger_index " << hltresults_.at(i) << " hltresult" << std::endl;
277 #endif
278  } else {
279  if ((verbosity_ / 10000) % 10 > 0)
280  edm::LogVerbatim("HBHEMuon") << "Requested HLT path \""
281  << "\" does not exist\n";
282  }
283  }
284  }
285 
286  // get handles to calogeometry and calotopology
288  iSetup.get<CaloGeometryRecord>().get(pG);
289  const CaloGeometry* geo = pG.product();
290 
292  iSetup.get<IdealMagneticFieldRecord>().get(bFieldH);
293  const MagneticField* bField = bFieldH.product();
294 
296  iSetup.get<EcalChannelStatusRcd>().get(ecalChStatus);
297  const EcalChannelStatus* theEcalChStatus = ecalChStatus.product();
298 
300  iSetup.get<EcalSeverityLevelAlgoRcd>().get(sevlv);
301 
302  edm::ESHandle<CaloTopology> theCaloTopology;
303  iSetup.get<CaloTopologyRecord>().get(theCaloTopology);
304  const CaloTopology* caloTopology = theCaloTopology.product();
305 
306  edm::ESHandle<HcalDbService> conditions;
307  iSetup.get<HcalDbRecord>().get(conditions);
308 
309  // Relevant blocks from iEvent
311  iEvent.getByToken(tok_Vtx_, vtx);
312 
313  edm::Handle<EcalRecHitCollection> barrelRecHitsHandle;
314  iEvent.getByToken(tok_EB_, barrelRecHitsHandle);
315  edm::Handle<EcalRecHitCollection> endcapRecHitsHandle;
316  iEvent.getByToken(tok_EE_, endcapRecHitsHandle);
317 
319  iEvent.getByToken(tok_HBHE_, hbhe);
320 
322  iEvent.getByToken(tok_Muon_, _Muon);
323 
324  // require a good vertex
325  math::XYZPoint pvx;
326  goodVertex_ = 0;
327  if (!vtx.isValid()) {
328 #ifdef EDM_ML_DEBUG
329  edm::LogVerbatim("HBHEMuon") << "No Good Vertex found == Reject\n";
330 #endif
331  return;
332  }
333  reco::VertexCollection::const_iterator firstGoodVertex = vtx->end();
334  for (reco::VertexCollection::const_iterator it = vtx->begin(); it != vtx->end(); it++) {
335  if (isGoodVertex(*it)) {
336  if (firstGoodVertex == vtx->end())
337  firstGoodVertex = it;
338  ++goodVertex_;
339  }
340  }
341  if (firstGoodVertex != vtx->end())
342  pvx = firstGoodVertex->position();
343 
344  bool accept(false);
345  if (_Muon.isValid() && barrelRecHitsHandle.isValid() && endcapRecHitsHandle.isValid() && hbhe.isValid()) {
346  for (reco::MuonCollection::const_iterator RecMuon = _Muon->begin(); RecMuon != _Muon->end(); ++RecMuon) {
347  muon_is_good_.push_back(RecMuon->isPFMuon());
348  muon_global_.push_back(RecMuon->isGlobalMuon());
349  muon_tracker_.push_back(RecMuon->isTrackerMuon());
350  ptGlob_.push_back((RecMuon)->pt());
351  etaGlob_.push_back(RecMuon->eta());
352  phiGlob_.push_back(RecMuon->phi());
353  energyMuon_.push_back(RecMuon->energy());
354  pMuon_.push_back(RecMuon->p());
355 #ifdef EDM_ML_DEBUG
356  edm::LogVerbatim("HBHEMuon") << "Energy:" << RecMuon->energy() << " P:" << RecMuon->p() << std::endl;
357 #endif
358  muon_is_tight_.push_back(muon::isTightMuon(*RecMuon, *firstGoodVertex));
359  muon_is_medium_.push_back(muon::isMediumMuon(*RecMuon));
360  muon_trkKink.push_back(RecMuon->combinedQuality().trkKink);
361  muon_chi2LocalPosition.push_back(RecMuon->combinedQuality().chi2LocalPosition);
362  muon_segComp.push_back(muon::segmentCompatibility(*RecMuon));
363  // acessing tracker hits info
364  if (RecMuon->track().isNonnull()) {
365  trackerLayer_.push_back(RecMuon->track()->hitPattern().trackerLayersWithMeasurement());
366  } else {
367  trackerLayer_.push_back(-1);
368  }
369  if (RecMuon->innerTrack().isNonnull()) {
370  innerTrack_.push_back(true);
371  numPixelLayers_.push_back(RecMuon->innerTrack()->hitPattern().pixelLayersWithMeasurement());
372  chiTracker_.push_back(RecMuon->innerTrack()->normalizedChi2());
373  dxyTracker_.push_back(fabs(RecMuon->innerTrack()->dxy(pvx)));
374  dzTracker_.push_back(fabs(RecMuon->innerTrack()->dz(pvx)));
375  innerTrackpt_.push_back(RecMuon->innerTrack()->pt());
376  innerTracketa_.push_back(RecMuon->innerTrack()->eta());
377  innerTrackphi_.push_back(RecMuon->innerTrack()->phi());
378  tight_PixelHits_.push_back(RecMuon->innerTrack()->hitPattern().numberOfValidPixelHits());
379  tight_validFraction_.push_back(RecMuon->innerTrack()->validFraction());
380  } else {
381  innerTrack_.push_back(false);
382  numPixelLayers_.push_back(0);
383  chiTracker_.push_back(0);
384  dxyTracker_.push_back(0);
385  dzTracker_.push_back(0);
386  innerTrackpt_.push_back(0);
387  innerTracketa_.push_back(0);
388  innerTrackphi_.push_back(0);
389  tight_PixelHits_.push_back(0);
390  tight_validFraction_.push_back(-99);
391  }
392  // outer track info
393  if (RecMuon->outerTrack().isNonnull()) {
394  outerTrack_.push_back(true);
395  outerTrackPt_.push_back(RecMuon->outerTrack()->pt());
396  outerTrackEta_.push_back(RecMuon->outerTrack()->eta());
397  outerTrackPhi_.push_back(RecMuon->outerTrack()->phi());
398  outerTrackChi_.push_back(RecMuon->outerTrack()->normalizedChi2());
399  outerTrackHits_.push_back(RecMuon->outerTrack()->numberOfValidHits());
400  outerTrackRHits_.push_back(RecMuon->outerTrack()->recHitsSize());
401  } else {
402  outerTrack_.push_back(false);
403  outerTrackPt_.push_back(0);
404  outerTrackEta_.push_back(0);
405  outerTrackPhi_.push_back(0);
406  outerTrackChi_.push_back(0);
407  outerTrackHits_.push_back(0);
408  outerTrackRHits_.push_back(0);
409  }
410  // Tight Muon cuts
411  if (RecMuon->globalTrack().isNonnull()) {
412  globalTrack_.push_back(true);
413  chiGlobal_.push_back(RecMuon->globalTrack()->normalizedChi2());
414  globalMuonHits_.push_back(RecMuon->globalTrack()->hitPattern().numberOfValidMuonHits());
415  matchedStat_.push_back(RecMuon->numberOfMatchedStations());
416  globalTrckPt_.push_back(RecMuon->globalTrack()->pt());
417  globalTrckEta_.push_back(RecMuon->globalTrack()->eta());
418  globalTrckPhi_.push_back(RecMuon->globalTrack()->phi());
419  tight_TransImpara_.push_back(fabs(RecMuon->muonBestTrack()->dxy(pvx)));
420  tight_LongPara_.push_back(fabs(RecMuon->muonBestTrack()->dz(pvx)));
421  } else {
422  globalTrack_.push_back(false);
423  chiGlobal_.push_back(0);
424  globalMuonHits_.push_back(0);
425  matchedStat_.push_back(0);
426  globalTrckPt_.push_back(0);
427  globalTrckEta_.push_back(0);
428  globalTrckPhi_.push_back(0);
429  tight_TransImpara_.push_back(0);
430  tight_LongPara_.push_back(0);
431  }
432 
433  isolationR04_.push_back(
434  ((RecMuon->pfIsolationR04().sumChargedHadronPt +
435  std::max(0.,
436  RecMuon->pfIsolationR04().sumNeutralHadronEt + RecMuon->pfIsolationR04().sumPhotonEt -
437  (0.5 * RecMuon->pfIsolationR04().sumPUPt))) /
438  RecMuon->pt()));
439 
440  isolationR03_.push_back(
441  ((RecMuon->pfIsolationR03().sumChargedHadronPt +
442  std::max(0.,
443  RecMuon->pfIsolationR03().sumNeutralHadronEt + RecMuon->pfIsolationR03().sumPhotonEt -
444  (0.5 * RecMuon->pfIsolationR03().sumPUPt))) /
445  RecMuon->pt()));
446 
447  ecalEnergy_.push_back(RecMuon->calEnergy().emS9);
448  hcalEnergy_.push_back(RecMuon->calEnergy().hadS9);
449  hoEnergy_.push_back(RecMuon->calEnergy().hoS9);
450 
451  double eEcal(0), eHcal(0), activeLengthTot(0), activeLengthHotTot(0);
452  double eHcalDepth[depthMax_], eHcalDepthHot[depthMax_];
453  double eHcalDepthC[depthMax_], eHcalDepthHotC[depthMax_];
454  double cHcalDepthHot[depthMax_], cHcalDepthHotBG[depthMax_];
455  double activeL[depthMax_], activeHotL[depthMax_];
456  bool matchDepth[depthMax_], matchDepthHot[depthMax_];
457  HcalDetId eHcalDetId[depthMax_];
458  unsigned int isHot(0);
459  bool tmpmatch(false);
460  int ieta(-1000), iphi(-1000);
461  for (int i = 0; i < depthMax_; ++i) {
462  eHcalDepth[i] = eHcalDepthHot[i] = 0;
463  eHcalDepthC[i] = eHcalDepthHotC[i] = 0;
464  cHcalDepthHot[i] = cHcalDepthHotBG[i] = 0;
465  activeL[i] = activeHotL[i] = 0;
466  matchDepth[i] = matchDepthHot[i] = true;
467  }
468  if (RecMuon->innerTrack().isNonnull()) {
469  const reco::Track* pTrack = (RecMuon->innerTrack()).get();
470  spr::propagatedTrackID trackID = spr::propagateCALO(pTrack, geo, bField, (((verbosity_ / 100) % 10 > 0)));
471  if ((RecMuon->p() > 10.0) && (trackID.okHCAL))
472  accept = true;
473 
474  ecalDetId_.push_back((trackID.detIdECAL)());
475  hcalDetId_.push_back((trackID.detIdHCAL)());
476  ehcalDetId_.push_back((trackID.detIdEHCAL)());
477 
479  std::pair<bool, HcalDetId> info = spr::propagateHCALBack(pTrack, geo, bField, (((verbosity_ / 100) % 10 > 0)));
480  if (info.first) {
481  check = info.second;
482  }
483 
484  bool okE = trackID.okECAL;
485  if (okE) {
486  const DetId isoCell(trackID.detIdECAL);
487  std::pair<double, bool> e3x3 = spr::eECALmatrix(isoCell,
488  barrelRecHitsHandle,
489  endcapRecHitsHandle,
490  *theEcalChStatus,
491  geo,
492  caloTopology,
493  sevlv.product(),
494  1,
495  1,
496  -100.0,
497  -100.0,
498  -500.0,
499  500.0,
500  false);
501  eEcal = e3x3.first;
502  okE = e3x3.second;
503  }
504 #ifdef EDM_ML_DEBUG
505  edm::LogVerbatim("HBHEMuon") << "Propagate Track to ECAL: " << okE << ":" << trackID.okECAL << " E " << eEcal;
506 #endif
507 
508  if (trackID.okHCAL) {
509  DetId closestCell(trackID.detIdHCAL);
510  HcalDetId hcidt(closestCell.rawId());
511  if ((hcidt.ieta() == check.ieta()) && (hcidt.iphi() == check.iphi()))
512  tmpmatch = true;
513 #ifdef EDM_ML_DEBUG
514  edm::LogVerbatim("HBHEMuon") << "Front " << hcidt << " Back " << info.first << ":" << check << " Match "
515  << tmpmatch;
516 #endif
517 
518  HcalSubdetector subdet = hcidt.subdet();
519  ieta = hcidt.ieta();
520  iphi = hcidt.iphi();
521  bool hborhe = (std::abs(ieta) == 16);
522 
524  closestCell,
525  hbhe,
526  0,
527  0,
528  false,
529  true,
530  -100.0,
531  -100.0,
532  -100.0,
533  -100.0,
534  -500.,
535  500.,
536  useRaw_);
537  std::vector<std::pair<double, int>> ehdepth;
538  spr::energyHCALCell((HcalDetId)closestCell,
539  hbhe,
540  ehdepth,
541  maxDepth_,
542  -100.0,
543  -100.0,
544  -100.0,
545  -100.0,
546  -500.0,
547  500.0,
548  useRaw_,
549  depth16HE(ieta, iphi),
550  (((verbosity_ / 1000) % 10) > 0));
551  for (int i = 0; i < depthMax_; ++i)
552  eHcalDetId[i] = HcalDetId();
553  for (unsigned int i = 0; i < ehdepth.size(); ++i) {
554  HcalSubdetector subdet0 =
555  (hborhe) ? ((ehdepth[i].second >= depth16HE(ieta, iphi)) ? HcalEndcap : HcalBarrel) : subdet;
556  HcalDetId hcid0(subdet0, ieta, iphi, ehdepth[i].second);
557  double actL = activeLength(DetId(hcid0));
558  double ene = ehdepth[i].first;
559  bool tmpC(false);
560  if (ene > 0.0) {
561  if (!(theHBHETopology_->validHcal(hcid0))) {
562  edm::LogWarning("HBHEMuon") << "(1) Invalid ID " << hcid0 << " with E = " << ene;
563  edm::LogWarning("HBHEMuon") << HcalDetId(closestCell) << " with " << ehdepth.size() << " depths:";
564  for (const auto& ehd : ehdepth)
565  edm::LogWarning("HBHEMuon") << " " << ehd.second << ":" << ehd.first;
566  } else {
567  tmpC = goodCell(hcid0, pTrack, geo, bField);
568  double enec(ene);
569  if (unCorrect_) {
570  double corr = (ignoreHECorr_ && (subdet0 == HcalEndcap)) ? 1.0 : respCorr(DetId(hcid0));
571  if (corr != 0)
572  ene /= corr;
573 #ifdef EDM_ML_DEBUG
574  HcalDetId id = (isItPlan1_ && isItPreRecHit_) ? hdc_->mergedDepthDetId(hcid0) : hcid0;
575  edm::LogVerbatim("HBHEMuon") << hcid0 << ":" << id << " Corr " << corr;
576 #endif
577  }
578  int depth = ehdepth[i].second - 1;
579  if (collapseDepth_) {
580  HcalDetId id = hdc_->mergedDepthDetId(hcid0);
581  depth = id.depth() - 1;
582  }
583  eHcalDepth[depth] += ene;
584  eHcalDepthC[depth] += enec;
585  activeL[depth] += actL;
586  activeLengthTot += actL;
587  matchDepth[depth] = (matchDepth[depth] && tmpC);
588 #ifdef EDM_ML_DEBUG
589  if ((verbosity_ % 10) > 0)
590  edm::LogVerbatim("HBHEMuon")
591  << hcid0 << " E " << ene << ":" << enec << " L " << actL << " Match " << tmpC;
592 #endif
593  }
594  }
595  }
596 #ifdef EDM_ML_DEBUG
597  if ((verbosity_ % 10) > 0) {
598  edm::LogVerbatim("HBHEMuon") << hcidt << " Match " << tmpmatch << " Depths " << ehdepth.size();
599  for (unsigned int k = 0; k < ehdepth.size(); ++k)
600  edm::LogVerbatim("HBHEMuon") << " [" << k << ":" << ehdepth[k].second << "] " << matchDepth[k];
601  }
602 #endif
603  HcalDetId hotCell;
604  spr::eHCALmatrix(geo, theHBHETopology_, closestCell, hbhe, 1, 1, hotCell, false, useRaw_, false);
605  isHot = matchId(closestCell, hotCell);
606  if (hotCell != HcalDetId()) {
607  subdet = HcalDetId(hotCell).subdet();
608  ieta = HcalDetId(hotCell).ieta();
609  iphi = HcalDetId(hotCell).iphi();
610  hborhe = (std::abs(ieta) == 16);
611  std::vector<std::pair<double, int>> ehdepth;
612  spr::energyHCALCell(hotCell,
613  hbhe,
614  ehdepth,
615  maxDepth_,
616  -100.0,
617  -100.0,
618  -100.0,
619  -100.0,
620  -500.0,
621  500.0,
622  useRaw_,
623  depth16HE(ieta, iphi),
624  false); //(((verbosity_/1000)%10)>0 ));
625  for (int i = 0; i < depthMax_; ++i)
626  eHcalDetId[i] = HcalDetId();
627  for (unsigned int i = 0; i < ehdepth.size(); ++i) {
628  HcalSubdetector subdet0 =
629  (hborhe) ? ((ehdepth[i].second >= depth16HE(ieta, iphi)) ? HcalEndcap : HcalBarrel) : subdet;
630  HcalDetId hcid0(subdet0, ieta, iphi, ehdepth[i].second);
631  double actL = activeLength(DetId(hcid0));
632  double ene = ehdepth[i].first;
633  bool tmpC(false);
634  if (ene > 0.0) {
635  if (!(theHBHETopology_->validHcal(hcid0))) {
636  edm::LogWarning("HBHEMuon") << "(2) Invalid ID " << hcid0 << " with E = " << ene;
637  edm::LogWarning("HBHEMuon") << HcalDetId(hotCell) << " with " << ehdepth.size() << " depths:";
638  for (const auto& ehd : ehdepth)
639  edm::LogWarning("HBHEMuon") << " " << ehd.second << ":" << ehd.first;
640  } else {
641  tmpC = goodCell(hcid0, pTrack, geo, bField);
642  double chg(ene), enec(ene);
643  if (unCorrect_) {
644  double corr = (ignoreHECorr_ && (subdet0 == HcalEndcap)) ? 1.0 : respCorr(DetId(hcid0));
645  if (corr != 0)
646  ene /= corr;
647 #ifdef EDM_ML_DEBUG
648  HcalDetId id = (isItPlan1_ && isItPreRecHit_) ? hdc_->mergedDepthDetId(hcid0) : hcid0;
649  edm::LogVerbatim("HBHEMuon")
650  << hcid0 << ":" << id << " Corr " << corr << " E " << ene << ":" << enec;
651 #endif
652  }
653  if (getCharge_) {
654  double gain = gainFactor(conditions, hcid0);
655  if (gain != 0)
656  chg /= gain;
657 #ifdef EDM_ML_DEBUG
658  edm::LogVerbatim("HBHEMuon") << hcid0 << " Gain " << gain << " C " << chg;
659 #endif
660  }
661  int depth = ehdepth[i].second - 1;
662  if (collapseDepth_) {
663  HcalDetId id = hdc_->mergedDepthDetId(hcid0);
664  depth = id.depth() - 1;
665  }
666  eHcalDepthHot[depth] += ene;
667  eHcalDepthHotC[depth] += enec;
668  cHcalDepthHot[depth] += chg;
669  activeHotL[depth] += actL;
670  activeLengthHotTot += actL;
671  matchDepthHot[depth] = (matchDepthHot[depth] && tmpC);
672 #ifdef EDM_ML_DEBUG
673  if ((verbosity_ % 10) > 0)
674  edm::LogVerbatim("HBHEMuon") << hcid0 << " depth " << depth << " E " << ene << ":" << enec << " C "
675  << chg << " L " << actL << " Match " << tmpC;
676 #endif
677  }
678  }
679  }
680 
681  HcalDetId oppCell(subdet, -ieta, iphi, HcalDetId(hotCell).depth());
682  std::vector<std::pair<double, int>> ehdeptho;
683  spr::energyHCALCell(oppCell,
684  hbhe,
685  ehdeptho,
686  maxDepth_,
687  -100.0,
688  -100.0,
689  -100.0,
690  -100.0,
691  -500.0,
692  500.0,
693  useRaw_,
694  depth16HE(-ieta, iphi),
695  false); //(((verbosity_/1000)%10)>0));
696  for (unsigned int i = 0; i < ehdeptho.size(); ++i) {
697  HcalSubdetector subdet0 =
698  (hborhe) ? ((ehdeptho[i].second >= depth16HE(-ieta, iphi)) ? HcalEndcap : HcalBarrel) : subdet;
699  HcalDetId hcid0(subdet0, -ieta, iphi, ehdeptho[i].second);
700  double ene = ehdeptho[i].first;
701  if (ene > 0.0) {
702  if (!(theHBHETopology_->validHcal(hcid0))) {
703  edm::LogWarning("HBHEMuon") << "(3) Invalid ID " << hcid0 << " with E = " << ene;
704  edm::LogWarning("HBHEMuon") << oppCell << " with " << ehdeptho.size() << " depths:";
705  for (const auto& ehd : ehdeptho)
706  edm::LogWarning("HBHEMuon") << " " << ehd.second << ":" << ehd.first;
707  } else {
708  double chg(ene);
709  if (unCorrect_) {
710  double corr = (ignoreHECorr_ && (subdet0 == HcalEndcap)) ? 1.0 : respCorr(DetId(hcid0));
711  if (corr != 0)
712  ene /= corr;
713 #ifdef EDM_ML_DEBUG
714  HcalDetId id = (isItPlan1_ && isItPreRecHit_) ? hdc_->mergedDepthDetId(hcid0) : hcid0;
715  edm::LogVerbatim("HBHEMuon")
716  << hcid0 << ":" << id << " Corr " << corr << " E " << ene << ":" << ehdeptho[i].first;
717 #endif
718  }
719  if (getCharge_) {
720  double gain = gainFactor(conditions, hcid0);
721  if (gain != 0)
722  chg /= gain;
723 #ifdef EDM_ML_DEBUG
724  edm::LogVerbatim("HBHEMuon") << hcid0 << " Gain " << gain << " C " << chg;
725 #endif
726  }
727  int depth = ehdeptho[i].second - 1;
728  if (collapseDepth_) {
729  HcalDetId id = hdc_->mergedDepthDetId(hcid0);
730  depth = id.depth() - 1;
731  }
732  cHcalDepthHotBG[depth] += chg;
733 #ifdef EDM_ML_DEBUG
734  if ((verbosity_ % 10) > 0)
735  edm::LogVerbatim("HBHEMuon") << hcid0 << " Depth " << depth << " E " << ene << " C " << chg;
736 #endif
737  }
738  }
739  }
740  }
741  }
742 #ifdef EDM_ML_DEBUG
743  edm::LogVerbatim("HBHEMuon") << "Propagate Track to HCAL: " << trackID.okHCAL << " Match " << tmpmatch
744  << " Hot " << isHot << " Energy " << eHcal << std::endl;
745 #endif
746 
747  } else {
748  ecalDetId_.push_back(0);
749  hcalDetId_.push_back(0);
750  ehcalDetId_.push_back(0);
751  }
752 
753  matchedId_.push_back(tmpmatch);
754  ecal3x3Energy_.push_back(eEcal);
755  hcal1x1Energy_.push_back(eHcal);
756  hcal_ieta_.push_back(ieta);
757  hcal_iphi_.push_back(iphi);
758  for (int i = 0; i < depthMax_; ++i) {
759  hcalDepthEnergy_[i].push_back(eHcalDepth[i]);
760  hcalDepthActiveLength_[i].push_back(activeL[i]);
761  hcalDepthEnergyHot_[i].push_back(eHcalDepthHot[i]);
762  hcalDepthActiveLengthHot_[i].push_back(activeHotL[i]);
763  hcalDepthEnergyCorr_[i].push_back(eHcalDepthC[i]);
764  hcalDepthEnergyHotCorr_[i].push_back(eHcalDepthHotC[i]);
765  hcalDepthChargeHot_[i].push_back(cHcalDepthHot[i]);
766  hcalDepthChargeHotBG_[i].push_back(cHcalDepthHotBG[i]);
767  hcalDepthMatch_[i].push_back(matchDepth[i]);
768  hcalDepthMatchHot_[i].push_back(matchDepthHot[i]);
769  }
770  hcalActiveLength_.push_back(activeLengthTot);
771  hcalHot_.push_back(isHot);
772  hcalActiveLengthHot_.push_back(activeLengthHotTot);
773  }
774  }
775  if (accept) {
776 #ifdef EDM_ML_DEBUG
777  for (unsigned int i = 0; i < hcal_ieta_.size(); ++i)
778  edm::LogVerbatim("HBHEMuon") << "[" << i << "] ieta/iphi for entry to "
779  << "HCAL has value of " << hcal_ieta_[i] << ":" << hcal_iphi_[i];
780 #endif
781  tree_->Fill();
782  }
783 }

References funct::abs(), accept(), edm::HLTGlobalStatus::accept(), activeLength(), all_triggers_, Calorimetry_cff::bField, bxNumber_, RPCNoise_example::check, chg, chiGlobal_, chiTracker_, clearVectors(), collapseDepth_, alignCSCRings::corr, LEDCalibrationChannels::depth, depth16HE(), depthMax_, spr::propagatedTrackID::detIdECAL, spr::propagatedTrackID::detIdEHCAL, spr::propagatedTrackID::detIdHCAL, dxyTracker_, dzTracker_, ecal3x3Energy_, ecalDetId_, ecalEnergy_, spr::eECALmatrix(), ehcalDetId_, spr::eHCALmatrix(), spr::energyHCALCell(), energyMuon_, etaGlob_, eventNumber_, PedestalClient_cfi::gain, gainFactor(), edm::EventSetup::get(), get, getCharge_, globalMuonHits_, globalTrack_, globalTrckEta_, globalTrckPhi_, globalTrckPt_, goodCell(), goodVertex_, photonIsolationHIProducer_cfi::hbhe, hcal1x1Energy_, hcal_ieta_, hcal_iphi_, hcalActiveLength_, hcalActiveLengthHot_, HcalBarrel, hcalDepthActiveLength_, hcalDepthActiveLengthHot_, hcalDepthChargeHot_, hcalDepthChargeHotBG_, hcalDepthEnergy_, hcalDepthEnergyCorr_, hcalDepthEnergyHot_, hcalDepthEnergyHotCorr_, hcalDepthMatch_, hcalDepthMatchHot_, hcalDetId_, HcalEndcap, hcalEnergy_, hcalHot_, hdc_, hltresults_, hoEnergy_, mps_fire::i, LEDCalibrationChannels::ieta, HcalDetId::ieta(), iEvent, ignoreHECorr_, info(), innerTrack_, innerTracketa_, innerTrackphi_, innerTrackpt_, createfilelist::int, LEDCalibrationChannels::iphi, HcalDetId::iphi(), isGoodVertex(), isItPlan1_, isItPreRecHit_, muon::isMediumMuon(), isolationR03_, isolationR04_, muon::isTightMuon(), edm::HandleBase::isValid(), dqmdumpme::k, kount_, lumiNumber_, matchedId_, matchedStat_, matchId(), SiStripPI::max, maxDepth_, HcalDDDRecConstants::mergedDepthDetId(), muon_chi2LocalPosition, muon_global_, muon_is_good_, muon_is_medium_, muon_is_tight_, muon_segComp, muon_tracker_, muon_trkKink, numPixelLayers_, spr::propagatedTrackID::okECAL, spr::propagatedTrackID::okHCAL, outerTrack_, outerTrackChi_, outerTrackEta_, outerTrackHits_, outerTrackPhi_, outerTrackPt_, outerTrackRHits_, phiGlob_, pMuon_, edm::ESHandle< T >::product(), spr::propagateCALO(), spr::propagateHCALBack(), DiDispStaMuonMonitor_cfi::pt, ptGlob_, DetId::rawId(), respCorr(), runNumber_, edm::second(), muon::segmentCompatibility(), edm::HLTGlobalStatus::size(), HcalDetId::subdet(), theHBHETopology_, tight_LongPara_, tight_PixelHits_, tight_TransImpara_, tight_validFraction_, tok_EB_, tok_EE_, tok_HBHE_, tok_Muon_, tok_trigRes_, tok_Vtx_, trackerLayer_, tree_, edm::TriggerNames::triggerIndex(), unCorrect_, useRaw_, HcalTopology::validHcal(), verbosity_, and badGlobalMuonTaggersAOD_cff::vtx.

◆ beginJob()

void HcalHBHEMuonAnalyzer::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 786 of file HcalHBHEMuonAnalyzer.cc.

786  {
787  tree_ = fs->make<TTree>("TREE", "TREE");
788  tree_->Branch("Event_No", &eventNumber_);
789  tree_->Branch("Run_No", &runNumber_);
790  tree_->Branch("LumiNumber", &lumiNumber_);
791  tree_->Branch("BXNumber", &bxNumber_);
792  tree_->Branch("GoodVertex", &goodVertex_);
793  tree_->Branch("PF_Muon", &muon_is_good_);
794  tree_->Branch("Global_Muon", &muon_global_);
795  tree_->Branch("Tracker_muon", &muon_tracker_);
796  tree_->Branch("MuonIsTight", &muon_is_tight_);
797  tree_->Branch("MuonIsMedium", &muon_is_medium_);
798  tree_->Branch("pt_of_muon", &ptGlob_);
799  tree_->Branch("eta_of_muon", &etaGlob_);
800  tree_->Branch("phi_of_muon", &phiGlob_);
801  tree_->Branch("energy_of_muon", &energyMuon_);
802  tree_->Branch("p_of_muon", &pMuon_);
803  tree_->Branch("muon_trkKink", &muon_trkKink);
804  tree_->Branch("muon_chi2LocalPosition", &muon_chi2LocalPosition);
805  tree_->Branch("muon_segComp", &muon_segComp);
806 
807  tree_->Branch("TrackerLayer", &trackerLayer_);
808  tree_->Branch("NumPixelLayers", &numPixelLayers_);
809  tree_->Branch("InnerTrackPixelHits", &tight_PixelHits_);
810  tree_->Branch("innerTrack", &innerTrack_);
811  tree_->Branch("chiTracker", &chiTracker_);
812  tree_->Branch("DxyTracker", &dxyTracker_);
813  tree_->Branch("DzTracker", &dzTracker_);
814  tree_->Branch("innerTrackpt", &innerTrackpt_);
815  tree_->Branch("innerTracketa", &innerTracketa_);
816  tree_->Branch("innerTrackphi", &innerTrackphi_);
817  tree_->Branch("tight_validFraction", &tight_validFraction_);
818 
819  tree_->Branch("OuterTrack", &outerTrack_);
820  tree_->Branch("OuterTrackChi", &outerTrackChi_);
821  tree_->Branch("OuterTrackPt", &outerTrackPt_);
822  tree_->Branch("OuterTrackEta", &outerTrackEta_);
823  tree_->Branch("OuterTrackPhi", &outerTrackPhi_);
824  tree_->Branch("OuterTrackHits", &outerTrackHits_);
825  tree_->Branch("OuterTrackRHits", &outerTrackRHits_);
826 
827  tree_->Branch("GlobalTrack", &globalTrack_);
828  tree_->Branch("GlobalTrckPt", &globalTrckPt_);
829  tree_->Branch("GlobalTrckEta", &globalTrckEta_);
830  tree_->Branch("GlobalTrckPhi", &globalTrckPhi_);
831  tree_->Branch("Global_Muon_Hits", &globalMuonHits_);
832  tree_->Branch("MatchedStations", &matchedStat_);
833  tree_->Branch("GlobTrack_Chi", &chiGlobal_);
834  tree_->Branch("Tight_LongitudinalImpactparameter", &tight_LongPara_);
835  tree_->Branch("Tight_TransImpactparameter", &tight_TransImpara_);
836 
837  tree_->Branch("IsolationR04", &isolationR04_);
838  tree_->Branch("IsolationR03", &isolationR03_);
839  tree_->Branch("ecal_3into3", &ecalEnergy_);
840  tree_->Branch("hcal_3into3", &hcalEnergy_);
841  tree_->Branch("tracker_3into3", &hoEnergy_);
842 
843  tree_->Branch("matchedId", &matchedId_);
844  tree_->Branch("hcal_cellHot", &hcalHot_);
845 
846  tree_->Branch("ecal_3x3", &ecal3x3Energy_);
847  tree_->Branch("hcal_1x1", &hcal1x1Energy_);
848  tree_->Branch("ecal_detID", &ecalDetId_);
849  tree_->Branch("hcal_detID", &hcalDetId_);
850  tree_->Branch("ehcal_detID", &ehcalDetId_);
851  tree_->Branch("hcal_ieta", &hcal_ieta_);
852  tree_->Branch("hcal_iphi", &hcal_iphi_);
853 
854  char name[100];
855  for (int k = 0; k < maxDepth_; ++k) {
856  sprintf(name, "hcal_edepth%d", (k + 1));
857  tree_->Branch(name, &hcalDepthEnergy_[k]);
858  sprintf(name, "hcal_activeL%d", (k + 1));
859  tree_->Branch(name, &hcalDepthActiveLength_[k]);
860  sprintf(name, "hcal_edepthHot%d", (k + 1));
861  tree_->Branch(name, &hcalDepthEnergyHot_[k]);
862  sprintf(name, "hcal_activeHotL%d", (k + 1));
864  sprintf(name, "hcal_cdepthHot%d", (k + 1));
865  tree_->Branch(name, &hcalDepthChargeHot_[k]);
866  sprintf(name, "hcal_cdepthHotBG%d", (k + 1));
867  tree_->Branch(name, &hcalDepthChargeHotBG_[k]);
868  sprintf(name, "hcal_edepthCorrect%d", (k + 1));
869  tree_->Branch(name, &hcalDepthEnergyCorr_[k]);
870  sprintf(name, "hcal_edepthHotCorrect%d", (k + 1));
871  tree_->Branch(name, &hcalDepthEnergyHotCorr_[k]);
872  sprintf(name, "hcal_depthMatch%d", (k + 1));
873  tree_->Branch(name, &hcalDepthMatch_[k]);
874  sprintf(name, "hcal_depthMatchHot%d", (k + 1));
875  tree_->Branch(name, &hcalDepthMatchHot_[k]);
876  }
877 
878  tree_->Branch("activeLength", &hcalActiveLength_);
879  tree_->Branch("activeLengthHot", &hcalActiveLengthHot_);
880 
881  tree_->Branch("hltresults", &hltresults_);
882  tree_->Branch("all_triggers", &all_triggers_);
883 }

References all_triggers_, bxNumber_, chiGlobal_, chiTracker_, dxyTracker_, dzTracker_, ecal3x3Energy_, ecalDetId_, ecalEnergy_, ehcalDetId_, energyMuon_, etaGlob_, eventNumber_, fs, globalMuonHits_, globalTrack_, globalTrckEta_, globalTrckPhi_, globalTrckPt_, goodVertex_, hcal1x1Energy_, hcal_ieta_, hcal_iphi_, hcalActiveLength_, hcalActiveLengthHot_, hcalDepthActiveLength_, hcalDepthActiveLengthHot_, hcalDepthChargeHot_, hcalDepthChargeHotBG_, hcalDepthEnergy_, hcalDepthEnergyCorr_, hcalDepthEnergyHot_, hcalDepthEnergyHotCorr_, hcalDepthMatch_, hcalDepthMatchHot_, hcalDetId_, hcalEnergy_, hcalHot_, hltresults_, hoEnergy_, innerTrack_, innerTracketa_, innerTrackphi_, innerTrackpt_, isolationR03_, isolationR04_, dqmdumpme::k, lumiNumber_, TFileService::make(), matchedId_, matchedStat_, maxDepth_, muon_chi2LocalPosition, muon_global_, muon_is_good_, muon_is_medium_, muon_is_tight_, muon_segComp, muon_tracker_, muon_trkKink, Skims_PA_cff::name, numPixelLayers_, outerTrack_, outerTrackChi_, outerTrackEta_, outerTrackHits_, outerTrackPhi_, outerTrackPt_, outerTrackRHits_, phiGlob_, pMuon_, ptGlob_, runNumber_, tight_LongPara_, tight_PixelHits_, tight_TransImpara_, tight_validFraction_, trackerLayer_, and tree_.

◆ beginRun()

void HcalHBHEMuonAnalyzer::beginRun ( edm::Run const &  iRun,
edm::EventSetup const &  iSetup 
)
overrideprivate

Definition at line 886 of file HcalHBHEMuonAnalyzer.cc.

886  {
888  iSetup.get<HcalRecNumberingRecord>().get(pHRNDC);
889  hdc_ = pHRNDC.product();
890  actHB.clear();
891  actHE.clear();
892  actHB = hdc_->getThickActive(0);
893  actHE = hdc_->getThickActive(1);
894 #ifdef EDM_ML_DEBUG
895  unsigned int k1(0), k2(0);
896  edm::LogVerbatim("HBHEMuon") << actHB.size() << " Active Length for HB";
897  for (const auto& act : actHB) {
898  edm::LogVerbatim("HBHEMuon") << "[" << k1 << "] ieta " << act.ieta << " depth " << act.depth << " zside "
899  << act.zside << " type " << act.stype << " phi " << act.iphis.size() << ":"
900  << act.iphis[0] << " L " << act.thick;
901  HcalDetId hcid1(HcalBarrel, (act.ieta) * (act.zside), act.iphis[0], act.depth);
902  HcalDetId hcid2 = mergedDepth_ ? hdc_->mergedDepthDetId(hcid1) : hcid1;
903  edm::LogVerbatim("HBHEMuon") << hcid1 << " | " << hcid2 << " L " << activeLength(DetId(hcid2));
904  ++k1;
905  }
906  edm::LogVerbatim("HBHEMuon") << actHE.size() << " Active Length for HE";
907  for (const auto& act : actHE) {
908  edm::LogVerbatim("HBHEMuon") << "[" << k2 << "] ieta " << act.ieta << " depth " << act.depth << " zside "
909  << act.zside << " type " << act.stype << " phi " << act.iphis.size() << ":"
910  << act.iphis[0] << " L " << act.thick;
911  HcalDetId hcid1(HcalEndcap, (act.ieta) * (act.zside), act.iphis[0], act.depth);
912  HcalDetId hcid2 = mergedDepth_ ? hdc_->mergedDepthDetId(hcid1) : hcid1;
913  edm::LogVerbatim("HBHEMuon") << hcid1 << " | " << hcid2 << " L " << activeLength(DetId(hcid2));
914  ++k2;
915  }
916 #endif
917 
918  bool changed = true;
919  all_triggers_.clear();
920  if (hltConfig_.init(iRun, iSetup, "HLT", changed)) {
921  // if init returns TRUE, initialisation has succeeded!
922 #ifdef EDM_ML_DEBUG
923  edm::LogVerbatim("HBHEMuon") << "HLT config with process name "
924  << "HLT"
925  << " successfully extracted" << std::endl;
926 #endif
927  unsigned int ntriggers = hltConfig_.size();
928  for (unsigned int t = 0; t < ntriggers; ++t) {
930  for (unsigned int ik = 0; ik < 6; ++ik) {
931  if (hltname.find(triggers_[ik]) != std::string::npos) {
932  all_triggers_.push_back(hltname);
933  break;
934  }
935  }
936  } //loop over ntriggers
937  edm::LogVerbatim("HBHEMuon") << "All triggers size in begin run " << all_triggers_.size() << std::endl;
938  } else {
939  edm::LogError("HBHEMuon") << "Error! HLT config extraction with process "
940  << "name HLT failed";
941  }
942 
944  iSetup.get<HcalRecNumberingRecord>().get(htopo);
945  theHBHETopology_ = htopo.product();
946 
948  iSetup.get<HcalRespCorrsRcd>().get(resp);
949  respCorrs_ = new HcalRespCorrs(*resp.product());
951 
952  // Write correction factors for all HB/HE events
953  if (writeRespCorr_) {
955  iSetup.get<CaloGeometryRecord>().get(pG);
956  const CaloGeometry* geo = pG.product();
958  const std::vector<DetId>& ids = gHcal->getValidDetIds(DetId::Hcal, 0);
959  edm::LogVerbatim("HBHEMuon") << "\nTable of Correction Factors for Run " << iRun.run() << "\n";
960  for (auto const& id : ids) {
961  if ((id.det() == DetId::Hcal) && ((id.subdetId() == HcalBarrel) || (id.subdetId() == HcalEndcap))) {
962  edm::LogVerbatim("HBHEMuon") << HcalDetId(id) << " " << id.rawId() << " "
963  << (respCorrs_->getValues(id))->getValue();
964  }
965  }
966  }
967 }

References actHB, actHE, activeLength(), all_triggers_, edm::EventSetup::get(), get, CaloGeometry::getSubdetectorGeometry(), HcalDDDRecConstants::getThickActive(), HcalGeometry::getValidDetIds(), reco::JetExtendedAssociation::getValue(), HcalCondObjectContainer< Item >::getValues(), DetId::Hcal, HcalBarrel, HcalEndcap, hdc_, hltConfig_, HLTConfigProvider::init(), mergedDepth_, HcalDDDRecConstants::mergedDepthDetId(), edm::ESHandle< T >::product(), DetId::rawId(), respCorrs_, edm::RunBase::run(), HcalCondObjectContainerBase::setTopo(), HLTConfigProvider::size(), AlCaHLTBitMon_QueryRunRegistry::string, OrderedSet::t, theHBHETopology_, HLTConfigProvider::triggerName(), triggers_, and writeRespCorr_.

◆ clearVectors()

void HcalHBHEMuonAnalyzer::clearVectors ( )
private

clearing vectots

Definition at line 996 of file HcalHBHEMuonAnalyzer.cc.

996  {
998  eventNumber_ = -99999;
999  runNumber_ = -99999;
1000  lumiNumber_ = -99999;
1001  bxNumber_ = -99999;
1002  goodVertex_ = -99999;
1003 
1004  muon_is_good_.clear();
1005  muon_global_.clear();
1006  muon_tracker_.clear();
1007  ptGlob_.clear();
1008  etaGlob_.clear();
1009  phiGlob_.clear();
1010  energyMuon_.clear();
1011  pMuon_.clear();
1012  muon_trkKink.clear();
1013  muon_chi2LocalPosition.clear();
1014  muon_segComp.clear();
1015  muon_is_tight_.clear();
1016  muon_is_medium_.clear();
1017 
1018  trackerLayer_.clear();
1019  numPixelLayers_.clear();
1020  tight_PixelHits_.clear();
1021  innerTrack_.clear();
1022  chiTracker_.clear();
1023  dxyTracker_.clear();
1024  dzTracker_.clear();
1025  innerTrackpt_.clear();
1026  innerTracketa_.clear();
1027  innerTrackphi_.clear();
1028  tight_validFraction_.clear();
1029 
1030  outerTrack_.clear();
1031  outerTrackPt_.clear();
1032  outerTrackEta_.clear();
1033  outerTrackPhi_.clear();
1034  outerTrackHits_.clear();
1035  outerTrackRHits_.clear();
1036  outerTrackChi_.clear();
1037 
1038  globalTrack_.clear();
1039  globalTrckPt_.clear();
1040  globalTrckEta_.clear();
1041  globalTrckPhi_.clear();
1042  globalMuonHits_.clear();
1043  matchedStat_.clear();
1044  chiGlobal_.clear();
1045  tight_LongPara_.clear();
1046  tight_TransImpara_.clear();
1047 
1048  isolationR04_.clear();
1049  isolationR03_.clear();
1050  ecalEnergy_.clear();
1051  hcalEnergy_.clear();
1052  hoEnergy_.clear();
1053  matchedId_.clear();
1054  hcalHot_.clear();
1055  ecal3x3Energy_.clear();
1056  hcal1x1Energy_.clear();
1057  ecalDetId_.clear();
1058  hcalDetId_.clear();
1059  ehcalDetId_.clear();
1060  hcal_ieta_.clear();
1061  hcal_iphi_.clear();
1062  for (int i = 0; i < maxDepth_; ++i) {
1063  hcalDepthEnergy_[i].clear();
1064  hcalDepthActiveLength_[i].clear();
1065  hcalDepthEnergyHot_[i].clear();
1066  hcalDepthActiveLengthHot_[i].clear();
1067  hcalDepthChargeHot_[i].clear();
1068  hcalDepthChargeHotBG_[i].clear();
1069  hcalDepthEnergyCorr_[i].clear();
1070  hcalDepthEnergyHotCorr_[i].clear();
1071  hcalDepthMatch_[i].clear();
1072  hcalDepthMatchHot_[i].clear();
1073  }
1074  hcalActiveLength_.clear();
1075  hcalActiveLengthHot_.clear();
1076  hltresults_.clear();
1077 }

References bxNumber_, chiGlobal_, chiTracker_, dxyTracker_, dzTracker_, ecal3x3Energy_, ecalDetId_, ecalEnergy_, ehcalDetId_, energyMuon_, etaGlob_, eventNumber_, globalMuonHits_, globalTrack_, globalTrckEta_, globalTrckPhi_, globalTrckPt_, goodVertex_, hcal1x1Energy_, hcal_ieta_, hcal_iphi_, hcalActiveLength_, hcalActiveLengthHot_, hcalDepthActiveLength_, hcalDepthActiveLengthHot_, hcalDepthChargeHot_, hcalDepthChargeHotBG_, hcalDepthEnergy_, hcalDepthEnergyCorr_, hcalDepthEnergyHot_, hcalDepthEnergyHotCorr_, hcalDepthMatch_, hcalDepthMatchHot_, hcalDetId_, hcalEnergy_, hcalHot_, hltresults_, hoEnergy_, mps_fire::i, innerTrack_, innerTracketa_, innerTrackphi_, innerTrackpt_, isolationR03_, isolationR04_, lumiNumber_, matchedId_, matchedStat_, maxDepth_, muon_chi2LocalPosition, muon_global_, muon_is_good_, muon_is_medium_, muon_is_tight_, muon_segComp, muon_tracker_, muon_trkKink, numPixelLayers_, outerTrack_, outerTrackChi_, outerTrackEta_, outerTrackHits_, outerTrackPhi_, outerTrackPt_, outerTrackRHits_, phiGlob_, pMuon_, ptGlob_, runNumber_, tight_LongPara_, tight_PixelHits_, tight_TransImpara_, tight_validFraction_, and trackerLayer_.

Referenced by analyze().

◆ depth16HE()

int HcalHBHEMuonAnalyzer::depth16HE ( int  ieta,
int  iphi 
)
private

Definition at line 1153 of file HcalHBHEMuonAnalyzer.cc.

1153  {
1154  // Transition between HB/HE is special
1155  // For Run 1 or for Plan1 standard reconstruction it is 3
1156  // For runs beyond 2018 or in Plan1 for HEP17 it is 4
1157  int zside = (ieta > 0) ? 1 : -1;
1159  if (isItPlan1_ && (!isItPreRecHit_))
1160  depth = 3;
1161 #ifdef EDM_ML_DEBUG
1162  edm::LogVerbatim("HBHEMuon") << "Plan1 " << isItPlan1_ << " PreRecHit " << isItPreRecHit_ << " phi " << iphi
1163  << " depth " << depth;
1164 #endif
1165  return depth;
1166 }

References HcalTopology::dddConstants(), LEDCalibrationChannels::depth, HcalDDDRecConstants::getMinDepth(), LEDCalibrationChannels::ieta, LEDCalibrationChannels::iphi, isItPlan1_, isItPreRecHit_, theHBHETopology_, and ecaldqm::zside().

Referenced by analyze().

◆ endRun()

void HcalHBHEMuonAnalyzer::endRun ( edm::Run const &  ,
edm::EventSetup const &   
)
inlineoverrideprivate

Definition at line 82 of file HcalHBHEMuonAnalyzer.cc.

82 {}

◆ fillDescriptions()

void HcalHBHEMuonAnalyzer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 970 of file HcalHBHEMuonAnalyzer.cc.

970  {
972  desc.add<edm::InputTag>("hlTriggerResults", edm::InputTag("TriggerResults", "", "HLT"));
973  desc.add<edm::InputTag>("labelEBRecHit", edm::InputTag("ecalRecHit", "EcalRecHitsEB"));
974  desc.add<edm::InputTag>("labelEERecHit", edm::InputTag("ecalRecHit", "EcalRecHitsEE"));
975  desc.add<edm::InputTag>("labelHBHERecHit", edm::InputTag("hbhereco"));
976  desc.add<std::string>("labelVertex", "offlinePrimaryVertices");
977  desc.add<std::string>("labelMuon", "muons");
978  std::vector<std::string> trig = {"HLT_IsoMu17", "HLT_IsoMu20", "HLT_IsoMu24", "HLT_IsoMu27", "HLT_Mu45", "HLT_Mu50"};
979  desc.add<std::vector<std::string>>("triggers", trig);
980  desc.addUntracked<int>("verbosity", 0);
981  desc.add<int>("useRaw", 0);
982  desc.add<bool>("unCorrect", false);
983  desc.add<bool>("getCharge", false);
984  desc.add<bool>("collapseDepth", false);
985  desc.add<bool>("isItPlan1", false);
986  desc.addUntracked<bool>("ignoreHECorr", false);
987  desc.addUntracked<bool>("isItPreRecHit", false);
988  desc.addUntracked<std::string>("moduleName", "");
989  desc.addUntracked<std::string>("processName", "");
990  desc.addUntracked<int>("maxDepth", 4);
991  desc.addUntracked<std::string>("fileInCorr", "");
992  desc.addUntracked<bool>("writeRespCorr", false);
993  descriptions.add("hcalHBHEMuon", desc);
994 }

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addUntracked(), HLT_2018_cff::InputTag, AlCaHLTBitMon_QueryRunRegistry::string, and ClusterTask_cfi::trig.

◆ gainFactor()

double HcalHBHEMuonAnalyzer::gainFactor ( const edm::ESHandle< HcalDbService > &  conditions,
const HcalDetId id 
)
private

Definition at line 1145 of file HcalHBHEMuonAnalyzer.cc.

1145  {
1146  double gain(0.0);
1147  const HcalCalibrations& calibs = conditions->getHcalCalibrations(id);
1148  for (int capid = 0; capid < 4; ++capid)
1149  gain += (0.25 * calibs.respcorrgain(capid));
1150  return gain;
1151 }

References PedestalClient_cfi::gain, HcalDbService::getHcalCalibrations(), and HcalCalibrations::respcorrgain().

Referenced by analyze().

◆ goodCell()

bool HcalHBHEMuonAnalyzer::goodCell ( const HcalDetId hcid,
const reco::Track pTrack,
const CaloGeometry geo,
const MagneticField bField 
)
private

Definition at line 1168 of file HcalHBHEMuonAnalyzer.cc.

1171  {
1172  std::pair<double, double> rz = hdc_->getRZ(hcid);
1173  bool typeRZ = (hcid.subdet() == HcalEndcap) ? false : true;
1174  bool match = spr::propagateHCAL(pTrack, geo, bField, typeRZ, rz, (((verbosity_ / 10000) % 10) > 0));
1175  return match;
1176 }

References Calorimetry_cff::bField, HcalDDDRecConstants::getRZ(), HcalEndcap, hdc_, match(), spr::propagateHCAL(), HcalDetId::subdet(), and verbosity_.

Referenced by analyze().

◆ isGoodVertex()

bool HcalHBHEMuonAnalyzer::isGoodVertex ( const reco::Vertex vtx)
private

Definition at line 1121 of file HcalHBHEMuonAnalyzer.cc.

1121  {
1122  if (vtx.isFake())
1123  return false;
1124  if (vtx.ndof() < 4)
1125  return false;
1126  if (vtx.position().Rho() > 2.)
1127  return false;
1128  if (fabs(vtx.position().Z()) > 24.)
1129  return false;
1130  return true;
1131 }

References badGlobalMuonTaggersAOD_cff::vtx.

Referenced by analyze().

◆ matchId()

int HcalHBHEMuonAnalyzer::matchId ( const HcalDetId id1,
const HcalDetId id2 
)
private

Definition at line 1079 of file HcalHBHEMuonAnalyzer.cc.

1079  {
1080  HcalDetId kd1(id1.subdet(), id1.ieta(), id1.iphi(), 1);
1081  HcalDetId kd2(id1.subdet(), id2.ieta(), id2.iphi(), 1);
1082  int match = ((kd1 == kd2) ? 1 : 0);
1083  return match;
1084 }

References globals_cff::id1, globals_cff::id2, and match().

Referenced by analyze().

◆ respCorr()

double HcalHBHEMuonAnalyzer::respCorr ( const DetId id)
private

Definition at line 1133 of file HcalHBHEMuonAnalyzer.cc.

1133  {
1134  double cfac(1.0);
1135  if (useMyCorr_) {
1136  auto itr = corrValue_.find(id);
1137  if (itr != corrValue_.end())
1138  cfac = itr->second;
1139  } else if (respCorrs_ != nullptr) {
1140  cfac = (respCorrs_->getValues(id))->getValue();
1141  }
1142  return cfac;
1143 }

References corrValue_, reco::JetExtendedAssociation::getValue(), HcalCondObjectContainer< Item >::getValues(), respCorrs_, and useMyCorr_.

Referenced by analyze().

Member Data Documentation

◆ actHB

std::vector<HcalDDDRecConstants::HcalActiveLength> HcalHBHEMuonAnalyzer::actHB
private

Definition at line 156 of file HcalHBHEMuonAnalyzer.cc.

Referenced by activeLength(), and beginRun().

◆ actHE

std::vector<HcalDDDRecConstants::HcalActiveLength> HcalHBHEMuonAnalyzer::actHE
private

Definition at line 156 of file HcalHBHEMuonAnalyzer.cc.

Referenced by activeLength(), and beginRun().

◆ all_triggers_

std::vector<std::string> HcalHBHEMuonAnalyzer::all_triggers_
private

Definition at line 153 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and beginRun().

◆ bxNumber_

unsigned int HcalHBHEMuonAnalyzer::bxNumber_
private

Definition at line 120 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ chiGlobal_

std::vector<double> HcalHBHEMuonAnalyzer::chiGlobal_
private

Definition at line 135 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ chiTracker_

std::vector<double> HcalHBHEMuonAnalyzer::chiTracker_
private

Definition at line 128 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ collapseDepth_

const bool HcalHBHEMuonAnalyzer::collapseDepth_
private

Definition at line 100 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), and HcalHBHEMuonAnalyzer().

◆ corrValue_

std::map<DetId, double> HcalHBHEMuonAnalyzer::corrValue_
private

Definition at line 157 of file HcalHBHEMuonAnalyzer.cc.

Referenced by HcalHBHEMuonAnalyzer(), and respCorr().

◆ depthMax_

const int HcalHBHEMuonAnalyzer::depthMax_ = 7
staticprivate

Definition at line 118 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), and HcalHBHEMuonAnalyzer().

◆ dxyTracker_

std::vector<double> HcalHBHEMuonAnalyzer::dxyTracker_
private

Definition at line 128 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ dzTracker_

std::vector<double> HcalHBHEMuonAnalyzer::dzTracker_
private

Definition at line 128 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ ecal3x3Energy_

std::vector<double> HcalHBHEMuonAnalyzer::ecal3x3Energy_
private

Definition at line 139 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ ecalDetId_

std::vector<unsigned int> HcalHBHEMuonAnalyzer::ecalDetId_
private

Definition at line 140 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ ecalEnergy_

std::vector<double> HcalHBHEMuonAnalyzer::ecalEnergy_
private

Definition at line 137 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ ehcalDetId_

std::vector<unsigned int> HcalHBHEMuonAnalyzer::ehcalDetId_
private

Definition at line 140 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ energyMuon_

std::vector<double> HcalHBHEMuonAnalyzer::energyMuon_
private

Definition at line 124 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ etaGlob_

std::vector<double> HcalHBHEMuonAnalyzer::etaGlob_
private

Definition at line 124 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ eventNumber_

unsigned int HcalHBHEMuonAnalyzer::eventNumber_
private

Definition at line 120 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ fileInCorr_

const std::string HcalHBHEMuonAnalyzer::fileInCorr_
private

Definition at line 97 of file HcalHBHEMuonAnalyzer.cc.

Referenced by HcalHBHEMuonAnalyzer().

◆ fs

edm::Service<TFileService> HcalHBHEMuonAnalyzer::fs
private

Definition at line 94 of file HcalHBHEMuonAnalyzer.cc.

Referenced by beginJob().

◆ getCharge_

const bool HcalHBHEMuonAnalyzer::getCharge_
private

Definition at line 102 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), and HcalHBHEMuonAnalyzer().

◆ globalMuonHits_

std::vector<int> HcalHBHEMuonAnalyzer::globalMuonHits_
private

Definition at line 134 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ globalTrack_

std::vector<bool> HcalHBHEMuonAnalyzer::globalTrack_
private

Definition at line 127 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ globalTrckEta_

std::vector<double> HcalHBHEMuonAnalyzer::globalTrckEta_
private

Definition at line 133 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ globalTrckPhi_

std::vector<double> HcalHBHEMuonAnalyzer::globalTrckPhi_
private

Definition at line 133 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ globalTrckPt_

std::vector<double> HcalHBHEMuonAnalyzer::globalTrckPt_
private

Definition at line 133 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ goodVertex_

unsigned int HcalHBHEMuonAnalyzer::goodVertex_
private

Definition at line 121 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ hcal1x1Energy_

std::vector<double> HcalHBHEMuonAnalyzer::hcal1x1Energy_
private

Definition at line 139 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ hcal_ieta_

std::vector<int> HcalHBHEMuonAnalyzer::hcal_ieta_
private

Definition at line 141 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ hcal_iphi_

std::vector<int> HcalHBHEMuonAnalyzer::hcal_iphi_
private

Definition at line 141 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ hcalActiveLength_

std::vector<double> HcalHBHEMuonAnalyzer::hcalActiveLength_
private

Definition at line 152 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ hcalActiveLengthHot_

std::vector<double> HcalHBHEMuonAnalyzer::hcalActiveLengthHot_
private

Definition at line 152 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ hcalDepthActiveLength_

std::vector<double> HcalHBHEMuonAnalyzer::hcalDepthActiveLength_[depthMax_]
private

Definition at line 143 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ hcalDepthActiveLengthHot_

std::vector<double> HcalHBHEMuonAnalyzer::hcalDepthActiveLengthHot_[depthMax_]
private

Definition at line 145 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ hcalDepthChargeHot_

std::vector<double> HcalHBHEMuonAnalyzer::hcalDepthChargeHot_[depthMax_]
private

Definition at line 146 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ hcalDepthChargeHotBG_

std::vector<double> HcalHBHEMuonAnalyzer::hcalDepthChargeHotBG_[depthMax_]
private

Definition at line 147 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ hcalDepthEnergy_

std::vector<double> HcalHBHEMuonAnalyzer::hcalDepthEnergy_[depthMax_]
private

Definition at line 142 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ hcalDepthEnergyCorr_

std::vector<double> HcalHBHEMuonAnalyzer::hcalDepthEnergyCorr_[depthMax_]
private

Definition at line 148 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ hcalDepthEnergyHot_

std::vector<double> HcalHBHEMuonAnalyzer::hcalDepthEnergyHot_[depthMax_]
private

Definition at line 144 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ hcalDepthEnergyHotCorr_

std::vector<double> HcalHBHEMuonAnalyzer::hcalDepthEnergyHotCorr_[depthMax_]
private

Definition at line 149 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ hcalDepthMatch_

std::vector<bool> HcalHBHEMuonAnalyzer::hcalDepthMatch_[depthMax_]
private

Definition at line 150 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ hcalDepthMatchHot_

std::vector<bool> HcalHBHEMuonAnalyzer::hcalDepthMatchHot_[depthMax_]
private

Definition at line 151 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ hcalDetId_

std::vector<unsigned int> HcalHBHEMuonAnalyzer::hcalDetId_
private

Definition at line 140 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ hcalEnergy_

std::vector<double> HcalHBHEMuonAnalyzer::hcalEnergy_
private

Definition at line 137 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ hcalHot_

std::vector<bool> HcalHBHEMuonAnalyzer::hcalHot_
private

Definition at line 138 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ hdc_

const HcalDDDRecConstants* HcalHBHEMuonAnalyzer::hdc_
private

Definition at line 106 of file HcalHBHEMuonAnalyzer.cc.

Referenced by activeLength(), analyze(), beginRun(), and goodCell().

◆ hltConfig_

HLTConfigProvider HcalHBHEMuonAnalyzer::hltConfig_
private

Definition at line 93 of file HcalHBHEMuonAnalyzer.cc.

Referenced by beginRun().

◆ hltresults_

std::vector<int> HcalHBHEMuonAnalyzer::hltresults_
private

Definition at line 154 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ hlTriggerResults_

const edm::InputTag HcalHBHEMuonAnalyzer::hlTriggerResults_
private

Definition at line 95 of file HcalHBHEMuonAnalyzer.cc.

Referenced by HcalHBHEMuonAnalyzer().

◆ hoEnergy_

std::vector<double> HcalHBHEMuonAnalyzer::hoEnergy_
private

Definition at line 137 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ ignoreHECorr_

const bool HcalHBHEMuonAnalyzer::ignoreHECorr_
private

Definition at line 101 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), and HcalHBHEMuonAnalyzer().

◆ innerTrack_

std::vector<bool> HcalHBHEMuonAnalyzer::innerTrack_
private

Definition at line 127 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ innerTracketa_

std::vector<double> HcalHBHEMuonAnalyzer::innerTracketa_
private

Definition at line 129 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ innerTrackphi_

std::vector<double> HcalHBHEMuonAnalyzer::innerTrackphi_
private

Definition at line 129 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ innerTrackpt_

std::vector<double> HcalHBHEMuonAnalyzer::innerTrackpt_
private

Definition at line 129 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ isItPlan1_

const bool HcalHBHEMuonAnalyzer::isItPlan1_
private

Definition at line 100 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), depth16HE(), and HcalHBHEMuonAnalyzer().

◆ isItPreRecHit_

const bool HcalHBHEMuonAnalyzer::isItPreRecHit_
private

Definition at line 101 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), depth16HE(), and HcalHBHEMuonAnalyzer().

◆ isolationR03_

std::vector<double> HcalHBHEMuonAnalyzer::isolationR03_
private

Definition at line 136 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ isolationR04_

std::vector<double> HcalHBHEMuonAnalyzer::isolationR04_
private

Definition at line 136 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ kount_

int HcalHBHEMuonAnalyzer::kount_
private

Definition at line 104 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), and HcalHBHEMuonAnalyzer().

◆ labelEBRecHit_

const edm::InputTag HcalHBHEMuonAnalyzer::labelEBRecHit_
private

Definition at line 96 of file HcalHBHEMuonAnalyzer.cc.

Referenced by HcalHBHEMuonAnalyzer().

◆ labelEERecHit_

const edm::InputTag HcalHBHEMuonAnalyzer::labelEERecHit_
private

Definition at line 96 of file HcalHBHEMuonAnalyzer.cc.

Referenced by HcalHBHEMuonAnalyzer().

◆ labelHBHERecHit_

const edm::InputTag HcalHBHEMuonAnalyzer::labelHBHERecHit_
private

Definition at line 96 of file HcalHBHEMuonAnalyzer.cc.

Referenced by HcalHBHEMuonAnalyzer().

◆ labelMuon_

const std::string HcalHBHEMuonAnalyzer::labelMuon_
private

Definition at line 97 of file HcalHBHEMuonAnalyzer.cc.

Referenced by HcalHBHEMuonAnalyzer().

◆ labelVtx_

const std::string HcalHBHEMuonAnalyzer::labelVtx_
private

Definition at line 97 of file HcalHBHEMuonAnalyzer.cc.

Referenced by HcalHBHEMuonAnalyzer().

◆ lumiNumber_

unsigned int HcalHBHEMuonAnalyzer::lumiNumber_
private

Definition at line 120 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ matchedId_

std::vector<bool> HcalHBHEMuonAnalyzer::matchedId_
private

Definition at line 138 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ matchedStat_

std::vector<int> HcalHBHEMuonAnalyzer::matchedStat_
private

Definition at line 134 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ maxDepth_

int HcalHBHEMuonAnalyzer::maxDepth_
private

Definition at line 104 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), clearVectors(), and HcalHBHEMuonAnalyzer().

◆ mergedDepth_

bool HcalHBHEMuonAnalyzer::mergedDepth_
private

Definition at line 103 of file HcalHBHEMuonAnalyzer.cc.

Referenced by activeLength(), beginRun(), and HcalHBHEMuonAnalyzer().

◆ muon_chi2LocalPosition

std::vector<float> HcalHBHEMuonAnalyzer::muon_chi2LocalPosition
private

Definition at line 125 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ muon_global_

std::vector<bool> HcalHBHEMuonAnalyzer::muon_global_
private

Definition at line 122 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ muon_is_good_

std::vector<bool> HcalHBHEMuonAnalyzer::muon_is_good_
private

Definition at line 122 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ muon_is_medium_

std::vector<bool> HcalHBHEMuonAnalyzer::muon_is_medium_
private

Definition at line 123 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ muon_is_tight_

std::vector<bool> HcalHBHEMuonAnalyzer::muon_is_tight_
private

Definition at line 123 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ muon_segComp

std::vector<float> HcalHBHEMuonAnalyzer::muon_segComp
private

Definition at line 125 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ muon_tracker_

std::vector<bool> HcalHBHEMuonAnalyzer::muon_tracker_
private

Definition at line 122 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ muon_trkKink

std::vector<float> HcalHBHEMuonAnalyzer::muon_trkKink
private

Definition at line 125 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ numPixelLayers_

std::vector<int> HcalHBHEMuonAnalyzer::numPixelLayers_
private

Definition at line 126 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ outerTrack_

std::vector<bool> HcalHBHEMuonAnalyzer::outerTrack_
private

Definition at line 127 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ outerTrackChi_

std::vector<double> HcalHBHEMuonAnalyzer::outerTrackChi_
private

Definition at line 130 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ outerTrackEta_

std::vector<double> HcalHBHEMuonAnalyzer::outerTrackEta_
private

Definition at line 131 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ outerTrackHits_

std::vector<int> HcalHBHEMuonAnalyzer::outerTrackHits_
private

Definition at line 132 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ outerTrackPhi_

std::vector<double> HcalHBHEMuonAnalyzer::outerTrackPhi_
private

Definition at line 131 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ outerTrackPt_

std::vector<double> HcalHBHEMuonAnalyzer::outerTrackPt_
private

Definition at line 131 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ outerTrackRHits_

std::vector<int> HcalHBHEMuonAnalyzer::outerTrackRHits_
private

Definition at line 132 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ phiGlob_

std::vector<double> HcalHBHEMuonAnalyzer::phiGlob_
private

Definition at line 124 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ pMuon_

std::vector<double> HcalHBHEMuonAnalyzer::pMuon_
private

Definition at line 124 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ ptGlob_

std::vector<double> HcalHBHEMuonAnalyzer::ptGlob_
private

Definition at line 124 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ respCorrs_

HcalRespCorrs* HcalHBHEMuonAnalyzer::respCorrs_
private

Definition at line 108 of file HcalHBHEMuonAnalyzer.cc.

Referenced by beginRun(), and respCorr().

◆ runNumber_

unsigned int HcalHBHEMuonAnalyzer::runNumber_
private

Definition at line 120 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ theHBHETopology_

const HcalTopology* HcalHBHEMuonAnalyzer::theHBHETopology_
private

Definition at line 107 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginRun(), and depth16HE().

◆ tight_LongPara_

std::vector<double> HcalHBHEMuonAnalyzer::tight_LongPara_
private

Definition at line 135 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ tight_PixelHits_

std::vector<int> HcalHBHEMuonAnalyzer::tight_PixelHits_
private

Definition at line 126 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ tight_TransImpara_

std::vector<double> HcalHBHEMuonAnalyzer::tight_TransImpara_
private

Definition at line 135 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ tight_validFraction_

std::vector<double> HcalHBHEMuonAnalyzer::tight_validFraction_
private

Definition at line 130 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ tok_EB_

edm::EDGetTokenT<EcalRecHitCollection> HcalHBHEMuonAnalyzer::tok_EB_
private

Definition at line 112 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), and HcalHBHEMuonAnalyzer().

◆ tok_EE_

edm::EDGetTokenT<EcalRecHitCollection> HcalHBHEMuonAnalyzer::tok_EE_
private

Definition at line 113 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), and HcalHBHEMuonAnalyzer().

◆ tok_HBHE_

edm::EDGetTokenT<HBHERecHitCollection> HcalHBHEMuonAnalyzer::tok_HBHE_
private

Definition at line 114 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), and HcalHBHEMuonAnalyzer().

◆ tok_Muon_

edm::EDGetTokenT<reco::MuonCollection> HcalHBHEMuonAnalyzer::tok_Muon_
private

Definition at line 115 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), and HcalHBHEMuonAnalyzer().

◆ tok_trigRes_

edm::EDGetTokenT<edm::TriggerResults> HcalHBHEMuonAnalyzer::tok_trigRes_
private

Definition at line 110 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), and HcalHBHEMuonAnalyzer().

◆ tok_Vtx_

edm::EDGetTokenT<reco::VertexCollection> HcalHBHEMuonAnalyzer::tok_Vtx_
private

Definition at line 111 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), and HcalHBHEMuonAnalyzer().

◆ trackerLayer_

std::vector<int> HcalHBHEMuonAnalyzer::trackerLayer_
private

Definition at line 126 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), beginJob(), and clearVectors().

◆ tree_

TTree* HcalHBHEMuonAnalyzer::tree_
private

Definition at line 119 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ triggers_

const std::vector<std::string> HcalHBHEMuonAnalyzer::triggers_
private

Definition at line 98 of file HcalHBHEMuonAnalyzer.cc.

Referenced by beginRun().

◆ unCorrect_

const bool HcalHBHEMuonAnalyzer::unCorrect_
private

Definition at line 100 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), and HcalHBHEMuonAnalyzer().

◆ useMyCorr_

bool HcalHBHEMuonAnalyzer::useMyCorr_
private

Definition at line 103 of file HcalHBHEMuonAnalyzer.cc.

Referenced by HcalHBHEMuonAnalyzer(), and respCorr().

◆ useRaw_

const int HcalHBHEMuonAnalyzer::useRaw_
private

Definition at line 99 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), and HcalHBHEMuonAnalyzer().

◆ verbosity_

const int HcalHBHEMuonAnalyzer::verbosity_
private

Definition at line 99 of file HcalHBHEMuonAnalyzer.cc.

Referenced by analyze(), and goodCell().

◆ writeRespCorr_

const bool HcalHBHEMuonAnalyzer::writeRespCorr_
private

Definition at line 102 of file HcalHBHEMuonAnalyzer.cc.

Referenced by beginRun().

HcalHBHEMuonAnalyzer::innerTracketa_
std::vector< double > innerTracketa_
Definition: HcalHBHEMuonAnalyzer.cc:129
HcalHBHEMuonAnalyzer::muon_global_
std::vector< bool > muon_global_
Definition: HcalHBHEMuonAnalyzer.cc:122
HcalHBHEMuonAnalyzer::outerTrackPt_
std::vector< double > outerTrackPt_
Definition: HcalHBHEMuonAnalyzer.cc:131
HcalHBHEMuonAnalyzer::dxyTracker_
std::vector< double > dxyTracker_
Definition: HcalHBHEMuonAnalyzer.cc:128
HcalDDDRecConstants::mergedDepthDetId
HcalDetId mergedDepthDetId(const HcalDetId &id) const
Definition: HcalDDDRecConstants.cc:647
HcalHBHEMuonAnalyzer::ignoreHECorr_
const bool ignoreHECorr_
Definition: HcalHBHEMuonAnalyzer.cc:101
HcalHBHEMuonAnalyzer::pMuon_
std::vector< double > pMuon_
Definition: HcalHBHEMuonAnalyzer.cc:124
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
HcalHBHEMuonAnalyzer::hcalDepthActiveLengthHot_
std::vector< double > hcalDepthActiveLengthHot_[depthMax_]
Definition: HcalHBHEMuonAnalyzer.cc:145
HcalHBHEMuonAnalyzer::hcalDepthEnergyHot_
std::vector< double > hcalDepthEnergyHot_[depthMax_]
Definition: HcalHBHEMuonAnalyzer.cc:144
HcalHBHEMuonAnalyzer::isGoodVertex
bool isGoodVertex(const reco::Vertex &vtx)
Definition: HcalHBHEMuonAnalyzer.cc:1121
HcalHBHEMuonAnalyzer::matchedStat_
std::vector< int > matchedStat_
Definition: HcalHBHEMuonAnalyzer.cc:134
HcalRespCorrs
Definition: HcalRespCorrs.h:17
mps_fire.i
i
Definition: mps_fire.py:355
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
HcalHBHEMuonAnalyzer::tight_PixelHits_
std::vector< int > tight_PixelHits_
Definition: HcalHBHEMuonAnalyzer.cc:126
HcalHBHEMuonAnalyzer::hcalDepthChargeHot_
std::vector< double > hcalDepthChargeHot_[depthMax_]
Definition: HcalHBHEMuonAnalyzer.cc:146
HcalTopology::validHcal
bool validHcal(const HcalDetId &id) const
Definition: HcalTopology.cc:230
HcalHBHEMuonAnalyzer::tight_validFraction_
std::vector< double > tight_validFraction_
Definition: HcalHBHEMuonAnalyzer.cc:130
HcalHBHEMuonAnalyzer::muon_is_good_
std::vector< bool > muon_is_good_
Definition: HcalHBHEMuonAnalyzer.cc:122
HcalCondObjectContainerBase::setTopo
void setTopo(const HcalTopology *topo)
Definition: HcalCondObjectContainerBase.cc:17
HcalHBHEMuonAnalyzer::gainFactor
double gainFactor(const edm::ESHandle< HcalDbService > &, const HcalDetId &id)
Definition: HcalHBHEMuonAnalyzer.cc:1145
HcalHBHEMuonAnalyzer::getCharge_
const bool getCharge_
Definition: HcalHBHEMuonAnalyzer.cc:102
spr::propagatedTrackID::detIdEHCAL
DetId detIdEHCAL
Definition: CaloPropagateTrack.h:47
HcalHBHEMuonAnalyzer::collapseDepth_
const bool collapseDepth_
Definition: HcalHBHEMuonAnalyzer.cc:100
HcalHBHEMuonAnalyzer::isolationR03_
std::vector< double > isolationR03_
Definition: HcalHBHEMuonAnalyzer.cc:136
HcalHBHEMuonAnalyzer::isItPlan1_
const bool isItPlan1_
Definition: HcalHBHEMuonAnalyzer.cc:100
HcalDetId::iphi
constexpr int iphi() const
get the cell iphi
Definition: HcalDetId.h:157
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
muon::segmentCompatibility
float segmentCompatibility(const reco::Muon &muon, reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration)
Definition: MuonSelectors.cc:61
HcalDDDRecConstants::getThickActive
std::vector< HcalActiveLength > getThickActive(const int &type) const
Definition: HcalDDDRecConstants.cc:465
HcalHBHEMuonAnalyzer::tok_EE_
edm::EDGetTokenT< EcalRecHitCollection > tok_EE_
Definition: HcalHBHEMuonAnalyzer.cc:113
ecaldqm::zside
int zside(DetId const &)
Definition: EcalDQMCommonUtils.cc:189
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
HcalHBHEMuonAnalyzer::hcalDepthEnergy_
std::vector< double > hcalDepthEnergy_[depthMax_]
Definition: HcalHBHEMuonAnalyzer.cc:142
HcalHBHEMuonAnalyzer::tok_trigRes_
edm::EDGetTokenT< edm::TriggerResults > tok_trigRes_
Definition: HcalHBHEMuonAnalyzer.cc:110
HcalHBHEMuonAnalyzer::respCorr
double respCorr(const DetId &id)
Definition: HcalHBHEMuonAnalyzer.cc:1133
globals_cff.id1
id1
Definition: globals_cff.py:32
HcalHBHEMuonAnalyzer::outerTrackPhi_
std::vector< double > outerTrackPhi_
Definition: HcalHBHEMuonAnalyzer.cc:131
HcalHBHEMuonAnalyzer::muon_trkKink
std::vector< float > muon_trkKink
Definition: HcalHBHEMuonAnalyzer.cc:125
DetId::Hcal
Definition: DetId.h:28
HcalHBHEMuonAnalyzer::labelHBHERecHit_
const edm::InputTag labelHBHERecHit_
Definition: HcalHBHEMuonAnalyzer.cc:96
HcalHBHEMuonAnalyzer::maxDepth_
int maxDepth_
Definition: HcalHBHEMuonAnalyzer.cc:104
HcalHBHEMuonAnalyzer::energyMuon_
std::vector< double > energyMuon_
Definition: HcalHBHEMuonAnalyzer.cc:124
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
CaloGeometry::getSubdetectorGeometry
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
Definition: CaloGeometry.cc:34
HcalHBHEMuonAnalyzer::hcalDepthChargeHotBG_
std::vector< double > hcalDepthChargeHotBG_[depthMax_]
Definition: HcalHBHEMuonAnalyzer.cc:147
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:215
HcalHBHEMuonAnalyzer::actHB
std::vector< HcalDDDRecConstants::HcalActiveLength > actHB
Definition: HcalHBHEMuonAnalyzer.cc:156
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:152
HcalHBHEMuonAnalyzer::tok_HBHE_
edm::EDGetTokenT< HBHERecHitCollection > tok_HBHE_
Definition: HcalHBHEMuonAnalyzer.cc:114
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
HcalHBHEMuonAnalyzer::verbosity_
const int verbosity_
Definition: HcalHBHEMuonAnalyzer.cc:99
HcalHBHEMuonAnalyzer::innerTrackphi_
std::vector< double > innerTrackphi_
Definition: HcalHBHEMuonAnalyzer.cc:129
HcalHBHEMuonAnalyzer::isItPreRecHit_
const bool isItPreRecHit_
Definition: HcalHBHEMuonAnalyzer.cc:101
CaloTopologyRecord
Definition: CaloTopologyRecord.h:10
HcalHBHEMuonAnalyzer::all_triggers_
std::vector< std::string > all_triggers_
Definition: HcalHBHEMuonAnalyzer.cc:153
HcalHBHEMuonAnalyzer::writeRespCorr_
const bool writeRespCorr_
Definition: HcalHBHEMuonAnalyzer.cc:102
HcalBarrel
Definition: HcalAssistant.h:33
HcalHBHEMuonAnalyzer::mergedDepth_
bool mergedDepth_
Definition: HcalHBHEMuonAnalyzer.cc:103
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
EcalCondObjectContainer< EcalChannelStatusCode >
edm::Handle< edm::TriggerResults >
HcalHBHEMuonAnalyzer::eventNumber_
unsigned int eventNumber_
Definition: HcalHBHEMuonAnalyzer.cc:120
HcalHBHEMuonAnalyzer::hcalActiveLength_
std::vector< double > hcalActiveLength_
Definition: HcalHBHEMuonAnalyzer.cc:152
CaloTopology
Definition: CaloTopology.h:19
HcalCondObjectContainer::getValues
const Item * getValues(DetId fId, bool throwOnFail=true) const
Definition: HcalCondObjectContainer.h:159
chg
const float chg[109]
Definition: CoreSimTrack.cc:5
HcalHBHEMuonAnalyzer::hcalDepthEnergyHotCorr_
std::vector< double > hcalDepthEnergyHotCorr_[depthMax_]
Definition: HcalHBHEMuonAnalyzer.cc:149
HcalGeometry::getValidDetIds
const std::vector< DetId > & getValidDetIds(DetId::Detector det=DetId::Detector(0), int subdet=0) const override
Get a list of valid detector ids (for the given subdetector)
Definition: HcalGeometry.cc:75
HcalDbService::getHcalCalibrations
const HcalCalibrations & getHcalCalibrations(const HcalGenericDetId &fId) const
Definition: HcalDbService.cc:65
HcalHBHEMuonAnalyzer::actHE
std::vector< HcalDDDRecConstants::HcalActiveLength > actHE
Definition: HcalHBHEMuonAnalyzer.cc:156
HcalHBHEMuonAnalyzer::matchId
int matchId(const HcalDetId &, const HcalDetId &)
Definition: HcalHBHEMuonAnalyzer.cc:1079
LEDCalibrationChannels.iphi
iphi
Definition: LEDCalibrationChannels.py:64
IdealMagneticFieldRecord
Definition: IdealMagneticFieldRecord.h:11
DetId
Definition: DetId.h:17
accept
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:30
CaloGeometry
Definition: CaloGeometry.h:21
RPCNoise_example.check
check
Definition: RPCNoise_example.py:71
HcalHBHEMuonAnalyzer::useRaw_
const int useRaw_
Definition: HcalHBHEMuonAnalyzer.cc:99
spr::energyHCALCell
void energyHCALCell(HcalDetId detId, edm::Handle< T > &hits, std::vector< std::pair< double, int > > &energyCell, int maxDepth=1, double hbThr=-100, double heThr=-100, double hfThr=-100, double hoThr=-100, double tMin=-500, double tMax=500, int useRaw=0, int depthHE=3, bool debug=false)
HcalHBHEMuonAnalyzer::muon_tracker_
std::vector< bool > muon_tracker_
Definition: HcalHBHEMuonAnalyzer.cc:122
HcalHBHEMuonAnalyzer::tok_Muon_
edm::EDGetTokenT< reco::MuonCollection > tok_Muon_
Definition: HcalHBHEMuonAnalyzer.cc:115
HcalHBHEMuonAnalyzer::numPixelLayers_
std::vector< int > numPixelLayers_
Definition: HcalHBHEMuonAnalyzer.cc:126
spr::eECALmatrix
double eECALmatrix(const DetId &detId, edm::Handle< T > &hitsEB, edm::Handle< T > &hitsEE, const CaloGeometry *geo, const CaloTopology *caloTopology, int ieta, int iphi, double ebThr=-100, double eeThr=-100, double tMin=-500, double tMax=500, bool debug=false)
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
HcalHBHEMuonAnalyzer::isolationR04_
std::vector< double > isolationR04_
Definition: HcalHBHEMuonAnalyzer.cc:136
HcalHBHEMuonAnalyzer::fs
edm::Service< TFileService > fs
Definition: HcalHBHEMuonAnalyzer.cc:94
HcalHBHEMuonAnalyzer::runNumber_
unsigned int runNumber_
Definition: HcalHBHEMuonAnalyzer.cc:120
HcalHBHEMuonAnalyzer::muon_is_tight_
std::vector< bool > muon_is_tight_
Definition: HcalHBHEMuonAnalyzer.cc:123
edm::HLTGlobalStatus::size
unsigned int size() const
Get number of paths stored.
Definition: HLTGlobalStatus.h:35
alignCSCRings.corr
dictionary corr
Definition: alignCSCRings.py:124
HcalHBHEMuonAnalyzer::ecalDetId_
std::vector< unsigned int > ecalDetId_
Definition: HcalHBHEMuonAnalyzer.cc:140
spr::propagatedTrackID::okECAL
bool okECAL
Definition: CaloPropagateTrack.h:46
HcalHBHEMuonAnalyzer::trackerLayer_
std::vector< int > trackerLayer_
Definition: HcalHBHEMuonAnalyzer.cc:126
HcalHBHEMuonAnalyzer::ehcalDetId_
std::vector< unsigned int > ehcalDetId_
Definition: HcalHBHEMuonAnalyzer.cc:140
reco::Track
Definition: Track.h:27
edm::ESHandle< CaloGeometry >
EcalSeverityLevelAlgoRcd
Definition: EcalSeverityLevelAlgoRcd.h:12
HcalHBHEMuonAnalyzer::phiGlob_
std::vector< double > phiGlob_
Definition: HcalHBHEMuonAnalyzer.cc:124
HcalHBHEMuonAnalyzer::labelEBRecHit_
const edm::InputTag labelEBRecHit_
Definition: HcalHBHEMuonAnalyzer.cc:96
HcalHBHEMuonAnalyzer::dzTracker_
std::vector< double > dzTracker_
Definition: HcalHBHEMuonAnalyzer.cc:128
HcalHBHEMuonAnalyzer::hlTriggerResults_
const edm::InputTag hlTriggerResults_
Definition: HcalHBHEMuonAnalyzer.cc:95
HcalHBHEMuonAnalyzer::respCorrs_
HcalRespCorrs * respCorrs_
Definition: HcalHBHEMuonAnalyzer.cc:108
dqmdumpme.k
k
Definition: dqmdumpme.py:60
HcalCalibrations
Definition: HcalCalibrations.h:9
OrderedSet.t
t
Definition: OrderedSet.py:90
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
HcalRecNumberingRecord
Definition: HcalRecNumberingRecord.h:23
HcalDDDRecConstants::getMinDepth
int getMinDepth(const int &itype, const int &ieta, const int &iphi, const int &zside) const
Definition: HcalDDDRecConstants.cc:353
HcalCalibrations::respcorrgain
constexpr double respcorrgain(int fCapId) const
get response corrected gain for capid=0..3
Definition: HcalCalibrations.h:42
badGlobalMuonTaggersAOD_cff.vtx
vtx
Definition: badGlobalMuonTaggersAOD_cff.py:5
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HLTConfigProvider::size
unsigned int size() const
number of trigger paths in trigger table
Definition: HLTConfigProvider.h:62
HcalHBHEMuonAnalyzer::globalMuonHits_
std::vector< int > globalMuonHits_
Definition: HcalHBHEMuonAnalyzer.cc:134
edm::LogWarning
Definition: MessageLogger.h:141
edm::ParameterSetDescription::addUntracked
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:100
HcalHBHEMuonAnalyzer::hcalDepthEnergyCorr_
std::vector< double > hcalDepthEnergyCorr_[depthMax_]
Definition: HcalHBHEMuonAnalyzer.cc:148
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
HcalDetId::ieta
constexpr int ieta() const
get the cell ieta
Definition: HcalDetId.h:155
spr::propagatedTrackID::detIdHCAL
DetId detIdHCAL
Definition: CaloPropagateTrack.h:47
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
HcalHBHEMuonAnalyzer::hcal1x1Energy_
std::vector< double > hcal1x1Energy_
Definition: HcalHBHEMuonAnalyzer.cc:139
edm::LogError
Definition: MessageLogger.h:183
spr::propagatedTrackID::detIdECAL
DetId detIdECAL
Definition: CaloPropagateTrack.h:47
HcalHBHEMuonAnalyzer::outerTrackRHits_
std::vector< int > outerTrackRHits_
Definition: HcalHBHEMuonAnalyzer.cc:132
HcalHBHEMuonAnalyzer::hltresults_
std::vector< int > hltresults_
Definition: HcalHBHEMuonAnalyzer.cc:154
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
EcalChannelStatusRcd
Definition: EcalChannelStatusRcd.h:5
HcalHBHEMuonAnalyzer::hcalHot_
std::vector< bool > hcalHot_
Definition: HcalHBHEMuonAnalyzer.cc:138
HcalHBHEMuonAnalyzer::globalTrckPt_
std::vector< double > globalTrckPt_
Definition: HcalHBHEMuonAnalyzer.cc:133
HcalHBHEMuonAnalyzer::labelEERecHit_
const edm::InputTag labelEERecHit_
Definition: HcalHBHEMuonAnalyzer.cc:96
muon::isTightMuon
bool isTightMuon(const reco::Muon &, const reco::Vertex &)
Definition: MuonSelectors.cc:895
HcalTopology::dddConstants
const HcalDDDRecConstants * dddConstants() const
Definition: HcalTopology.h:164
HcalHBHEMuonAnalyzer::lumiNumber_
unsigned int lumiNumber_
Definition: HcalHBHEMuonAnalyzer.cc:120
match
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:10
reco::JetExtendedAssociation::getValue
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
Definition: JetExtendedAssociation.cc:50
HcalDetId::subdet
constexpr HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:138
HcalDetId
Definition: HcalDetId.h:12
createfilelist.int
int
Definition: createfilelist.py:10
HcalHBHEMuonAnalyzer::useMyCorr_
bool useMyCorr_
Definition: HcalHBHEMuonAnalyzer.cc:103
HcalHBHEMuonAnalyzer::chiTracker_
std::vector< double > chiTracker_
Definition: HcalHBHEMuonAnalyzer.cc:128
iEvent
int iEvent
Definition: GenABIO.cc:224
HcalHBHEMuonAnalyzer::labelVtx_
const std::string labelVtx_
Definition: HcalHBHEMuonAnalyzer.cc:97
edm::LogVerbatim
Definition: MessageLogger.h:297
HcalHBHEMuonAnalyzer::innerTrack_
std::vector< bool > innerTrack_
Definition: HcalHBHEMuonAnalyzer.cc:127
HcalHBHEMuonAnalyzer::outerTrackHits_
std::vector< int > outerTrackHits_
Definition: HcalHBHEMuonAnalyzer.cc:132
HcalHBHEMuonAnalyzer::globalTrack_
std::vector< bool > globalTrack_
Definition: HcalHBHEMuonAnalyzer.cc:127
HcalHBHEMuonAnalyzer::depthMax_
static const int depthMax_
Definition: HcalHBHEMuonAnalyzer.cc:118
HcalHBHEMuonAnalyzer::outerTrackEta_
std::vector< double > outerTrackEta_
Definition: HcalHBHEMuonAnalyzer.cc:131
HcalRespCorrsRcd
Definition: HcalRespCorrsRcd.h:27
HcalHBHEMuonAnalyzer::globalTrckEta_
std::vector< double > globalTrckEta_
Definition: HcalHBHEMuonAnalyzer.cc:133
HcalHBHEMuonAnalyzer::clearVectors
void clearVectors()
Definition: HcalHBHEMuonAnalyzer.cc:996
itr
std::vector< std::pair< float, float > >::iterator itr
Definition: HGCDigitizer.cc:28
muon::isMediumMuon
bool isMediumMuon(const reco::Muon &, bool run2016_hip_mitigation=false)
Definition: MuonSelectors.cc:914
get
#define get
ClusterTask_cfi.trig
trig
Definition: ClusterTask_cfi.py:336
spr::propagatedTrackID::okHCAL
bool okHCAL
Definition: CaloPropagateTrack.h:46
HcalHBHEMuonAnalyzer::kount_
int kount_
Definition: HcalHBHEMuonAnalyzer.cc:104
HcalHBHEMuonAnalyzer::hcalDepthActiveLength_
std::vector< double > hcalDepthActiveLength_[depthMax_]
Definition: HcalHBHEMuonAnalyzer.cc:143
PedestalClient_cfi.gain
gain
Definition: PedestalClient_cfi.py:37
HcalHBHEMuonAnalyzer::hcalEnergy_
std::vector< double > hcalEnergy_
Definition: HcalHBHEMuonAnalyzer.cc:137
photonIsolationHIProducer_cfi.hbhe
hbhe
Definition: photonIsolationHIProducer_cfi.py:8
HcalSubdetector
HcalSubdetector
Definition: HcalAssistant.h:31
spr::propagateCALO
std::vector< spr::propagatedTrackID > propagateCALO(edm::Handle< reco::TrackCollection > &trkCollection, const CaloGeometry *geo, const MagneticField *bField, const std::string &theTrackQuality, bool debug=false)
Definition: CaloPropagateTrack.cc:141
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
HcalHBHEMuonAnalyzer::muon_segComp
std::vector< float > muon_segComp
Definition: HcalHBHEMuonAnalyzer.cc:125
HcalHBHEMuonAnalyzer::hcalDetId_
std::vector< unsigned int > hcalDetId_
Definition: HcalHBHEMuonAnalyzer.cc:140
HcalHBHEMuonAnalyzer::corrValue_
std::map< DetId, double > corrValue_
Definition: HcalHBHEMuonAnalyzer.cc:157
HcalHBHEMuonAnalyzer::ecal3x3Energy_
std::vector< double > ecal3x3Energy_
Definition: HcalHBHEMuonAnalyzer.cc:139
HcalHBHEMuonAnalyzer::globalTrckPhi_
std::vector< double > globalTrckPhi_
Definition: HcalHBHEMuonAnalyzer.cc:133
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
HcalDDDRecConstants::getRZ
double getRZ(const int &subdet, const int &ieta, const int &depth) const
Definition: HcalDDDRecConstants.cc:416
HcalHBHEMuonAnalyzer::tok_EB_
edm::EDGetTokenT< EcalRecHitCollection > tok_EB_
Definition: HcalHBHEMuonAnalyzer.cc:112
spr::propagateHCALBack
spr::propagatedTrackDirection propagateHCALBack(unsigned int thisTrk, edm::Handle< edm::SimTrackContainer > &SimTk, edm::Handle< edm::SimVertexContainer > &SimVtx, const CaloGeometry *geo, const MagneticField *bField, bool debug=false)
Definition: CaloPropagateTrack.cc:619
HLTConfigProvider::init
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
Definition: HLTConfigProvider.cc:36
Calorimetry_cff.bField
bField
Definition: Calorimetry_cff.py:292
HcalEndcap
Definition: HcalAssistant.h:34
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
HcalHBHEMuonAnalyzer::hcalActiveLengthHot_
std::vector< double > hcalActiveLengthHot_
Definition: HcalHBHEMuonAnalyzer.cc:152
HcalHBHEMuonAnalyzer::unCorrect_
const bool unCorrect_
Definition: HcalHBHEMuonAnalyzer.cc:100
TFileService::kSharedResource
static const std::string kSharedResource
Definition: TFileService.h:76
edm::TriggerNames
Definition: TriggerNames.h:55
spr::propagatedTrackID
Definition: CaloPropagateTrack.h:40
HcalHBHEMuonAnalyzer::hcalDepthMatch_
std::vector< bool > hcalDepthMatch_[depthMax_]
Definition: HcalHBHEMuonAnalyzer.cc:150
HcalHBHEMuonAnalyzer::hcal_ieta_
std::vector< int > hcal_ieta_
Definition: HcalHBHEMuonAnalyzer.cc:141
HcalHBHEMuonAnalyzer::tok_Vtx_
edm::EDGetTokenT< reco::VertexCollection > tok_Vtx_
Definition: HcalHBHEMuonAnalyzer.cc:111
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
HcalHBHEMuonAnalyzer::hoEnergy_
std::vector< double > hoEnergy_
Definition: HcalHBHEMuonAnalyzer.cc:137
spr::propagateHCAL
std::pair< math::XYZPoint, bool > propagateHCAL(const reco::Track *, const MagneticField *, bool debug=false)
Definition: CaloPropagateTrack.cc:759
HcalHBHEMuonAnalyzer::goodVertex_
unsigned int goodVertex_
Definition: HcalHBHEMuonAnalyzer.cc:121
HcalHBHEMuonAnalyzer::hdc_
const HcalDDDRecConstants * hdc_
Definition: HcalHBHEMuonAnalyzer.cc:106
HcalHBHEMuonAnalyzer::depth16HE
int depth16HE(int ieta, int iphi)
Definition: HcalHBHEMuonAnalyzer.cc:1153
spr::eHCALmatrix
double eHCALmatrix(const HcalTopology *topology, const DetId &det, edm::Handle< T > &hits, int ieta, int iphi, bool includeHO=false, bool algoNew=true, double hbThr=-100, double heThr=-100, double hfThr=-100, double hoThr=-100, double tMin=-500, double tMax=500, int useRaw=0, bool debug=false)
edm::HLTGlobalStatus::accept
bool accept() const
Has at least one path accepted the event?
Definition: HLTGlobalStatus.h:49
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
timingPdfMaker.infile
infile
Definition: timingPdfMaker.py:350
HLTConfigProvider::triggerName
const std::string & triggerName(unsigned int triggerIndex) const
Definition: HLTConfigProvider.h:69
HcalHBHEMuonAnalyzer::bxNumber_
unsigned int bxNumber_
Definition: HcalHBHEMuonAnalyzer.cc:120
HcalHBHEMuonAnalyzer::matchedId_
std::vector< bool > matchedId_
Definition: HcalHBHEMuonAnalyzer.cc:138
HcalHBHEMuonAnalyzer::hcal_iphi_
std::vector< int > hcal_iphi_
Definition: HcalHBHEMuonAnalyzer.cc:141
HcalHBHEMuonAnalyzer::theHBHETopology_
const HcalTopology * theHBHETopology_
Definition: HcalHBHEMuonAnalyzer.cc:107
HcalHBHEMuonAnalyzer::hltConfig_
HLTConfigProvider hltConfig_
Definition: HcalHBHEMuonAnalyzer.cc:93
HcalHBHEMuonAnalyzer::ecalEnergy_
std::vector< double > ecalEnergy_
Definition: HcalHBHEMuonAnalyzer.cc:137
HcalHBHEMuonAnalyzer::muon_is_medium_
std::vector< bool > muon_is_medium_
Definition: HcalHBHEMuonAnalyzer.cc:123
HcalHBHEMuonAnalyzer::chiGlobal_
std::vector< double > chiGlobal_
Definition: HcalHBHEMuonAnalyzer.cc:135
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
HcalDbRecord
Definition: HcalDbRecord.h:30
HcalHBHEMuonAnalyzer::hcalDepthMatchHot_
std::vector< bool > hcalDepthMatchHot_[depthMax_]
Definition: HcalHBHEMuonAnalyzer.cc:151
globals_cff.id2
id2
Definition: globals_cff.py:33
HcalHBHEMuonAnalyzer::innerTrackpt_
std::vector< double > innerTrackpt_
Definition: HcalHBHEMuonAnalyzer.cc:129
HcalHBHEMuonAnalyzer::etaGlob_
std::vector< double > etaGlob_
Definition: HcalHBHEMuonAnalyzer.cc:124
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
HcalHBHEMuonAnalyzer::muon_chi2LocalPosition
std::vector< float > muon_chi2LocalPosition
Definition: HcalHBHEMuonAnalyzer.cc:125
HcalHBHEMuonAnalyzer::triggers_
const std::vector< std::string > triggers_
Definition: HcalHBHEMuonAnalyzer.cc:98
edm::TriggerNames::triggerIndex
unsigned int triggerIndex(std::string const &name) const
Definition: TriggerNames.cc:24
HcalHBHEMuonAnalyzer::outerTrack_
std::vector< bool > outerTrack_
Definition: HcalHBHEMuonAnalyzer.cc:127
MagneticField
Definition: MagneticField.h:19
HcalHBHEMuonAnalyzer::activeLength
double activeLength(const DetId &)
Definition: HcalHBHEMuonAnalyzer.cc:1086
HcalHBHEMuonAnalyzer::ptGlob_
std::vector< double > ptGlob_
Definition: HcalHBHEMuonAnalyzer.cc:124
HcalGeometry
Definition: HcalGeometry.h:17
HcalHBHEMuonAnalyzer::goodCell
bool goodCell(const HcalDetId &hcid, const reco::Track *pTrack, const CaloGeometry *geo, const MagneticField *bField)
Definition: HcalHBHEMuonAnalyzer.cc:1168
HcalHBHEMuonAnalyzer::outerTrackChi_
std::vector< double > outerTrackChi_
Definition: HcalHBHEMuonAnalyzer.cc:130
HcalHBHEMuonAnalyzer::labelMuon_
const std::string labelMuon_
Definition: HcalHBHEMuonAnalyzer.cc:97
edm::InputTag
Definition: InputTag.h:15
HcalDDDRecConstants::unmergeDepthDetId
void unmergeDepthDetId(const HcalDetId &id, std::vector< HcalDetId > &ids) const
Definition: HcalDDDRecConstants.cc:671
HcalHBHEMuonAnalyzer::fileInCorr_
const std::string fileInCorr_
Definition: HcalHBHEMuonAnalyzer.cc:97
TFileService::make
T * make(const Args &... args) const
make new ROOT object
Definition: TFileService.h:64
HcalHBHEMuonAnalyzer::tight_LongPara_
std::vector< double > tight_LongPara_
Definition: HcalHBHEMuonAnalyzer.cc:135
HcalHBHEMuonAnalyzer::tight_TransImpara_
std::vector< double > tight_TransImpara_
Definition: HcalHBHEMuonAnalyzer.cc:135
HcalHBHEMuonAnalyzer::tree_
TTree * tree_
Definition: HcalHBHEMuonAnalyzer.cc:119