13 _hitname(), _nbins(500), m_maxLS(100), m_LSfrac(4), _scalefact(), _runHisto(
true), _binmax(), _labels(), _nmultvsorbrun(), _nmult() { }
16 _hitname(iConfig.getUntrackedParameter<std::
string>(
"hitName",
"digi")),
17 _nbins(iConfig.getUntrackedParameter<int>(
"numberOfBins",500)),
18 m_maxLS(iConfig.getUntrackedParameter<unsigned int>(
"maxLSBeforeRebin",100)),
19 m_LSfrac(iConfig.getUntrackedParameter<unsigned int>(
"startingLSFraction",4)),
20 _scalefact(iConfig.getUntrackedParameter<int>(
"scaleFactor",5)),
21 _runHisto(iConfig.getUntrackedParameter<bool>(
"runHisto",
true)),
22 _labels(), _rhm(), _nmultvsorbrun(), _nmult(), _subdirs()
25 std::vector<edm::ParameterSet>
26 wantedsubds(iConfig.
getUntrackedParameter<std::vector<edm::ParameterSet> >(
"wantedSubDets",std::vector<edm::ParameterSet>()));
28 for(std::vector<edm::ParameterSet>::iterator ps=wantedsubds.begin();ps!=wantedsubds.end();++ps) {
29 _labels[ps->getParameter<
unsigned int>(
"detSelection")] = ps->getParameter<
std::string>(
"detLabel");
30 _binmax[ps->getParameter<
unsigned int>(
"detSelection")] = ps->getParameter<
int>(
"binMax");
39 for(std::map<unsigned int,std::string>::const_iterator lab=
_labels.begin();lab!=
_labels.end();lab++) {
41 const unsigned int i = lab->first;
const std::string slab = lab->second;
70 for(std::map<unsigned int,std::string>::const_iterator lab=
_labels.begin();lab!=
_labels.end();lab++) {
72 const unsigned int i = lab->first;
const std::string slab = lab->second;
76 <<
" not configured: " << trnumb.
nstrips(i) <<
" used";
84 for(std::map<unsigned int,std::string>::const_iterator lab=
_labels.begin();lab!=
_labels.end();++lab) {
86 const int i = lab->first;
const std::string slab = lab->second;
94 sprintf(name,
"n%sdigi",slab.c_str());
95 sprintf(title,
"%s %s multiplicity",slab.c_str(),
_hitname.c_str());
97 _nmult[
i]->GetXaxis()->SetTitle(
"Number of Hits"); _nmult[
i]->GetYaxis()->SetTitle(
"Events");
100 sprintf(name,
"n%sdigivsorbrun",slab.c_str());
101 sprintf(title,
"%s %s mean multiplicity vs orbit",slab.c_str(),
_hitname.c_str());
124 for(std::map<unsigned int,std::string>::const_iterator lab=
_labels.begin();lab!=
_labels.end();++lab) {
126 const int i = lab->first;
const std::string slab = lab->second;
147 for(std::map<unsigned int,int>::const_iterator digi=ndigi.begin();digi!=ndigi.end();digi++) {
151 const unsigned int i=digi->first;
T getUntrackedParameter(std::string const &, T const &) const
std::map< unsigned int, TH1F * > _nmult
void book(const std::string dirname, const std::map< unsigned int, std::string > &labels)
~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 fill(const unsigned int orbit, const std::map< unsigned int, int > &ndigi)
DigiInvestigatorHistogramMaker()
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)
std::map< unsigned int, TFileDirectory * > _subdirs
std::map< unsigned int, TProfile ** > _nmultvsorbrun
std::map< unsigned int, int > _binmax
void beginRun(const unsigned int nrun)
const unsigned int m_LSfrac