|
|
Go to the documentation of this file.
88 lumi_binning_(getHistoPSet(
92 ls_binning_(getHistoLSPSet(
94 doPixelLumi_(
config.getParameter<
bool>(
"doPixelLumi")),
98 useBPixLayer1_(doPixelLumi_ ?
config.getParameter<
bool>(
"useBPixLayer1") :
false),
99 minNumberOfPixelsPerCluster_(doPixelLumi_ ?
config.getParameter<
int>(
"minNumberOfPixelsPerCluster") : -1),
100 minPixelClusterCharge_(doPixelLumi_ ?
config.getParameter<double>(
"minPixelClusterCharge") : -1.),
101 pixelCluster_binning_(doPixelLumi_ ? getHistoPSet(
config.getParameter<
edm::
ParameterSet>(
"histoPSet")
107 if (useBPixLayer1_) {
116 pset.getParameter<int32_t>(
"nbins"),
117 pset.getParameter<
double>(
"xmin"),
118 pset.getParameter<
double>(
"xmax"),
123 return MEbinning{
pset.getParameter<int32_t>(
"nbins"), -0.5,
pset.getParameter<int32_t>(
"nbins") - 0.5};
133 auto me = booker.
book1D(
"numberOfPixelClustersVsLS",
134 "number of pixel clusters vs LS",
138 me->setAxisTitle(
"LS", 1);
139 me->setAxisTitle(
"number of pixel clusters", 2);
143 "number of pixel clusters vs scal lumi",
149 me->setAxisTitle(
"scal inst lumi E30 [Hz cm^{-2}]", 1);
150 me->setAxisTitle(
"number of pixel clusters", 2);
160 me->setAxisTitle(
"LS", 1);
161 me->setAxisTitle(
"pixel-based inst lumi E30 [Hz cm^{-2}]", 2);
165 "pixel-lumi vs scal lumi",
171 me->setAxisTitle(
"scal inst lumi E30 [Hz cm^{-2}]", 1);
172 me->setAxisTitle(
"pixel-based inst lumi E30 [Hz cm^{-2}]", 2);
183 me->setAxisTitle(
"LS", 1);
184 me->setAxisTitle(
"scal inst lumi E30 [Hz cm^{-2}]", 2);
194 me->setAxisTitle(
"LS", 1);
195 me->setAxisTitle(
"scal PU", 2);
202 int ls =
event.id().luminosityBlock();
204 float scal_lumi = -1.;
210 scal_lumi = scalit->instantLumi();
211 scal_pu = scalit->pileup();
220 size_t pixel_clusters = 0;
221 float pixel_lumi = -1.;
225 auto const& tTopo = edm::get<TrackerTopology, TrackerTopologyRcd>(
setup);
231 DetId detid = pixCluDet->detId();
234 if (tTopo.layer(detid) == 1) {
239 for (
auto pixClu = pixCluDet->begin(); pixClu != pixCluDet->end(); ++pixClu) {
251 histograms.numberOfPixelClustersVsLS->Fill(
ls, pixel_clusters);
252 histograms.numberOfPixelClustersVsLumi->Fill(scal_lumi, pixel_clusters);
254 histograms.pixelLumiVsLumi->Fill(scal_lumi, pixel_lumi);
259 pset.add<
int>(
"nbins");
260 pset.add<
double>(
"xmin");
261 pset.add<
double>(
"xmax");
271 desc.add<
bool>(
"doPixelLumi",
false);
272 desc.add<
bool>(
"useBPixLayer1",
false);
273 desc.add<
int>(
"minNumberOfPixelsPerCluster", 2);
274 desc.add<
double>(
"minPixelClusterCharge", 15000.);
299 descriptions.
add(
"lumiMonitor",
desc);
static MEbinning getHistoPSet(const edm::ParameterSet &pset)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &, Histograms &) const override
float minPixelClusterCharge_
LumiMonitor(const edm::ParameterSet &)
static constexpr double CM2_TO_NANOBARN
virtual void setCurrentFolder(std::string const &fullpath)
~LumiMonitor() override=default
static constexpr double XSEC_PIXEL_CLUSTER
Pixel cluster – collection of neighboring pixels above threshold.
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > pixelClustersToken_
edm::EDGetTokenT< LumiSummary > lumiSummaryToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< LumiScalersCollection > lumiScalersToken_
MEbinning pixellumi_binning_
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
static constexpr double FREQ_ORBIT
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
static MEbinning getHistoLSPSet(const edm::ParameterSet &pset)
std::vector< LumiScalers > LumiScalersCollection
static constexpr double rXSEC_PIXEL_CLUSTER
static constexpr double SECONDS_PER_LS
float lumi_factor_per_bx_
dqm::reco::DQMStore DQMStore
T getParameter(std::string const &) const
dqm::legacy::MonitorElement MonitorElement
int minNumberOfPixelsPerCluster_
MEbinning pixelCluster_binning_
void dqmAnalyze(edm::Event const &, edm::EventSetup const &, Histograms const &) const override
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())