17 m_lumiProducer(
"lumiProducer"), m_fhm(), m_runHisto(
false),
18 m_hitname(), m_nbins(500), m_scalefact(), m_binmax(), m_labels(), m_nmultvslumi(), m_nmultvslumiprof(), m_subdirs() { }
21 m_lumiProducer(iConfig.getParameter<edm::InputTag>(
"lumiProducer")),
23 m_runHisto(iConfig.getUntrackedParameter<bool>(
"runHisto",
false)),
24 m_hitname(iConfig.getUntrackedParameter<std::string>(
"hitName",
"digi")),
25 m_nbins(iConfig.getUntrackedParameter<int>(
"numberOfBins",500)),
26 m_scalefact(iConfig.getUntrackedParameter<int>(
"scaleFactor",5)),
27 m_labels(), m_nmultvslumi(), m_nmultvslumiprof(), m_subdirs()
30 std::vector<edm::ParameterSet>
31 wantedsubds(iConfig.
getUntrackedParameter<std::vector<edm::ParameterSet> >(
"wantedSubDets",std::vector<edm::ParameterSet>()));
33 for(std::vector<edm::ParameterSet>::iterator ps=wantedsubds.begin();ps!=wantedsubds.end();++ps) {
34 m_labels[ps->getParameter<
unsigned int>(
"detSelection")] = ps->getParameter<std::string>(
"detLabel");
35 m_binmax[ps->getParameter<
unsigned int>(
"detSelection")] = ps->getParameter<
int>(
"binMax");
44 for(std::map<unsigned int,std::string>::const_iterator lab=
m_labels.begin();lab!=
m_labels.end();lab++) {
46 const unsigned int i = lab->first;
const std::string slab = lab->second;
74 for(std::map<unsigned int,std::string>::const_iterator lab=
m_labels.begin();lab!=
m_labels.end();lab++) {
76 const unsigned int i = lab->first;
const std::string slab = lab->second;
80 <<
" not configured: " << trnumb.
nstrips(i) <<
" used";
88 for(std::map<unsigned int,std::string>::const_iterator lab=
m_labels.begin();lab!=
m_labels.end();++lab) {
90 const int i = lab->first;
const std::string slab = lab->second;
99 sprintf(name,
"n%sdigivslumi",slab.c_str());
100 sprintf(title,
"%s %s multiplicity vs BX lumi",slab.c_str(),
m_hitname.c_str());
102 m_nmultvslumi[
i]->GetXaxis()->SetTitle(
"BX lumi [10^{30}cm^{-2}s^{-1}]"); m_nmultvslumi[
i]->GetYaxis()->SetTitle(
"Number of Hits");
103 sprintf(name,
"n%sdigivslumiprof",slab.c_str());
105 m_nmultvslumiprof[
i]->GetXaxis()->SetTitle(
"BX lumi [10^{30}cm^{-2}s^{-1}]"); m_nmultvslumiprof[
i]->GetYaxis()->SetTitle(
"Number of Hits");
108 edm::LogInfo(
"RunHistos") <<
"Pseudo-booking run histos " << slab.c_str();
109 sprintf(name,
"n%sdigivslumivsbxprofrun",slab.c_str());
110 sprintf(title,
"%s %s multiplicity vs BX lumi vs BX",slab.c_str(),
m_hitname.c_str());
125 for(std::map<unsigned int,std::string>::const_iterator lab=
m_labels.begin();lab!=
m_labels.end();++lab) {
126 const int i = lab->first;
const std::string slab = lab->second;
146 for(std::map<unsigned int,int>::const_iterator digi=ndigi.begin();digi!=ndigi.end();digi++) {
148 const unsigned int i=digi->first;
T getUntrackedParameter(std::string const &, T const &) const
std::map< unsigned int, TFileDirectory * > m_subdirs
std::map< unsigned int, RunHistogramManager * > m_fhm
std::map< unsigned int, int > m_binmax
std::map< unsigned int, std::string > m_labels
int bunchCrossing() const
~DigiLumiCorrHistogramMaker()
bool getByLabel(std::string const &label, Handle< PROD > &result) const
int nstrips(const SiStripDetId &detid) const
DigiLumiCorrHistogramMaker()
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
std::map< unsigned int, TProfile2D ** > m_nmultvslumivsbxprofrun
std::map< unsigned int, TProfile * > m_nmultvslumiprof
void fill(const edm::Event &iEvent, const std::map< unsigned int, int > &ndigi)
LuminosityBlock const & getLuminosityBlock() const
void book(const std::string dirname, const std::map< unsigned int, std::string > &labels)
std::map< unsigned int, TH2F * > m_nmultvslumi
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
const edm::InputTag m_lumiProducer
void beginRun(const edm::Run &iRun)