CMS 3D CMS Logo

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

Public Member Functions

 HcalHBHENewMuonAnalyzer (const edm::ParameterSet &)
 
 ~HcalHBHENewMuonAnalyzer () override=default
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::SharedResources >
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () 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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
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

void analyze (edm::Event const &, edm::EventSetup const &) override
 
void beginJob () override
 

Private Attributes

std::vector< std::string > all_triggers_
 
unsigned int bxNumber_
 
double chiGlobal_
 
double chiTracker_
 
double dxyTracker_
 
double dzTracker_
 
double ecal3x3Energy_
 
unsigned int ecalDetId_
 
double ecalEnergy_
 
unsigned int ehcalDetId_
 
double energyMuon_
 
double etaGlob_
 
unsigned int eventNumber_
 
int globalMuonHits_
 
bool globalTrack_
 
double globalTrckEta_
 
double globalTrckPhi_
 
double globalTrckPt_
 
unsigned int goodVertex_
 
double hcal1x1Energy_
 
int hcal_ieta_
 
int hcal_iphi_
 
double hcalActiveLength_
 
double hcalActiveLengthHot_
 
double hcalDepthActiveLength_ [depthMax_]
 
double hcalDepthActiveLengthHot_ [depthMax_]
 
double hcalDepthChargeHot_ [depthMax_]
 
double hcalDepthChargeHotBG_ [depthMax_]
 
double hcalDepthEnergy_ [depthMax_]
 
double hcalDepthEnergyCorr_ [depthMax_]
 
double hcalDepthEnergyHot_ [depthMax_]
 
double hcalDepthEnergyHotCorr_ [depthMax_]
 
bool hcalDepthMatch_ [depthMax_]
 
bool hcalDepthMatchHot_ [depthMax_]
 
unsigned int hcalDetId_
 
double hcalEnergy_
 
bool hcalHot_
 
std::vector< int > hltresults_
 
double hoEnergy_
 
bool innerTrack_
 
double innerTracketa_
 
double innerTrackphi_
 
double innerTrackpt_
 
double isolationR03_
 
double isolationR04_
 
int kount_
 
const edm::InputTag labelHBHEMuonVar_
 
unsigned int lumiNumber_
 
bool matchedId_
 
int matchedStat_
 
const int maxDepth_
 
float muon_chi2LocalPosition_
 
bool muon_global_
 
bool muon_is_good_
 
bool muon_is_medium_
 
bool muon_is_tight_
 
float muon_segComp_
 
bool muon_tracker_
 
float muon_trkKink_
 
int numPixelLayers_
 
bool outerTrack_
 
double outerTrackChi_
 
double outerTrackEta_
 
int outerTrackHits_
 
double outerTrackPhi_
 
double outerTrackPt_
 
int outerTrackRHits_
 
double phiGlob_
 
double pMuon_
 
double ptGlob_
 
unsigned int runNumber_
 
double tight_LongPara_
 
int tight_PixelHits_
 
double tight_TransImpara_
 
double tight_validFraction_
 
const edm::EDGetTokenT< HcalHBHEMuonVariablesCollectiontokHBHEMuonVar_
 
int trackerLayer_
 
TTree * tree_
 
const int useRaw_
 

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
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, 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)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

Definition at line 24 of file HcalHBHENewMuonAnalyzer.cc.

Constructor & Destructor Documentation

◆ HcalHBHENewMuonAnalyzer()

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

Definition at line 84 of file HcalHBHENewMuonAnalyzer.cc.

References kount_, TFileService::kSharedResource, labelHBHEMuonVar_, and maxDepth_.

