121 LogDebug(
"") <<
"DQMHOAlCaRecoStream:: Error! can't get HOCalib product!" << std::endl;
127 if (!(*HOCalib).empty()) {
128 for (HOCalibVariableCollection::const_iterator hoC = (*HOCalib).begin(); hoC != (*HOCalib).end(); hoC++) {
137 if ((*hoC).isect < 0)
139 if (fabs((*hoC).trkth - acos(-1.) / 2) < 0.000001)
154 double energy = (*hoC).hosig[4];
155 double pedval = (*hoC).hocro;
159 }
else if (
ieta >= -10 &&
ieta <= -5) {
161 }
else if (
ieta >= 5 &&
ieta <= 10) {
163 }
else if (
ieta >= 11 &&
ieta <= 15) {
170 for (
int k = 0;
k < 9;
k++) {
188 hMuonMom = ibooker.
book1D(
"hMuonMom",
"Muon momentum (GeV)", 50, -100, 100);
191 hMuonEta = ibooker.
book1D(
"hMuonEta",
"Pseudo-rapidity of muon", 50, -1.5, 1.5);
194 hMuonPhi = ibooker.
book1D(
"hMuonPhi",
"Azimuthal angle of muon", 24, -acos(-1), acos(-1));
200 hDirCosine = ibooker.
book1D(
"hDirCosine",
"Direction Cosine of muon at HO tower", 50, -1., 1.);
203 hHOTime = ibooker.
book1D(
"hHOTime",
"HO time distribution", 60, -20, 100.);
206 for (
int i = 0;
i < 5;
i++) {
207 sprintf(
name,
"hSigRing_%i",
i - 2);
208 sprintf(
title,
"HO signal in Ring_%i",
i - 2);
212 sprintf(
name,
"hPedRing_%i",
i - 2);
213 sprintf(
title,
"HO Pedestal in Ring_%i",
i - 2);
218 for (
int i = -1;
i <= 1;
i++) {
219 for (
int j = -1;
j <= 1;
j++) {
220 int k = 3 * (
i + 1) +
j + 1;
222 sprintf(
title,
"hSignal3x3_deta%i_dphi%i",
i,
j);
edm::EDGetTokenT< HOCalibVariableCollection > hoCalibVariableCollectionTag
MonitorElement * hMuonMultipl
MonitorElement * hPedRing[5]
MonitorElement * hMuonEta
virtual void setCurrentFolder(std::string const &fullpath)
hoCalibVariableCollectionTag
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
DQMHOAlCaRecoStream(const edm::ParameterSet &)
MonitorElement * hSigRing[5]
T getUntrackedParameter(std::string const &, T const &) const
Tan< T >::type tan(const T &t)
Abs< T >::type abs(const T &t)
std::string theRootFileName
#define DEFINE_FWK_MODULE(type)
MonitorElement * hSignal3x3[9]
MonitorElement * hMuonMom
MonitorElement * hMuonPhi
double m_highRadPosInMuch
std::vector< HOCalibVariables > HOCalibVariableCollection
collection of HOcalibration variabale
void analyze(const edm::Event &, const edm::EventSetup &) override
~DQMHOAlCaRecoStream() override
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
MonitorElement * hDirCosine
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)