25 : trasientTrackToken_(
63 std::string histname =
"ecalDepositedEnergyBarrel_";
68 histname =
"ecalDepositedEnergyEndcap_";
73 histname =
"ecalS9DepositedEnergyBarrel_";
77 histname =
"ecalS9DepositedEnergyEndcap_";
81 histname =
"ecalS9PointingMuDepositedEnergy_Glb_";
83 "Pointing glb muons energy deposited in the ECAL 3*3 towers",
88 histname =
"ecalS9PointingMuDepositedEnergy_Tk_";
92 histname =
"ecalS9PointingMuDepositedEnergy_Sta_";
94 "Pointing sta muons energy deposited in the ECAL 3*3 towers",
100 histname =
"hadDepositedEnergyBarrel_";
104 histname =
"hadDepositedEnergyEndcap_";
109 histname =
"hadS9DepositedEnergyBarrel_";
113 histname =
"hadS9DepositedEnergyEndcap_";
117 histname =
"hadS9PointingMuDepositedEnergy_Glb_";
119 "Pointing glb muons energy deposited in the HCAL endcap 3*3 towers",
124 histname =
"hadS9PointingMuDepositedEnergy_Tk_";
126 "Pointing tk muons energy deposited in the HCAL endcap 3*3 towers",
131 histname =
"hadS9PointingMuDepositedEnergy_Sta_";
133 "Pointing sta muons energy deposited in the HCAL endcap 3*3 towers",
139 histname =
"hoDepositedEnergy_";
143 histname =
"hoS9DepositedEnergy_";
147 histname =
"hoS9PointingMuDepositedEnergy_Glb_";
151 histname =
"hoS9PointingMuDepositedEnergy_Tk_";
155 histname =
"hoS9PointingMuDepositedEnergy_Sta_";
170 for (reco::MuonCollection::const_iterator recoMu = muons->begin(); recoMu != muons->end(); ++recoMu) {
176 if (fabs(recoMu->eta()) > 1.479)
183 if (fabs(recoMu->eta()) > 1.4)
190 if (fabs(recoMu->eta()) < 1.26)
195 if (fabs(recoMu->eta()) > 1.479)
202 if (fabs(recoMu->eta()) > 1.4)
209 if (fabs(recoMu->eta()) < 1.26)
218 if (recoMu->isGlobalMuon())
219 TransTrack =
theB->build(recoMu->globalTrack());
220 else if ((recoMu->isTrackerMuon() || recoMu->isRPCMuon()))
221 TransTrack =
theB->build(recoMu->innerTrack());
222 else if (recoMu->isStandAloneMuon())
223 TransTrack =
theB->build(recoMu->outerTrack());
232 if (recoMu->isGlobalMuon()) {
238 else if (recoMu->isTrackerMuon()) {
244 else if (recoMu->isStandAloneMuon()) {
MuonEnergyDepositAnalyzer(const edm::ParameterSet &)
Constructor.
MonitorElement * ecalDepEnergyEndcap
edm::ESHandle< TransientTrackBuilder > theB
MonitorElement * hoDepEnergy
virtual void setCurrentFolder(std::string const &fullpath)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * hcalS9DepEnergyEndcap
edm::ParameterSet parameters
~MuonEnergyDepositAnalyzer() override
Destructor.
float emS9
energy deposited in 3x3 ECAL crystal shape around central crystal
GlobalPoint globalPosition() const
MonitorElement * ecalDepEnergyBarrel
MonitorElement * hcalDepEnergyEndcap
float ho
energy deposited in crossed HO towers
MonitorElement * hoS9PointingMuDepEnergy_Sta
MonitorElement * hcalS9DepEnergyBarrel
Abs< T >::type abs(const T &t)
edm::ESGetToken< TransientTrackBuilder, TransientTrackRecord > trasientTrackToken_
float hoS9
energy deposited in 3x3 HO tower shape around central tower
MonitorElement * ecalS9DepEnergyEndcap
MonitorElement * hcalDepEnergyBarrel
TrajectoryStateOnSurface TSOS
MonitorElement * ecalS9PointingMuDepEnergy_Sta
edm::EDGetTokenT< reco::MuonCollection > theMuonCollectionLabel_
MonitorElement * hoS9DepEnergy
MonitorElement * hoS9PointingMuDepEnergy_Tk
T getParameter(std::string const &) const
MonitorElement * ecalS9PointingMuDepEnergy_Tk
MonitorElement * hcalS9PointingMuDepEnergy_Tk
MonitorElement * hoS9PointingMuDepEnergy_Glb
MonitorElement * hcalS9PointingMuDepEnergy_Glb
TrajectoryStateOnSurface impactPointState() const
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
MonitorElement * ecalS9PointingMuDepEnergy_Glb
MonitorElement * hcalS9PointingMuDepEnergy_Sta
void analyze(const edm::Event &, const edm::EventSetup &) override
float hadS9
energy deposited in 3x3 HCAL tower shape around central tower
MonitorElement * ecalS9DepEnergyBarrel
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)