85  : labelHBHEMuonVar_(iConfig.getParameter<edm::InputTag>("hbheMuonLabel")),
86  useRaw_(iConfig.getParameter<int>("useRaw")),
87  maxDepth_(iConfig.getUntrackedParameter<int>("maxDepth", 4)),
88  tokHBHEMuonVar_(consumes<HcalHBHEMuonVariablesCollection>(labelHBHEMuonVar_)) {
89  usesResource(TFileService::kSharedResource);
90  //now do what ever initialization is needed
91  kount_ = 0;
92 
93  edm::LogVerbatim("HBHEMuon") << "Parameters read from config file \n\t maxDepth__ " << maxDepth_ << "\n\t Labels "
95 }
static const std::string kSharedResource
Definition: TFileService.h:76
Log< level::Info, true > LogVerbatim
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
T getUntrackedParameter(std::string const &, T const &) const
const edm::InputTag labelHBHEMuonVar_
const edm::EDGetTokenT< HcalHBHEMuonVariablesCollection > tokHBHEMuonVar_

◆ ~HcalHBHENewMuonAnalyzer()

HcalHBHENewMuonAnalyzer::~HcalHBHENewMuonAnalyzer ( )
overridedefault

Member Function Documentation

◆ analyze()

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

Implements edm::one::EDAnalyzerBase.

Definition at line 102 of file HcalHBHENewMuonAnalyzer.cc.

References all_triggers_, 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, iEvent, innerTrack_, innerTracketa_, innerTrackphi_, innerTrackpt_, isolationR03_, isolationR04_, kount_, lumiNumber_, matchedId_, matchedStat_, 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_, tokHBHEMuonVar_, trackerLayer_, tree_, and useRaw_.

