117 : m_digicollectionToken(
121 m_digibadmodulecollectionToken(
123 m_phasepart(iConfig.getUntrackedParameter<
std::
string>(
"phasePartition",
"None")),
124 m_ignorebadfedmod(iConfig.getParameter<
bool>(
"ignoreBadFEDMod")),
125 m_ignorenotconnected(iConfig.getParameter<
bool>(
"ignoreNotConnected")),
135 m_rhm(consumesCollector()),
137 m_detCabling(nullptr) {
142 std::vector<edm::ParameterSet> selconfigs = iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"selections");
144 for (std::vector<edm::ParameterSet>::const_iterator selconfig = selconfigs.begin(); selconfig != selconfigs.end();
153 m_cmdist.push_back(tfserv->
make<TH1D>(hname.c_str(), htitle.c_str(), 1024, -0.5, 1024 - 0.5));
154 m_cmdist.back()->GetXaxis()->SetTitle(
"ADC");
159 m_nmodules.push_back(tfserv->
make<TH1D>(hname.c_str(), htitle.c_str(), 20000, -0.5, 20000 - 0.5));
160 m_nmodules.back()->GetXaxis()->SetTitle(
"#modules");
165 m_napvs.push_back(tfserv->
make<TH1D>(hname.c_str(), htitle.c_str(), 2000, -0.5, 80000 - 0.5));
166 m_napvs.back()->GetXaxis()->SetTitle(
"#apvs");
171 m_cmvsdbxincycle.push_back(tfserv->
make<TProfile>(hname.c_str(), htitle.c_str(), 1000, -0.5, 1000 - 0.5));
233 for (
unsigned int isel = 0; isel <
m_selections.size(); ++isel) {
235 unsigned int strip = 0;
240 ((conns.size() >
strip / 2) && conns[
strip / 2] && conns[
strip / 2]->isConnected())) {
249 }
else if (digi->adc() > 0) {
251 <<
" Non zero CM in " <<
mod->detId() <<
" APV " <<
strip <<
" with " << conns.size()
252 <<
" connections and connection pointer" << conns[
strip / 2];
259 for (
unsigned int isel = 0; isel <
m_selections.size(); ++isel) {
261 m_napvs[isel]->Fill(napvs[isel]);
268 for (std::vector<TProfile**>::const_iterator cmvsbx =
m_cmvsbxrun.begin(); cmvsbx !=
m_cmvsbxrun.end(); ++cmvsbx) {
269 if (*cmvsbx && *(*cmvsbx)) {
270 (*(*cmvsbx))->GetXaxis()->SetTitle(
"BX");
271 (*(*cmvsbx))->GetYaxis()->SetTitle(
"CM (ADC counts)");
276 if (*cmvsorbit && *(*cmvsorbit)) {
277 (*(*cmvsorbit))->GetXaxis()->SetTitle(
"orbit");
278 (*(*cmvsorbit))->GetYaxis()->SetTitle(
"CM (ADC counts)");
279 (*(*cmvsorbit))->SetCanExtend(TH1::kXaxis);