13 folderName_ ( iConfig.getParameter<std::
string>(
"FolderName") )
15 , lumi_binning_ ( getHistoPSet (iConfig.getParameter<edm::
ParameterSet>(
"histoPSet").getParameter<edm::
ParameterSet>(
"lumiPSet")) )
16 , ls_binning_ ( getHistoLSPSet(iConfig.getParameter<edm::
ParameterSet>(
"histoPSet").getParameter<edm::
ParameterSet>(
"lsPSet")) )
17 , doPixelLumi_ ( iConfig.getParameter<bool>(
"doPixelLumi") )
18 , pixelClustersToken_ ( doPixelLumi_ ? consumes<edmNew::DetSetVector<
SiPixelCluster> >(iConfig.getParameter<edm::
InputTag>(
"pixelClusters") ) : edm::EDGetTokenT<edmNew::DetSetVector<
SiPixelCluster>> () )
19 , useBPixLayer1_ ( doPixelLumi_ ? iConfig.getParameter<bool> (
"useBPixLayer1") :
false )
20 , minNumberOfPixelsPerCluster_ ( doPixelLumi_ ? iConfig.getParameter<int> (
"minNumberOfPixelsPerCluster") : -1 )
21 , minPixelClusterCharge_ ( doPixelLumi_ ? iConfig.getParameter<double> (
"minPixelClusterCharge") : -1. )
22 , pixelCluster_binning_ ( doPixelLumi_ ? getHistoPSet (iConfig.getParameter<edm::
ParameterSet>(
"histoPSet").getParameter<edm::
ParameterSet>(
"pixelClusterPSet")) :
MEbinning {} )
26 numberOfPixelClustersVsLS_ =
nullptr;
27 numberOfPixelClustersVsLumi_ =
nullptr;
29 pixelLumiVsLS_ =
nullptr;
30 pixelLumiVsLumi_ =
nullptr;
68 histname =
"numberOfPixelClustersVsLS"; histtitle =
"number of pixel clusters vs LS";
75 histname =
"numberOfPixelClustersVsLumi"; histtitle =
"number of pixel clusters vs scal lumi";
82 histname =
"pixelLumiVsLS"; histtitle =
"pixel-lumi vs LS";
90 histname =
"pixelLumiVsLumi"; histtitle =
"pixel-lumi vs scal lumi";
98 histname =
"lumiVsLS"; histtitle =
"scal lumi vs LS";
117 float scal_lumi = -1.;
120 if ( lumiScalers.
isValid() && lumiScalers->size() ) {
121 LumiScalersCollection::const_iterator scalit = lumiScalers->begin();
122 scal_lumi = scalit->instantLumi();
129 size_t pixel_clusters = 0;
130 float pixel_lumi = -1.;
133 if ( pixelClusters.
isValid() ) {
143 for ( ; pixCluDet!=pixelClusters->end(); ++pixCluDet) {
145 DetId detid = pixCluDet->detId();
148 if ( tTopo->
layer(detid)==1 )
152 for ( ; pixClu != pixCluDet->
end(); ++pixClu ) {
174 pset.
add<
int> (
"nbins");
175 pset.
add<
double>(
"xmin" );
176 pset.
add<
double>(
"xmax" );
181 pset.
add<
int> (
"nbins", 2500);
190 desc.
add<
bool> (
"doPixelLumi",
false );
191 desc.
add<
bool> (
"useBPixLayer1",
false );
192 desc.
add<
int> (
"minNumberOfPixelsPerCluster", 2 );
193 desc.
add<
double> (
"minPixelClusterCharge", 15000. );
198 histoPSet.add(
"pixelClusterPSet", pixelClusterPSet);
214 descriptions.
add(
"lumiMonitor", desc);
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
T getParameter(std::string const &) const
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
const_iterator end(bool update=false) const
MonitorElement * bookProfile(Args &&...args)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
float minPixelClusterCharge_
#define DEFINE_FWK_MODULE(type)
data_type const * const_iterator
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > pixelClustersToken_
LuminosityBlockNumber_t luminosityBlock() const
static double XSEC_PIXEL_CLUSTER
MonitorElement * numberOfPixelClustersVsLumi_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
MonitorElement * pixelLumiVsLumi_
edm::EDGetTokenT< LumiScalersCollection > lumiScalersToken_
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MEbinning pixellumi_binning_
MonitorElement * book1D(Args &&...args)
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
static double CM2_TO_NANOBARN
static MEbinning getHistoPSet(edm::ParameterSet pset)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
MonitorElement * lumiVsLS_
MonitorElement * pixelLumiVsLS_
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)
void setCurrentFolder(const std::string &fullpath)
T const * product() const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static double rXSEC_PIXEL_CLUSTER
MEbinning pixelCluster_binning_
unsigned int layer(const DetId &id) const
static MEbinning getHistoLSPSet(edm::ParameterSet pset)
MonitorElement * numberOfPixelClustersVsLS_
Pixel cluster – collection of neighboring pixels above threshold.
float lumi_factor_per_bx_
int minNumberOfPixelsPerCluster_
std::vector< LumiScalers > LumiScalersCollection
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup)
volatile std::atomic< bool > shutdown_flag false
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
const_iterator begin(bool update=false) const
LumiMonitor(const edm::ParameterSet &)
static double SECONDS_PER_LS