102  {
103  ++kount_;
104  runNumber_ = iEvent.id().run();
105  eventNumber_ = iEvent.id().event();
106  lumiNumber_ = iEvent.id().luminosityBlock();
107  bxNumber_ = iEvent.bunchCrossing();
108 #ifdef EDM_ML_DEBUG
109  edm::LogVerbatim("HBHEMuon") << "Run " << runNumber_ << " Event " << eventNumber_ << " Lumi " << lumiNumber_ << " BX "
110  << bxNumber_ << std::endl;
111 #endif
112 
113  auto const& hbheMuonColl = iEvent.getHandle(tokHBHEMuonVar_);
114  if (hbheMuonColl.isValid()) {
115  for (const auto& itr : (*(hbheMuonColl.product()))) {
116  goodVertex_ = itr.goodVertex_;
117  muon_is_good_ = itr.muonGood_;
118  muon_global_ = itr.muonGlobal_;
119  muon_tracker_ = itr.muonTracker_;
120  muon_is_tight_ = itr.muonTight_;
121  muon_is_medium_ = itr.muonMedium_;
122  ptGlob_ = itr.ptGlob_;
123  etaGlob_ = itr.etaGlob_;
124  phiGlob_ = itr.phiGlob_;
125  energyMuon_ = itr.energyMuon_;
126  pMuon_ = itr.pMuon_;
127  muon_trkKink_ = itr.muonTrkKink_;
128  muon_chi2LocalPosition_ = itr.muonChi2LocalPosition_;
129  muon_segComp_ = itr.muonSegComp_;
130  trackerLayer_ = itr.trackerLayer_;
131  numPixelLayers_ = itr.numPixelLayers_;
132  tight_PixelHits_ = itr.tightPixelHits_;
133  innerTrack_ = itr.innerTrack_;
134  outerTrack_ = itr.outerTrack_;
135  globalTrack_ = itr.globalTrack_;
136  chiTracker_ = itr.chiTracker_;
137  dxyTracker_ = itr.dxyTracker_;
138  dzTracker_ = itr.dzTracker_;
139  innerTrackpt_ = itr.innerTrackPt_;
140  innerTracketa_ = itr.innerTrackEta_;
141  innerTrackphi_ = itr.innerTrackPhi_;
142  tight_validFraction_ = itr.tightValidFraction_;
143  outerTrackChi_ = itr.outerTrackChi_;
144  outerTrackPt_ = itr.outerTrackPt_;
145  outerTrackEta_ = itr.outerTrackEta_;
146  outerTrackPhi_ = itr.outerTrackPhi_;
147  outerTrackHits_ = itr.outerTrackHits_;
148  outerTrackRHits_ = itr.outerTrackRHits_;
149  globalTrckPt_ = itr.globalTrackPt_;
150  globalTrckEta_ = itr.globalTrackEta_;
151  globalTrckPhi_ = itr.globalTrackPhi_;
152  globalMuonHits_ = itr.globalMuonHits_;
153  matchedStat_ = itr.matchedStat_;
154  chiGlobal_ = itr.chiGlobal_;
155  tight_LongPara_ = itr.tightLongPara_;
156  tight_TransImpara_ = itr.tightTransImpara_;
157  isolationR04_ = itr.isolationR04_;
158  isolationR03_ = itr.isolationR03_;
159  ecalEnergy_ = itr.ecalEnergy_;
160  hcalEnergy_ = itr.hcalEnergy_;
161  hoEnergy_ = itr.hoEnergy_;
162  matchedId_ = itr.matchedId_;
163  hcalHot_ = itr.hcalHot_;
164  ecal3x3Energy_ = itr.ecal3x3Energy_;
165  ecalDetId_ = itr.ecalDetId_;
166  hcalDetId_ = itr.hcalDetId_;
167  ehcalDetId_ = itr.ehcalDetId_;
168  hcal_ieta_ = itr.hcalIeta_;
169  hcal_iphi_ = itr.hcalIphi_;
170  if (useRaw_ == 1)
171  hcal1x1Energy_ = itr.hcal1x1EnergyAux_;
172  else if (useRaw_ == 2)
173  hcal1x1Energy_ = itr.hcal1x1EnergyRaw_;
174  else
175  hcal1x1Energy_ = itr.hcal1x1Energy_;
176  for (unsigned int i = 0; i < itr.hcalDepthEnergy_.size(); ++i) {
177  hcalDepthActiveLength_[i] = itr.hcalDepthActiveLength_[i];
178  hcalDepthActiveLengthHot_[i] = itr.hcalDepthActiveLengthHot_[i];
179  if (useRaw_ == 1) {
180  hcalDepthEnergy_[i] = itr.hcalDepthEnergyAux_[i];
181  hcalDepthEnergyHot_[i] = itr.hcalDepthEnergyHotAux_[i];
182  hcalDepthEnergyCorr_[i] = itr.hcalDepthEnergyCorrAux_[i];
183  hcalDepthEnergyHotCorr_[i] = itr.hcalDepthEnergyHotCorrAux_[i];
184  hcalDepthChargeHot_[i] = itr.hcalDepthChargeHotAux_[i];
185  hcalDepthChargeHotBG_[i] = itr.hcalDepthChargeHotBGAux_[i];
186  } else if (useRaw_ == 2) {
187  hcalDepthEnergy_[i] = itr.hcalDepthEnergyRaw_[i];
188  hcalDepthEnergyHot_[i] = itr.hcalDepthEnergyHotRaw_[i];
189  hcalDepthEnergyCorr_[i] = itr.hcalDepthEnergyCorrRaw_[i];
190  hcalDepthEnergyHotCorr_[i] = itr.hcalDepthEnergyHotCorrRaw_[i];
191  hcalDepthChargeHot_[i] = itr.hcalDepthChargeHotRaw_[i];
192  hcalDepthChargeHotBG_[i] = itr.hcalDepthChargeHotBGRaw_[i];
193  } else {
194  hcalDepthEnergy_[i] = itr.hcalDepthEnergy_[i];
195  hcalDepthEnergyHot_[i] = itr.hcalDepthEnergyHot_[i];
196  hcalDepthEnergyCorr_[i] = itr.hcalDepthEnergyCorr_[i];
197  hcalDepthEnergyHotCorr_[i] = itr.hcalDepthEnergyHotCorr_[i];
198  hcalDepthChargeHot_[i] = itr.hcalDepthChargeHot_[i];
199  hcalDepthChargeHotBG_[i] = itr.hcalDepthChargeHotBG_[i];
200  }
201  hcalDepthMatch_[i] = itr.hcalDepthMatch_[i];
202  hcalDepthMatchHot_[i] = itr.hcalDepthMatchHot_[i];
203  }
204  hcalActiveLength_ = itr.hcalActiveLength_;
205  hcalActiveLengthHot_ = itr.hcalActiveLengthHot_;
206  all_triggers_ = itr.allTriggers_;
207  hltresults_ = itr.hltResults_;
208  tree_->Fill();
209  }
210  }
211 }
Log< level::Info, true > LogVerbatim
double hcalDepthEnergyHot_[depthMax_]
double hcalDepthEnergyCorr_[depthMax_]
int iEvent
Definition: GenABIO.cc:224
double hcalDepthChargeHotBG_[depthMax_]
const edm::EDGetTokenT< HcalHBHEMuonVariablesCollection > tokHBHEMuonVar_
double hcalDepthActiveLength_[depthMax_]
std::vector< std::string > all_triggers_
double hcalDepthActiveLengthHot_[depthMax_]
double hcalDepthChargeHot_[depthMax_]
double hcalDepthEnergyHotCorr_[depthMax_]

