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)),
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;
T getUntrackedParameter(std::string const &, T const &) const
void book(const std::string dirname, const std::map< unsigned int, std::string > &labels)
int bunchCrossing() const
std::map< unsigned int, TProfile ** > _nmultvsbxrun
std::map< unsigned int, int > _binmax
~DigiInvestigatorHistogramMaker()
const unsigned int m_maxLS
std::map< unsigned int, std::string > _labels
std::map< unsigned int, TProfile ** > _nmultvsbxfill
TFileDirectory & tFileDirectory()
int nstrips(const DetId &detid) const
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
TProfile ** makeTProfile(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax)
void beginRun(const edm::Run &iRun)
std::map< unsigned int, TProfile ** > _nmultvsorbrun
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
void beginRun(const edm::Run &iRun)
void fill(const edm::Event &iEvent, const std::map< unsigned int, int > &ndigi)
std::map< unsigned int, TFileDirectory * > _subdirs
std::map< unsigned int, TH1F * > _nmult
DigiInvestigatorHistogramMaker(edm::ConsumesCollector &&iC)
const unsigned int m_LSfrac