16 : folderName_(iConfig.getParameter<
std::
string>(
"FolderName")),
21 pvNDOF_(iConfig.getParameter<
int>(
"pvNDOF")),
23 iConfig.getParameter<
edm::
ParameterSet>(
"genericTriggerEventPSet"), consumesCollector(), *this)) {
93 return ibooker.
book1D(name, title_w_axes, binning.nbins, binning.xmin, binning.xmax);
101 MEbinning ybinning) {
104 name, title_w_axes, xbinning.nbins, xbinning.xmin, xbinning.xmax, ybinning.nbins, ybinning.xmin, ybinning.xmax);
112 MEbinning ybinning) {
115 name, title_w_axes, xbinning.nbins, xbinning.xmin, xbinning.xmax, ybinning.xmin, ybinning.xmax);
125 N_binning.nbins = 15;
126 N_binning.xmin = -0.5;
127 N_binning.xmax = 14.5;
132 MEbinning phi_binning;
133 phi_binning.nbins = 34;
134 phi_binning.xmin = -3.2;
135 phi_binning.xmax = 3.2;
149 MEbinning delta_binning;
150 delta_binning.nbins = 150;
151 delta_binning.xmin = -0.15;
152 delta_binning.xmax = 0.15;
155 ibooker,
"v0_deltaMass_vs_pt",
"deltaMass vs pt",
"p_{T} [GeV]",
"m-m_{PDG}/m_{DPG}",
pt_binning_, delta_binning);
157 ibooker,
"v0_deltaMass_vs_eta",
"deltaMass vs eta",
"#eta",
"m-m_{PDG}/m_{DPG}",
eta_binning_, delta_binning);
160 "v0_Lxy_vs_deltaMass",
161 "L_{xy} vs deltaMass",
171 MEbinning bx_binning;
172 bx_binning.nbins = 3564;
173 bx_binning.xmin = 0.5;
174 bx_binning.xmax = 3564.5;
175 n_vs_BX_ =
bookHisto1D(ibooker,
"n_vs_BX",
"# events vs BX",
"BX",
"# events", bx_binning);
180 ibooker,
"v0_deltaMass_vs_BX",
"deltaMass vs BX",
"BX",
"m-m_{PDG}/m_{DPG}", bx_binning, delta_binning);
183 ibooker,
"n_vs_lumi",
"# events vs lumi",
"inst. lumi x10^{30} [Hz cm^{-2}]",
"# events",
lumi_binning_);
185 ibooker,
"v0_N_vs_lumi",
"# v0 vs lumi",
"inst. lumi x10^{30} [Hz cm^{-2}]",
"# v0",
lumi_binning_, N_binning);
189 "inst. lumi x10^{30} [Hz cm^{-2}]",
196 "inst. lumi x10^{30} [Hz cm^{-2}]",
201 "v0_deltaMass_vs_lumi",
203 "inst. lumi x10^{30} [Hz cm^{-2}]",
215 ibooker,
"v0_deltaMass_vs_PU",
"deltaMass vs PU",
"# good PV",
"m-m_{PDG}/m_{DPG}",
pu_binning_, delta_binning);
239 if (lumiScalers.
isValid() && !lumiScalers->empty()) {
240 LumiScalersCollection::const_iterator scalit = lumiScalers->begin();
241 lumi = scalit->instantLumi();
250 bs = &(*beamspotHandle);
257 pv = &pvHandle->front();
265 for (
auto v : *pvHandle) {
282 int n = (v0Handle.
isValid() ? v0Handle->size() : -1);
293 for (
auto v0 : v0s) {
297 float eta =
v0.eta();
298 float phi =
v0.phi();
299 int pdgID =
v0.pdgId();
300 float chi2oNDF =
v0.vertexNormalizedChi2();
309 float lxy = (pv ==
nullptr ? -9. : displacementFromPV.
perp());
310 float lxyWRTbs = (bs ==
nullptr ? -9. : displacementFromBS.
perp());
331 float PDGmass = -9999.;
348 float delta = (PDGmass > 0. ? (mass - PDGmass) / PDGmass : -9.);
MonitorElement * v0_Lxy_vs_pt_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX)
T getParameter(std::string const &) const
MonitorElement * v0_deltaMass_vs_PU_
MonitorElement * v0_mass_vs_PU_
MonitorElement * v0_Lxy_vs_PU_
MonitorElement * v0_N_vs_LS_
MonitorElement * v0_mass_vs_eta_
MonitorElement * v0_mass_vs_lumi_
std::vector< VertexCompositeCandidate > VertexCompositeCandidateCollection
collection of Candidate objects
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void getHistoPSet(edm::ParameterSet pset, MEbinning &mebinning)
V0Monitor(const edm::ParameterSet &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * v0_mass_vs_p_
void setCurrentFolder(std::string const &fullpath)
MonitorElement * bookHisto2D(DQMStore::IBooker &ibooker, std::string name, std::string title, std::string xaxis, std::string yaxis, MEbinning xbinning, MEbinning ybinning)
double y() const
y coordinate
MonitorElement * v0_mass_
MonitorElement * v0_chi2oNDF_
Global3DPoint GlobalPoint
int bunchCrossing() const
MonitorElement * v0_mass_vs_pt_
std::vector< Vertex > VertexCollection
collection of Vertex objects
MonitorElement * v0_deltaMass_
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
LuminosityBlockNumber_t luminosityBlock() const
edm::EDGetTokenT< reco::BeamSpot > bsToken_
MonitorElement * bookProfile(DQMStore::IBooker &ibooker, std::string name, std::string title, std::string xaxis, std::string yaxis, MEbinning xbinning, MEbinning ybinning)
double dydz() const
dydz slope
#define DEFINE_FWK_MODULE(type)
MonitorElement * v0_deltaMass_vs_lumi_
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
edm::EDGetTokenT< reco::VertexCompositeCandidateCollection > v0Token_
MonitorElement * v0_Lxy_vs_BX_
bool accept(const edm::Event &event, const edm::EventSetup &setup)
To be called from analyze/filter() methods.
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, char const *option="s")
MonitorElement * v0_Lxy_wrtBS_
MonitorElement * n_vs_lumi_
double z() const
z coordinate
MonitorElement * v0_Lxy_vs_lumi_
MonitorElement * v0_Lxy_vs_eta_
MonitorElement * v0_deltaMass_vs_BX_
edm::EDGetTokenT< reco::VertexCollection > pvToken_
double dxdz() const
dxdz slope
MonitorElement * v0_deltaMass_vs_eta_
MEbinning chi2oNDF_binning_
double x() const
x coordinate
T const * product() const
edm::EDGetTokenT< LumiScalersCollection > lumiscalersToken_
MonitorElement * v0_Lxy_vs_deltaMass_
MonitorElement * n_vs_PU_
MonitorElement * n_vs_LS_
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
std::vector< LumiScalers > LumiScalersCollection
const Point & position() const
position
GenericTriggerEventFlag * genTriggerEventFlag_
void initRun(const edm::Run &run, const edm::EventSetup &setup)
To be called from beginRun() methods.
MonitorElement * v0_N_vs_BX_
MonitorElement * v0_mass_vs_BX_
MonitorElement * n_vs_BX_
MonitorElement * v0_N_vs_lumi_
virtual TH1 * getTH1() const
size_t tracksSize() const
number of tracks
MonitorElement * v0_N_vs_PU_
MonitorElement * bookHisto1D(DQMStore::IBooker &ibooker, std::string name, std::string title, std::string xaxis, std::string yaxis, MEbinning binning)
MonitorElement * v0_deltaMass_vs_pt_