◆ beginJob()

void HcalHBHENewMuonAnalyzer::beginJob ( )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 214 of file HcalHBHENewMuonAnalyzer.cc.

References all_triggers_, bxNumber_, chiGlobal_, chiTracker_, dxyTracker_, dzTracker_, ecal3x3Energy_, ecalDetId_, ecalEnergy_, ehcalDetId_, energyMuon_, etaGlob_, eventNumber_, compareTotals::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_, 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_.

214  {
216  tree_ = fs->make<TTree>("TREE", "TREE");
217  tree_->Branch("Event_No", &eventNumber_);
218  tree_->Branch("Run_No", &runNumber_);
219  tree_->Branch("LumiNumber", &lumiNumber_);
220  tree_->Branch("BXNumber", &bxNumber_);
221  tree_->Branch("GoodVertex", &goodVertex_);
222  tree_->Branch("PF_Muon", &muon_is_good_);
223  tree_->Branch("Global_Muon", &muon_global_);
224  tree_->Branch("Tracker_muon", &muon_tracker_);
225  tree_->Branch("MuonIsTight", &muon_is_tight_);
226  tree_->Branch("MuonIsMedium", &muon_is_medium_);
227  tree_->Branch("pt_of_muon", &ptGlob_);
228  tree_->Branch("eta_of_muon", &etaGlob_);
229  tree_->Branch("phi_of_muon", &phiGlob_);
230  tree_->Branch("energy_of_muon", &energyMuon_);
231  tree_->Branch("p_of_muon", &pMuon_);
232  tree_->Branch("muon_trkKink", &muon_trkKink_);
233  tree_->Branch("muon_chi2LocalPosition", &muon_chi2LocalPosition_);
234  tree_->Branch("muon_segComp", &muon_segComp_);
235 
236  tree_->Branch("TrackerLayer", &trackerLayer_);
237  tree_->Branch("NumPixelLayers", &numPixelLayers_);
238  tree_->Branch("InnerTrackPixelHits", &tight_PixelHits_);
239  tree_->Branch("innerTrack", &innerTrack_);
240  tree_->Branch("chiTracker", &chiTracker_);
241  tree_->Branch("DxyTracker", &dxyTracker_);
242  tree_->Branch("DzTracker", &dzTracker_);
243  tree_->Branch("innerTrackpt", &innerTrackpt_);
244  tree_->Branch("innerTracketa", &innerTracketa_);
245  tree_->Branch("innerTrackphi", &innerTrackphi_);
246  tree_->Branch("tight_validFraction", &tight_validFraction_);
247 
248  tree_->Branch("OuterTrack", &outerTrack_);
249  tree_->Branch("OuterTrackChi", &outerTrackChi_);
250  tree_->Branch("OuterTrackPt", &outerTrackPt_);
251  tree_->Branch("OuterTrackEta", &outerTrackEta_);
252  tree_->Branch("OuterTrackPhi", &outerTrackPhi_);
253  tree_->Branch("OuterTrackHits", &outerTrackHits_);
254  tree_->Branch("OuterTrackRHits", &outerTrackRHits_);
255 
256  tree_->Branch("GlobalTrack", &globalTrack_);
257  tree_->Branch("GlobalTrckPt", &globalTrckPt_);
258  tree_->Branch("GlobalTrckEta", &globalTrckEta_);
259  tree_->Branch("GlobalTrckPhi", &globalTrckPhi_);
260  tree_->Branch("Global_Muon_Hits", &globalMuonHits_);
261  tree_->Branch("MatchedStations", &matchedStat_);
262  tree_->Branch("GlobTrack_Chi", &chiGlobal_);
263  tree_->Branch("Tight_LongitudinalImpactparameter", &tight_LongPara_);
264  tree_->Branch("Tight_TransImpactparameter", &tight_TransImpara_);
265 
266  tree_->Branch("IsolationR04", &isolationR04_);
267  tree_->Branch("IsolationR03", &isolationR03_);
268  tree_->Branch("ecal_3into3", &ecalEnergy_);
269  tree_->Branch("hcal_3into3", &hcalEnergy_);
270  tree_->Branch("tracker_3into3", &hoEnergy_);
271 
272  tree_->Branch("matchedId", &matchedId_);
273  tree_->Branch("hcal_cellHot", &hcalHot_);
274 
275  tree_->Branch("ecal_3x3", &ecal3x3Energy_);
276  tree_->Branch("hcal_1x1", &hcal1x1Energy_);
277  tree_->Branch("ecal_detID", &ecalDetId_);
278  tree_->Branch("hcal_detID", &hcalDetId_);
279  tree_->Branch("ehcal_detID", &ehcalDetId_);
280  tree_->Branch("hcal_ieta", &hcal_ieta_);
281  tree_->Branch("hcal_iphi", &hcal_iphi_);
282 
283  char name[100];
284  for (int k = 0; k < maxDepth_; ++k) {
285  sprintf(name, "hcal_edepth%d", (k + 1));
286  tree_->Branch(name, &hcalDepthEnergy_[k]);
287  sprintf(name, "hcal_activeL%d", (k + 1));
288  tree_->Branch(name, &hcalDepthActiveLength_[k]);
289  sprintf(name, "hcal_edepthHot%d", (k + 1));
290  tree_->Branch(name, &hcalDepthEnergyHot_[k]);
291  sprintf(name, "hcal_activeHotL%d", (k + 1));
293  sprintf(name, "hcal_cdepthHot%d", (k + 1));
294  tree_->Branch(name, &hcalDepthChargeHot_[k]);
295  sprintf(name, "hcal_cdepthHotBG%d", (k + 1));
296  tree_->Branch(name, &hcalDepthChargeHotBG_[k]);
297  sprintf(name, "hcal_edepthCorrect%d", (k + 1));
298  tree_->Branch(name, &hcalDepthEnergyCorr_[k]);
299  sprintf(name, "hcal_edepthHotCorrect%d", (k + 1));
300  tree_->Branch(name, &hcalDepthEnergyHotCorr_[k]);
301  sprintf(name, "hcal_depthMatch%d", (k + 1));
302  tree_->Branch(name, &hcalDepthMatch_[k]);
303  sprintf(name, "hcal_depthMatchHot%d", (k + 1));
304  tree_->Branch(name, &hcalDepthMatchHot_[k]);
305  }
306 
307  tree_->Branch("activeLength", &hcalActiveLength_);
308  tree_->Branch("activeLengthHot", &hcalActiveLengthHot_);
309 
310  tree_->Branch("hltresults", &hltresults_);
311  tree_->Branch("all_triggers", &all_triggers_);
312 }
double hcalDepthEnergyHot_[depthMax_]
double hcalDepthEnergyCorr_[depthMax_]
double hcalDepthChargeHotBG_[depthMax_]
double hcalDepthActiveLength_[depthMax_]
std::vector< std::string > all_triggers_
double hcalDepthActiveLengthHot_[depthMax_]
double hcalDepthChargeHot_[depthMax_]
double hcalDepthEnergyHotCorr_[depthMax_]

