47 bookH2(iBooker,
"beamSpotXvsY",
"beam spot x vs y", 100, -0.2, 0.2, 100, -0.2, 0.2,
"x (cm)",
"y (cm)");
49 bookP1(iBooker,
"nElectronsVsLs",
"# gsf electrons vs LS", 150, 0., 1500., 0., 20.,
"LS",
"<N_{ele}>");
51 bookP1(iBooker,
"nClustersVsLs",
"# clusters vs LS", 150, 0., 1500., 0., 100.,
"LS",
"<N_{SC}>");
53 bookP1(iBooker,
"nGsfTracksVsLs",
"# gsf tracks vs LS", 150, 0., 1500., 0., 20.,
"LS",
"<N_{GSF tk}>");
54 py_ele_nTracksVsLs =
bookP1(iBooker,
"nTracksVsLs",
"# tracks vs LS", 150, 0., 1500., 0., 100.,
"LS",
"<N_{gen tk}>");
56 bookP1(iBooker,
"nVerticesVsLs",
"# vertices vs LS", 150, 0., 1500., 0., 10.,
"LS",
"<N_{vert}>");
80 <<
"Treating " << gsfElectrons.
product()->size() <<
" electrons"
81 <<
" from event " << ievt <<
" in run " << irun <<
" and lumiblock " << ils;
94 unsigned int i,
n = triggerResults->size();
95 for (i = 0; i !=
n; ++
i) {
96 if (triggerResults->accept(i)) {
edm::EDGetTokenT< reco::BeamSpot > beamSpotTag_
EventNumber_t event() const
MonitorElement * py_ele_nGsfTracksVsLs
MonitorElement * h2_ele_beamSpotXvsY
MonitorElement * py_ele_nVerticesVsLs
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * py_ele_nElectronsVsLs
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
ElectronGeneralAnalyzer(const edm::ParameterSet &conf)
unsigned long long EventNumber_t
edm::LuminosityBlockNumber_t luminosityBlock() const
auto const & tracks
cannot be loose
unsigned int LuminosityBlockNumber_t
MonitorElement * py_ele_nClustersVsLs
void analyze(const edm::Event &e, const edm::EventSetup &c) override
MonitorElement * bookH1(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, const std::string &titleX="", const std::string &titleY="Events", Option_t *option="E1 P")
edm::EDGetTokenT< reco::TrackCollection > trackCollection_
edm::EDGetTokenT< reco::GsfElectronCollection > electronCollection_
MonitorElement * bookP1(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, double lowY, double highY, const std::string &titleX="", const std::string &titleY="", Option_t *option="E1 P")
~ElectronGeneralAnalyzer() override
static std::string const triggerResults
edm::EDGetTokenT< reco::VertexCollection > vertexCollection_
Log< level::Info, false > LogInfo
T const * product() const
T getParameter(std::string const &) const
MonitorElement * h1_ele_triggers
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
MonitorElement * bookH2(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const std::string &titleX="", const std::string &titleY="", Option_t *option="COLZ")
const Point & position() const
position
edm::EDGetTokenT< reco::GsfTrackCollection > gsftrackCollection_
edm::EDGetTokenT< reco::SuperClusterCollection > matchingObjectCollection_
MonitorElement * py_ele_nTracksVsLs