14 _hitname(), _nbins(500), m_maxLS(100), m_LSfrac(4), _scalefact(), _runHisto(
true), _fillHisto(
false), _binmax(), _labels(), _rhm(iC), _fhm(iC,
true), _nmultvsorbrun(),
15 _nmultvsbxrun(), _nmultvsbxfill(), _nmult() { }
19 _nbins(iConfig.getUntrackedParameter<
int>(
"numberOfBins",500)),
20 m_maxLS(iConfig.getUntrackedParameter<unsigned
int>(
"maxLSBeforeRebin",100)),
21 m_LSfrac(iConfig.getUntrackedParameter<unsigned
int>(
"startingLSFraction",4)),
22 _scalefact(iConfig.getUntrackedParameter<
int>(
"scaleFactor",5)),
28 std::vector<edm::ParameterSet>
29 wantedsubds(iConfig.
getUntrackedParameter<std::vector<edm::ParameterSet> >(
"wantedSubDets",std::vector<edm::ParameterSet>()));
31 for(std::vector<edm::ParameterSet>::iterator ps=wantedsubds.begin();ps!=wantedsubds.end();++ps) {
32 _labels[ps->getParameter<
unsigned int>(
"detSelection")] = ps->getParameter<
std::string>(
"detLabel");
33 _binmax[ps->getParameter<
unsigned int>(
"detSelection")] = ps->getParameter<
int>(
"binMax");
42 for(std::map<unsigned int,std::string>::const_iterator lab=
_labels.begin();lab!=
_labels.end();lab++) {
44 const unsigned int i = lab->first;
const std::string slab = lab->second;
73 for(std::map<unsigned int,std::string>::const_iterator lab=
_labels.begin();lab!=
_labels.end();lab++) {
75 const unsigned int i = lab->first;
const std::string slab = lab->second;
79 <<
" not configured: " << trnumb.
nstrips(i) <<
" used";
87 for(std::map<unsigned int,std::string>::const_iterator lab=
_labels.begin();lab!=
_labels.end();++lab) {
89 const int i = lab->first;
const std::string slab = lab->second;
97 sprintf(name,
"n%sdigi",slab.c_str());
98 sprintf(title,
"%s %s multiplicity",slab.c_str(),
_hitname.c_str());
100 _nmult[
i]->GetXaxis()->SetTitle(
"Number of Hits"); _nmult[
i]->GetYaxis()->SetTitle(
"Events");
103 sprintf(name,
"n%sdigivsorbrun",slab.c_str());
104 sprintf(title,
"%s %s mean multiplicity vs orbit",slab.c_str(),
_hitname.c_str());
106 sprintf(name,
"n%sdigivsbxrun",slab.c_str());
107 sprintf(title,
"%s %s mean multiplicity vs BX",slab.c_str(),
_hitname.c_str());
111 sprintf(name,
"n%sdigivsbxfill",slab.c_str());
112 sprintf(title,
"%s %s mean multiplicity vs BX",slab.c_str(),
_hitname.c_str());
137 for(std::map<unsigned int,std::string>::const_iterator lab=
_labels.begin();lab!=
_labels.end();++lab) {
139 const int i = lab->first;
const std::string slab = lab->second;
170 for(std::map<unsigned int,int>::const_iterator digi=ndigi.begin();digi!=ndigi.end();digi++) {
174 const unsigned int i=digi->first;
T getUntrackedParameter(std::string const &, T const &) const
std::map< unsigned int, TProfile ** > _nmultvsbxrun
std::map< unsigned int, TH1F * > _nmult
void book(const std::string dirname, const std::map< unsigned int, std::string > &labels)
int bunchCrossing() const
~DigiInvestigatorHistogramMaker()
const unsigned int m_maxLS
std::map< unsigned int, std::string > _labels
int nstrips(const SiStripDetId &detid) const
TFileDirectory & tFileDirectory()
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 ** > _nmultvsbxfill
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)
DigiInvestigatorHistogramMaker(edm::ConsumesCollector &&iC)
std::map< unsigned int, TFileDirectory * > _subdirs
std::map< unsigned int, TProfile ** > _nmultvsorbrun
std::map< unsigned int, int > _binmax
const unsigned int m_LSfrac