◆ fillDescriptions()

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

Definition at line 315 of file HcalHBHENewMuonAnalyzer.cc.

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and HLT_2022v12_cff::InputTag.

315  {
317  desc.add<edm::InputTag>("hbheMuonLabel", edm::InputTag("alcaHcalHBHEMuonProducer", "hbheMuon"));
318  desc.add<int>("useRaw", 0);
319  desc.addUntracked<int>("maxDepth", 4);
320  descriptions.add("hcalHBHEMuonAnalysis", desc);
321 }
void add(std::string const &label, ParameterSetDescription const &psetDescription)

Member Data Documentation

◆ all_triggers_

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

Definition at line 79 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ bxNumber_

unsigned int HcalHBHENewMuonAnalyzer::bxNumber_
private

Definition at line 46 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ chiGlobal_

double HcalHBHENewMuonAnalyzer::chiGlobal_
private

Definition at line 61 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ chiTracker_

double HcalHBHENewMuonAnalyzer::chiTracker_
private

Definition at line 54 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ depthMax_

const int HcalHBHENewMuonAnalyzer::depthMax_ = 7
staticprivate

Definition at line 44 of file HcalHBHENewMuonAnalyzer.cc.

◆ dxyTracker_

double HcalHBHENewMuonAnalyzer::dxyTracker_
private

