31 edm::LogInfo(
"CentralityDQM") <<
" Starting CentralityDQM "
35 centralityToken = consumes<reco::Centrality>(centralityTag_);
38 vertexToken = consumes<std::vector<reco::Vertex> >(vertexTag_);
41 eventplaneToken = consumes<reco::EvtPlaneCollection>(eventplaneTag_);
50 edm::LogInfo(
"CentralityDQM") <<
" Deleting CentralityDQM "
63 h_hiNpix = bei.
book1D(
"h_hiNpix",
"h_hiNpix", 750, 0, 75000);
65 bei.
book1D(
"h_hiNpixelTracks",
"hiNpixelTracks", 500, 0, 5000);
66 h_hiNtracks = bei.
book1D(
"h_hiNtracks",
"h_hiNtracks", 500, 0, 5000);
68 bei.
book1D(
"h_hiNtracksPtCut",
"h_hiNtracksPtCut", 500, 0, 5000);
70 bei.
book1D(
"h_hiNtracksEtaCut",
"h_hiNtracksEtaCut", 500, 0, 5000);
72 bei.
book1D(
"h_hiNtracksEtaPtCut",
"h_hiNtracksEtaPtCut", 500, 0, 5000);
74 h_hiHF = bei.
book1D(
"h_hiHF",
"h_hiHF", 900, 0, 9000);
75 h_hiHFplus = bei.
book1D(
"h_hiHFplus",
"h_hiHFplus", 900, 0, 9000);
76 h_hiHFminus = bei.
book1D(
"h_hiHFminus",
"h_hiHFminus", 900, 0, 9000);
77 h_hiHFplusEta4 = bei.
book1D(
"h_hiHFplusEta4",
"h_hiHFplusEta4", 900, 0, 9000);
79 bei.
book1D(
"h_hiHFminusEta4",
"h_hiHFminusEta4", 900, 0, 9000);
81 h_hiHFhit = bei.
book1D(
"h_hiHFhit",
"h_hiHFhit", 3000, 0, 300000);
82 h_hiHFhitPlus = bei.
book1D(
"h_hiHFhitPlus",
"h_hiHFhitPlus", 2000, 0, 200000);
84 bei.
book1D(
"h_hiHFhitMinus",
"h_hiHFhitMinus", 2000, 0, 200000);
86 h_hiEB = bei.
book1D(
"h_hiEB",
"h_hiEB", 600, 0, 6000);
87 h_hiET = bei.
book1D(
"h_hiET",
"h_hiET", 600, 0, 6000);
88 h_hiEE = bei.
book1D(
"h_hiEE",
"h_hiEE", 600, 0, 6000);
89 h_hiEEplus = bei.
book1D(
"h_hiEEplus",
"h_hiEEplus", 600, 0, 6000);
90 h_hiEEminus = bei.
book1D(
"h_hiEEminus",
"h_hiEEminus", 600, 0, 6000);
91 h_hiZDC = bei.
book1D(
"h_hiZDC",
"h_hiZDC", 600, 0, 6000);
92 h_hiZDCplus = bei.
book1D(
"h_hiZDCplus",
"h_hiZDCplus", 600, 0, 6000);
93 h_hiZDCminus = bei.
book1D(
"h_hiZDCminus",
"h_hiZDCminus", 600, 0, 6000);
95 h_vertex_x = bei.
book1D(
"h_vertex_x",
"h_vertex_x", 400, -4, 4);
96 h_vertex_y = bei.
book1D(
"h_vertex_y",
"h_vertex_y", 400, -4, 4);
97 h_vertex_z = bei.
book1D(
"h_vertex_z",
"h_vertex_z", 400, -40, 40);
99 Double_t psirange = 4;
101 h_ep_HFm1 = bei.
book1D(
"h_ep_HFm1",
"h_ep_HFm1", 800,-psirange,psirange);
102 h_ep_HFp1 = bei.
book1D(
"h_ep_HFp1",
"h_ep_HFp1", 800,-psirange,psirange);
103 h_ep_trackm1 = bei.
book1D(
"h_ep_trackm1",
"h_ep_trackm1", 800,-psirange,psirange);
104 h_ep_trackp1 = bei.
book1D(
"h_ep_trackp1",
"h_ep_trackp1", 800,-psirange,psirange);
105 h_ep_castor1 = bei.
book1D(
"h_ep_castor1",
"h_ep_castor1", 800,-psirange,psirange);
106 h_ep_HFm2 = bei.
book1D(
"h_ep_HFm2",
"h_ep_HFm2", 800,-psirange,psirange);
107 h_ep_HFp2 = bei.
book1D(
"h_ep_HFp2",
"h_ep_HFp2", 800,-psirange,psirange);
108 h_ep_trackmid2 = bei.
book1D(
"h_ep_trackmid2",
"h_ep_trackmid2", 800,-psirange,psirange);
109 h_ep_trackm2 = bei.
book1D(
"h_ep_trackm2",
"h_ep_trackm2", 800,-psirange,psirange);
110 h_ep_trackp2 = bei.
book1D(
"h_ep_trackp2",
"h_ep_trackp2", 800,-psirange,psirange);
111 h_ep_castor2 = bei.
book1D(
"h_ep_castor2",
"h_ep_castor2", 800,-psirange,psirange);
112 h_ep_HFm3 = bei.
book1D(
"h_ep_HFm3",
"h_ep_HFm3", 800,-psirange,psirange);
113 h_ep_HFp3 = bei.
book1D(
"h_ep_HFp3",
"h_ep_HFp3", 800,-psirange,psirange);
114 h_ep_trackmid3 = bei.
book1D(
"h_ep_trackmid3",
"h_ep_trackmid3", 800,-psirange,psirange);
132 if (!cent.isValid())
return;
134 h_hiNpix->Fill(cent->multiplicityPixel());
135 h_hiNpixelTracks->Fill(cent->NpixelTracks());
136 h_hiNtracks->Fill(cent->Ntracks());
138 h_hiNtracksPtCut->Fill(cent->NtracksPtCut());
139 h_hiNtracksEtaCut->Fill(cent->NtracksEtaCut());
140 h_hiNtracksEtaPtCut->Fill(cent->NtracksEtaPtCut());
142 h_hiHF->Fill(cent->EtHFtowerSum());
143 h_hiHFplus->Fill(cent->EtHFtowerSumPlus());
144 h_hiHFminus->Fill(cent->EtHFtowerSumMinus());
145 h_hiHFplusEta4->Fill(cent->EtHFtruncatedPlus());
146 h_hiHFminusEta4->Fill(cent->EtHFtruncatedMinus());
148 h_hiHFhit->Fill(cent->EtHFhitSum());
149 h_hiHFhitPlus->Fill(cent->EtHFhitSumPlus());
150 h_hiHFhitMinus->Fill(cent->EtHFhitSumMinus());
152 h_hiZDC->Fill(cent->zdcSum());
153 h_hiZDCplus->Fill(cent->zdcSumPlus());
154 h_hiZDCminus->Fill(cent->zdcSumMinus());
156 h_hiEEplus->Fill(cent->EtEESumPlus());
157 h_hiEEminus->Fill(cent->EtEESumMinus());
158 h_hiEE->Fill(cent->EtEESum());
159 h_hiEB->Fill(cent->EtEBSum());
160 h_hiET->Fill(cent->EtMidRapiditySum());
164 h_vertex_x->Fill(vertex->begin()->x());
165 h_vertex_y->Fill(vertex->begin()->y());
166 h_vertex_z->Fill(vertex->begin()->z());
168 EvtPlaneCollection::const_iterator rp = ep->begin();
T getParameter(std::string const &) const
virtual void bookHistograms(DQMStore::IBooker &bei, edm::Run const &, edm::EventSetup const &) override
CentralityDQM(const edm::ParameterSet &ps)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * book1D(Args &&...args)
virtual void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override
void setCurrentFolder(const std::string &fullpath)
T angle(T x1, T y1, T z1, T x2, T y2, T z2)