13 folderName_ ( iConfig.getParameter<
std::
string>(
"FolderName") )
18 , doPixelLumi_ ( iConfig.getParameter<
bool>(
"doPixelLumi") )
20 , useBPixLayer1_ ( doPixelLumi_ ? iConfig.getParameter<
bool> (
"useBPixLayer1") :
false )
21 , minNumberOfPixelsPerCluster_ ( doPixelLumi_ ? iConfig.getParameter<
int> (
"minNumberOfPixelsPerCluster") : -1 )
22 , minPixelClusterCharge_ ( doPixelLumi_ ? iConfig.getParameter<double> (
"minPixelClusterCharge") : -1. )
70 histname =
"numberOfPixelClustersVsLS"; histtitle =
"number of pixel clusters vs LS";
77 histname =
"numberOfPixelClustersVsLumi"; histtitle =
"number of pixel clusters vs scal lumi";
84 histname =
"pixelLumiVsLS"; histtitle =
"pixel-lumi vs LS";
92 histname =
"pixelLumiVsLumi"; histtitle =
"pixel-lumi vs scal lumi";
100 histname =
"lumiVsLS"; histtitle =
"scal lumi vs LS";
108 histname =
"puVsLS"; histtitle =
"scal PU vs LS";
127 float scal_lumi = -1.;
131 if ( lumiScalers.
isValid() && !lumiScalers->empty() ) {
132 LumiScalersCollection::const_iterator scalit = lumiScalers->begin();
133 scal_lumi = scalit->instantLumi();
134 scal_pu = scalit->pileup();
143 size_t pixel_clusters = 0;
144 float pixel_lumi = -1.;
147 if ( pixelClusters.
isValid() ) {
157 for ( ; pixCluDet!=pixelClusters->end(); ++pixCluDet) {
159 DetId detid = pixCluDet->detId();
162 if ( tTopo->
layer(detid)==1 )
166 for ( ; pixClu != pixCluDet->
end(); ++pixClu ) {
188 pset.
add<
int> (
"nbins");
189 pset.
add<
double>(
"xmin" );
190 pset.
add<
double>(
"xmax" );
195 pset.
add<
int> (
"nbins", 2500);
204 desc.
add<
bool> (
"doPixelLumi",
false );
205 desc.
add<
bool> (
"useBPixLayer1",
false );
206 desc.
add<
int> (
"minNumberOfPixelsPerCluster", 2 );
207 desc.
add<
double> (
"minPixelClusterCharge", 15000. );
212 histoPSet.add(
"pixelClusterPSet", pixelClusterPSet);
232 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_
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
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)
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 setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
T const * product() const
const_iterator begin(bool update=false) const
LumiMonitor(const edm::ParameterSet &)
static double SECONDS_PER_LS