Definition at line 54 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ dzTracker_

double HcalHBHENewMuonAnalyzer::dzTracker_
private

Definition at line 54 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ ecal3x3Energy_

double HcalHBHENewMuonAnalyzer::ecal3x3Energy_
private

Definition at line 65 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ ecalDetId_

unsigned int HcalHBHENewMuonAnalyzer::ecalDetId_
private

Definition at line 66 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ ecalEnergy_

double HcalHBHENewMuonAnalyzer::ecalEnergy_
private

Definition at line 63 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ ehcalDetId_

unsigned int HcalHBHENewMuonAnalyzer::ehcalDetId_
private

Definition at line 66 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ energyMuon_

double HcalHBHENewMuonAnalyzer::energyMuon_
private

Definition at line 50 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ etaGlob_

double HcalHBHENewMuonAnalyzer::etaGlob_
private

Definition at line 50 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ eventNumber_

unsigned int HcalHBHENewMuonAnalyzer::eventNumber_
private

Definition at line 46 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ globalMuonHits_

int HcalHBHENewMuonAnalyzer::globalMuonHits_
private

Definition at line 60 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ globalTrack_

bool HcalHBHENewMuonAnalyzer::globalTrack_
private

Definition at line 53 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ globalTrckEta_

double HcalHBHENewMuonAnalyzer::globalTrckEta_
private

Definition at line 59 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ globalTrckPhi_

double HcalHBHENewMuonAnalyzer::globalTrckPhi_
private

Definition at line 59 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ globalTrckPt_

double HcalHBHENewMuonAnalyzer::globalTrckPt_
private

Definition at line 59 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ goodVertex_

unsigned int HcalHBHENewMuonAnalyzer::goodVertex_
private

Definition at line 47 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hcal1x1Energy_

double HcalHBHENewMuonAnalyzer::hcal1x1Energy_
private

Definition at line 65 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hcal_ieta_

int HcalHBHENewMuonAnalyzer::hcal_ieta_
private

