31 : _hitname(iConfig.getUntrackedParameter<
std::
string>(
"hitName",
"digi")),
32 _nbins(iConfig.getUntrackedParameter<
int>(
"numberOfBins", 500)),
33 m_maxLS(iConfig.getUntrackedParameter<unsigned
int>(
"maxLSBeforeRebin", 100)),
34 m_LSfrac(iConfig.getUntrackedParameter<unsigned
int>(
"startingLSFraction", 4)),
35 _scalefact(iConfig.getUntrackedParameter<
int>(
"scaleFactor", 5)),
36 _runHisto(iConfig.getUntrackedParameter<
bool>(
"runHisto",
true)),
37 _fillHisto(iConfig.getUntrackedParameter<
bool>(
"fillHisto",
false)),
46 std::vector<edm::ParameterSet> wantedsubds(iConfig.
getUntrackedParameter<std::vector<edm::ParameterSet> >(
47 "wantedSubDets", std::vector<edm::ParameterSet>()));
49 for (std::vector<edm::ParameterSet>::iterator ps = wantedsubds.begin(); ps != wantedsubds.end(); ++ps) {
50 _labels[ps->getParameter<
unsigned int>(
"detSelection")] = ps->getParameter<
std::string>(
"detLabel");
51 _binmax[ps->getParameter<
unsigned int>(
"detSelection")] = ps->getParameter<
int>(
"binMax");
56 for (std::map<unsigned int, std::string>::const_iterator lab =
_labels.begin(); lab !=
_labels.end(); lab++) {
57 const unsigned int i = lab->first;
65 const std::map<unsigned int, std::string>&
labels) {
82 for (std::map<unsigned int, std::string>::const_iterator lab =
_labels.begin(); lab !=
_labels.end(); lab++) {
83 const unsigned int i = lab->first;
88 <<
"Bin max for " << lab->second <<
" not configured: " << trnumb.
nstrips(
i) <<
" used";
95 for (std::map<unsigned int, std::string>::const_iterator lab =
_labels.begin(); lab !=
_labels.end(); ++lab) {
96 const int i = lab->first;
105 sprintf(
name,
"n%sdigi", slab.c_str());
106 sprintf(
title,
"%s %s multiplicity", slab.c_str(),
_hitname.c_str());
108 _nmult[
i]->GetXaxis()->SetTitle(
"Number of Hits");
109 _nmult[
i]->GetYaxis()->SetTitle(
"Events");
112 sprintf(
name,
"n%sdigivsorbrun", slab.c_str());
113 sprintf(
title,
"%s %s mean multiplicity vs orbit", slab.c_str(),
_hitname.c_str());
115 sprintf(
name,
"n%sdigivsbxrun", slab.c_str());
116 sprintf(
title,
"%s %s mean multiplicity vs BX", slab.c_str(),
_hitname.c_str());
120 sprintf(
name,
"n%sdigivsbxfill", slab.c_str());
121 sprintf(
title,
"%s %s mean multiplicity vs BX", slab.c_str(),
_hitname.c_str());
140 for (std::map<unsigned int, std::string>::const_iterator lab =
_labels.begin(); lab !=
_labels.end(); ++lab) {
141 const int i = lab->first;
173 for (std::map<unsigned int, int>::const_iterator digi = ndigi.begin(); digi != ndigi.end(); digi++) {
175 const unsigned int i = digi->first;