|
|
#include <DigiBXCorrHistogramMaker.h>
|
void | beginRun (const unsigned int nrun) |
|
void | book (const char *dirname, const std::map< int, std::string > &labels) |
|
| DigiBXCorrHistogramMaker (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC) |
|
| DigiBXCorrHistogramMaker (edm::ConsumesCollector &&iC, const int ncorbins=1000) |
|
void | fill (const T &he, const std::map< int, int > &ndigi, const edm::Handle< APVCyclePhaseCollection > &phase) |
|
void | fillcorr (const T &he1, const T &he2, const std::map< int, int > &ndigi) |
|
| ~DigiBXCorrHistogramMaker () |
|
|
std::map< unsigned int, int > | m_binmax |
|
const bool | m_dbx3Histo |
|
const bool | m_dbx3Histo3D |
|
std::map< int, TProfile * > | m_digicorr |
|
std::string | m_hitname |
|
std::map< int, std::string > | m_labels |
|
const int | m_nbins |
|
int | m_ncorbins |
|
std::map< int, TProfile * > | m_ndigivsbx |
|
std::map< int, TH2F * > | m_ndigivsbx2D |
|
std::map< int, TH2F * > | m_ndigivsbx2Dzoom |
|
std::map< int, TH2F * > | m_ndigivsbx2Dzoom2 |
|
std::map< int, TH2F * > | m_ndigivscycle |
|
std::map< int, TProfile2D * > | m_ndigivscycle2dbx |
|
std::map< int, TProfile2D * > | m_ndigivscycledbx |
|
std::map< int, TProfile2D ** > | m_ndigivscycletime |
|
std::map< int, TH2F * > | m_ndigivscyclezoom |
|
std::map< int, TH2F * > | m_ndigivscyclezoom2 |
|
std::map< int, TProfile * > | m_ndigivsdbx |
|
std::map< int, TH2F * > | m_ndigivsdbx2D |
|
std::map< int, TH2F * > | m_ndigivsdbx2Dzoom |
|
std::map< int, TH2F * > | m_ndigivsdbx2Dzoom2 |
|
std::map< int, TProfile2D * > | m_ndigivsdbx3zoom |
|
std::map< int, TProfile * > | m_ndigivsdbxincycle |
|
std::map< int, TH2F * > | m_ndigivsdbxincycle2D |
|
std::map< int, TProfile2D * > | m_ndigivsdbxincycle3 |
|
std::map< int, TH3F * > | m_ndigivsdbxincycle33D |
|
std::map< int, TProfile * > | m_ndigivsdbxzoom |
|
std::map< int, TProfile * > | m_ndigivsdbxzoom2 |
|
std::map< int, TProfile * > | m_nmeandigivscycle |
|
std::map< int, std::string > | m_phasepart |
|
RunHistogramManager | m_rhm |
|
const bool | m_runHisto |
|
std::vector< int > | m_scalefact |
|
template<class T>
class DigiBXCorrHistogramMaker< T >
Definition at line 23 of file DigiBXCorrHistogramMaker.h.
◆ DigiBXCorrHistogramMaker() [1/2]
◆ DigiBXCorrHistogramMaker() [2/2]
Definition at line 100 of file DigiBXCorrHistogramMaker.h.
110 std::vector<edm::ParameterSet> wantedsubds(iConfig.
getUntrackedParameter<std::vector<edm::ParameterSet> >(
111 "wantedSubDets", std::vector<edm::ParameterSet>()));
113 for (std::vector<edm::ParameterSet>::iterator ps = wantedsubds.begin(); ps != wantedsubds.end(); ++ps) {
114 m_binmax[ps->getParameter<
unsigned int>(
"detSelection")] = ps->getParameter<
int>(
"binMax");
115 m_phasepart[ps->getParameter<
unsigned int>(
"detSelection")] =
116 ps->getUntrackedParameter<
std::string>(
"phasePartition",
"None");
◆ ~DigiBXCorrHistogramMaker()
◆ beginRun()
◆ book()
Definition at line 121 of file DigiBXCorrHistogramMaker.h.
130 edm::LogInfo(
"ScaleFactors") <<
"x-axis range scale factors: ";
134 edm::LogInfo(
"BinMaxValue") <<
"Setting bin max values";
136 for (std::map<int, std::string>::const_iterator lab =
m_labels.begin(); lab !=
m_labels.end(); lab++) {
137 const int i = lab->first;
139 const unsigned int ui =
i;
143 <<
"Bin max for " << lab->second <<
" not configured: " << trnumb.
nstrips(
i) <<
" used";
150 edm::LogInfo(
"PhasePartitions") <<
"Partitions for APV Cycle Phase";
152 for (std::map<int, std::string>::const_iterator lab =
m_labels.begin(); lab !=
m_labels.end(); lab++) {
153 const int i = lab->first;
155 const unsigned int ui =
i;
156 edm::LogVerbatim(
"PhasePartitions") <<
"Partition for " << lab->second <<
" is "
161 for (std::map<int, std::string>::const_iterator lab =
m_labels.begin(); lab !=
m_labels.end(); lab++) {
162 const int i = lab->first;
164 const unsigned int ui =
i;
172 sprintf(
title,
"%s %s multiplicity vs BX separation", slab.c_str(),
m_hitname.c_str());
173 sprintf(
name,
"n%sdigivsdbx2D", slab.c_str());
176 sprintf(
name,
"n%sdigivsdbx2Dzoom2", slab.c_str());
179 sprintf(
name,
"n%sdigivsdbx2Dzoom", slab.c_str());
191 sprintf(
title,
"%s %s multiplicity vs BX separation", slab.c_str(),
m_hitname.c_str());
192 sprintf(
name,
"n%sdigivsdbx", slab.c_str());
194 sprintf(
name,
"n%sdigivsdbxzoom2", slab.c_str());
196 sprintf(
name,
"n%sdigivsdbxzoom", slab.c_str());
205 sprintf(
name,
"n%sdigivsdbx3zoom", slab.c_str());
206 sprintf(
title,
"%s %s multiplicity vs Triplets BX separation", slab.c_str(),
m_hitname.c_str());
211 sprintf(
name,
"%sdigicorr", slab.c_str());
212 sprintf(
title,
"%s %s DBX correlation", slab.c_str(),
m_hitname.c_str());
215 m_digicorr[
i]->GetYaxis()->SetTitle(
"Number of Hits");
221 sprintf(
name,
"n%sdigivsdbxincycle", slab.c_str());
222 sprintf(
title,
"%s %s multiplicity vs BX separation w.r.t. cycle", slab.c_str(),
m_hitname.c_str());
227 sprintf(
name,
"n%sdigivsdbxincycle2D", slab.c_str());
228 sprintf(
title,
"%s %s multiplicity vs BX separation w.r.t. cycle", slab.c_str(),
m_hitname.c_str());
235 sprintf(
name,
"n%sdigivsdbxincycle3", slab.c_str());
236 sprintf(
title,
"%s %s multiplicity vs Triplets BX separation w.r.t. cycle", slab.c_str(),
m_hitname.c_str());
242 sprintf(
name,
"n%sdigivsdbxincycle33D", slab.c_str());
244 title,
"%s %s multiplicity vs Triplets BX separation w.r.t. cycle", slab.c_str(),
m_hitname.c_str());
266 sprintf(
title,
"%s Mean %s multiplicity vs BX mod(70)", slab.c_str(),
m_hitname.c_str());
267 sprintf(
name,
"n%smeandigivscycle", slab.c_str());
272 sprintf(
title,
"%s %s multiplicity vs BX mod(70)", slab.c_str(),
m_hitname.c_str());
275 sprintf(
name,
"n%sdigivscycle", slab.c_str());
282 sprintf(
name,
"n%sdigivscyclezoom", slab.c_str());
289 sprintf(
name,
"n%sdigivscyclezoom2", slab.c_str());
296 sprintf(
name,
"n%sdigivscycledbx", slab.c_str());
297 sprintf(
title,
"%s %s multiplicity vs BX mod(70) and DBX", slab.c_str(),
m_hitname.c_str());
302 sprintf(
name,
"n%sdigivscycle2dbx", slab.c_str());
303 sprintf(
title,
"%s %s multiplicity vs BX mod(70) and DBX", slab.c_str(),
m_hitname.c_str());
312 sprintf(
name,
"n%sdigivscycletime", slab.c_str());
313 sprintf(
title,
"%s %s multiplicity vs BX mod(70) and Orbit", slab.c_str(),
m_hitname.c_str());
321 sprintf(
title,
"%s %s mean multiplicity vs BX", slab.c_str(),
m_hitname.c_str());
322 sprintf(
name,
"n%sdigivsbx", slab.c_str());
325 m_ndigivsbx[
i]->GetYaxis()->SetTitle(
"Mean Number of Hits");
327 sprintf(
title,
"%s %s multiplicity vs BX", slab.c_str(),
m_hitname.c_str());
330 sprintf(
name,
"n%sdigivsbx2D", slab.c_str());
337 sprintf(
name,
"n%sdigivsbx2Dzoom", slab.c_str());
344 sprintf(
name,
"n%sdigivsbx2Dzoom2", slab.c_str());
Referenced by MultiplicityTimeCorrelations::MultiplicityTimeCorrelations().
◆ fill()
Definition at line 370 of file DigiBXCorrHistogramMaker.h.
373 for (std::map<int, int>::const_iterator digi = ndigi.begin(); digi != ndigi.end(); digi++) {
375 const int i = digi->first;
376 const unsigned int ui =
i;
380 if (!
phase.failedToGet() &&
phase.isValid()) {
385 long long tbx =
he.absoluteBX();
416 if (
he.depth() > 0) {
417 long long dbx =
he.deltaBX();
430 long long prevtbx =
he.absoluteBX(1);
433 long long dbxincycle =
he.deltaBXinCycle(thephase);
446 if (
he.depth() > 1) {
447 long long dbx2 =
he.deltaBX(2);
452 long long dbxincycle =
he.deltaBXinCycle(thephase);
453 long long dbxincycle2 =
he.deltaBXinCycle(2, thephase);
467 edm::LogWarning(
"MissingKey") <<
" Key " << digi->first <<
" is missing ";
Referenced by MultiplicityTimeCorrelations::analyze().
◆ fillcorr()
Definition at line 473 of file DigiBXCorrHistogramMaker.h.
474 for (std::map<int, int>::const_iterator digi = ndigi.begin(); digi != ndigi.end(); digi++) {
476 const int i = digi->first;
478 long long dbx = he2.deltaBX(he1);
482 edm::LogWarning(
"MissingKey") <<
" Key " << digi->first <<
" is missing ";
◆ m_binmax
◆ m_dbx3Histo
◆ m_dbx3Histo3D
◆ m_digicorr
◆ m_hitname
◆ m_labels
◆ m_nbins
◆ m_ncorbins
◆ m_ndigivsbx
◆ m_ndigivsbx2D
◆ m_ndigivsbx2Dzoom
◆ m_ndigivsbx2Dzoom2
◆ m_ndigivscycle
◆ m_ndigivscycle2dbx
◆ m_ndigivscycledbx
◆ m_ndigivscycletime
◆ m_ndigivscyclezoom
◆ m_ndigivscyclezoom2
◆ m_ndigivsdbx
◆ m_ndigivsdbx2D
◆ m_ndigivsdbx2Dzoom
◆ m_ndigivsdbx2Dzoom2
◆ m_ndigivsdbx3zoom
◆ m_ndigivsdbxincycle
◆ m_ndigivsdbxincycle2D
◆ m_ndigivsdbxincycle3
◆ m_ndigivsdbxincycle33D
◆ m_ndigivsdbxzoom
◆ m_ndigivsdbxzoom2
◆ m_nmeandigivscycle
◆ m_phasepart
◆ m_rhm
◆ m_runHisto
◆ m_scalefact
std::map< unsigned int, int > m_binmax
std::map< int, TH2F * > m_ndigivsdbx2Dzoom
std::map< int, TProfile * > m_ndigivsdbx
std::map< int, TH2F * > m_ndigivscyclezoom2
T * make(const Args &... args) const
make new ROOT object
std::map< int, TProfile * > m_ndigivsdbxzoom2
std::map< int, TProfile2D * > m_ndigivsdbxincycle3
T getUntrackedParameter(std::string const &, T const &) const
Log< level::Info, false > LogInfo
std::map< int, TH2F * > m_ndigivsdbx2Dzoom2
std::map< int, TProfile2D ** > m_ndigivscycletime
Log< level::Warning, false > LogWarning
std::map< int, TProfile * > m_nmeandigivscycle
std::map< int, TProfile * > m_digicorr
std::map< int, TH2F * > m_ndigivsdbx2D
std::map< int, TH2F * > m_ndigivsbx2Dzoom2
std::map< int, TH2F * > m_ndigivscyclezoom
std::map< int, TProfile * > m_ndigivsdbxincycle
std::vector< int > m_scalefact
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
std::map< int, TH2F * > m_ndigivsdbxincycle2D
int nstrips(const DetId &detid) const
std::map< int, TProfile * > m_ndigivsdbxzoom
TProfile2D ** makeTProfile2D(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax, const unsigned int nbiny, const double ymin, const double ymax)
void beginRun(const edm::Run &iRun)
std::map< int, TProfile2D * > m_ndigivscycle2dbx
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
std::map< int, TH2F * > m_ndigivsbx2Dzoom
std::map< int, TH2F * > m_ndigivsbx2D
Log< level::Info, true > LogVerbatim
std::map< int, TProfile * > m_ndigivsbx
std::map< int, TH2F * > m_ndigivscycle
std::map< int, TProfile2D * > m_ndigivscycledbx
std::map< int, std::string > m_labels
RunHistogramManager m_rhm
std::map< int, TH3F * > m_ndigivsdbxincycle33D
std::map< int, TProfile2D * > m_ndigivsdbx3zoom
std::map< int, std::string > m_phasepart