Definition at line 67 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hcal_iphi_

int HcalHBHENewMuonAnalyzer::hcal_iphi_
private

Definition at line 67 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hcalActiveLength_

double HcalHBHENewMuonAnalyzer::hcalActiveLength_
private

Definition at line 78 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hcalActiveLengthHot_

double HcalHBHENewMuonAnalyzer::hcalActiveLengthHot_
private

Definition at line 78 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hcalDepthActiveLength_

double HcalHBHENewMuonAnalyzer::hcalDepthActiveLength_[depthMax_]
private

Definition at line 69 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hcalDepthActiveLengthHot_

double HcalHBHENewMuonAnalyzer::hcalDepthActiveLengthHot_[depthMax_]
private

Definition at line 71 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hcalDepthChargeHot_

double HcalHBHENewMuonAnalyzer::hcalDepthChargeHot_[depthMax_]
private

Definition at line 72 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hcalDepthChargeHotBG_

double HcalHBHENewMuonAnalyzer::hcalDepthChargeHotBG_[depthMax_]
private

Definition at line 73 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hcalDepthEnergy_

double HcalHBHENewMuonAnalyzer::hcalDepthEnergy_[depthMax_]
private

Definition at line 68 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hcalDepthEnergyCorr_

double HcalHBHENewMuonAnalyzer::hcalDepthEnergyCorr_[depthMax_]
private

Definition at line 74 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hcalDepthEnergyHot_

double HcalHBHENewMuonAnalyzer::hcalDepthEnergyHot_[depthMax_]
private

Definition at line 70 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hcalDepthEnergyHotCorr_

double HcalHBHENewMuonAnalyzer::hcalDepthEnergyHotCorr_[depthMax_]
private

Definition at line 75 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hcalDepthMatch_

bool HcalHBHENewMuonAnalyzer::hcalDepthMatch_[depthMax_]
private

Definition at line 76 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hcalDepthMatchHot_

bool HcalHBHENewMuonAnalyzer::hcalDepthMatchHot_[depthMax_]
private

Definition at line 77 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hcalDetId_

unsigned int HcalHBHENewMuonAnalyzer::hcalDetId_
private

Definition at line 66 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hcalEnergy_

double HcalHBHENewMuonAnalyzer::hcalEnergy_
private

Definition at line 63 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hcalHot_

bool HcalHBHENewMuonAnalyzer::hcalHot_
private

Definition at line 64 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hltresults_

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

Definition at line 80 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hoEnergy_

double HcalHBHENewMuonAnalyzer::hoEnergy_
private

Definition at line 63 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ innerTrack_

bool HcalHBHENewMuonAnalyzer::innerTrack_
private

Definition at line 53 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ innerTracketa_

double HcalHBHENewMuonAnalyzer::innerTracketa_
private

Definition at line 55 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ innerTrackphi_

double HcalHBHENewMuonAnalyzer::innerTrackphi_
private

Definition at line 55 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ innerTrackpt_

double HcalHBHENewMuonAnalyzer::innerTrackpt_
private

Definition at line 55 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ isolationR03_

double HcalHBHENewMuonAnalyzer::isolationR03_
private

Definition at line 62 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ isolationR04_

double HcalHBHENewMuonAnalyzer::isolationR04_
private

Definition at line 62 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ kount_

int HcalHBHENewMuonAnalyzer::kount_
private

Definition at line 39 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and HcalHBHENewMuonAnalyzer().

◆ labelHBHEMuonVar_

const edm::InputTag HcalHBHENewMuonAnalyzer::labelHBHEMuonVar_
private

Definition at line 36 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by HcalHBHENewMuonAnalyzer().

◆ lumiNumber_

unsigned int HcalHBHENewMuonAnalyzer::lumiNumber_
private

Definition at line 46 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ matchedId_

bool HcalHBHENewMuonAnalyzer::matchedId_
private

Definition at line 64 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ matchedStat_

int HcalHBHENewMuonAnalyzer::matchedStat_
private

Definition at line 60 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ maxDepth_

const int HcalHBHENewMuonAnalyzer::maxDepth_
private

Definition at line 38 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by beginJob(), and HcalHBHENewMuonAnalyzer().

◆ muon_chi2LocalPosition_

float HcalHBHENewMuonAnalyzer::muon_chi2LocalPosition_
private

Definition at line 51 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ muon_global_

bool HcalHBHENewMuonAnalyzer::muon_global_
private

Definition at line 48 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ muon_is_good_

bool HcalHBHENewMuonAnalyzer::muon_is_good_
private

Definition at line 48 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ muon_is_medium_

bool HcalHBHENewMuonAnalyzer::muon_is_medium_
private

Definition at line 49 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ muon_is_tight_

bool HcalHBHENewMuonAnalyzer::muon_is_tight_
private

Definition at line 49 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ muon_segComp_

float HcalHBHENewMuonAnalyzer::muon_segComp_
private

Definition at line 51 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ muon_tracker_

bool HcalHBHENewMuonAnalyzer::muon_tracker_
private

Definition at line 48 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ muon_trkKink_

float HcalHBHENewMuonAnalyzer::muon_trkKink_
private

Definition at line 51 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ numPixelLayers_

int HcalHBHENewMuonAnalyzer::numPixelLayers_
private

Definition at line 52 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ outerTrack_

bool HcalHBHENewMuonAnalyzer::outerTrack_
private

Definition at line 53 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ outerTrackChi_

double HcalHBHENewMuonAnalyzer::outerTrackChi_
private

Definition at line 56 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ outerTrackEta_

double HcalHBHENewMuonAnalyzer::outerTrackEta_
private

Definition at line 57 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ outerTrackHits_

int HcalHBHENewMuonAnalyzer::outerTrackHits_
private

Definition at line 58 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ outerTrackPhi_

double HcalHBHENewMuonAnalyzer::outerTrackPhi_
private

Definition at line 57 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ outerTrackPt_

double HcalHBHENewMuonAnalyzer::outerTrackPt_
private

Definition at line 57 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ outerTrackRHits_

int HcalHBHENewMuonAnalyzer::outerTrackRHits_
private

Definition at line 58 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ phiGlob_

double HcalHBHENewMuonAnalyzer::phiGlob_
private

Definition at line 50 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ pMuon_

double HcalHBHENewMuonAnalyzer::pMuon_
private

Definition at line 50 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ ptGlob_

double HcalHBHENewMuonAnalyzer::ptGlob_
private

Definition at line 50 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ runNumber_

unsigned int HcalHBHENewMuonAnalyzer::runNumber_
private

Definition at line 46 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ tight_LongPara_

double HcalHBHENewMuonAnalyzer::tight_LongPara_
private

Definition at line 61 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ tight_PixelHits_

int HcalHBHENewMuonAnalyzer::tight_PixelHits_
private

Definition at line 52 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ tight_TransImpara_

double HcalHBHENewMuonAnalyzer::tight_TransImpara_
private

Definition at line 61 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ tight_validFraction_

double HcalHBHENewMuonAnalyzer::tight_validFraction_
private

Definition at line 56 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ tokHBHEMuonVar_

const edm::EDGetTokenT<HcalHBHEMuonVariablesCollection> HcalHBHENewMuonAnalyzer::tokHBHEMuonVar_
private

Definition at line 41 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze().

◆ trackerLayer_

int HcalHBHENewMuonAnalyzer::trackerLayer_
private

Definition at line 52 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ tree_

TTree* HcalHBHENewMuonAnalyzer::tree_
private

Definition at line 45 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ useRaw_

const int HcalHBHENewMuonAnalyzer::useRaw_
private

Definition at line 37 of file HcalHBHENewMuonAnalyzer.cc.

Referenced by analyze().