16 : folderName_(iConfig.getParameter<
std::
string>(
"FolderName")),
22 forceSCAL_(iConfig.getParameter<
bool>(
"forceSCAL")),
23 pvNDOF_(iConfig.getParameter<
int>(
"pvNDOF")),
25 iConfig.getParameter<
edm::
ParameterSet>(
"genericTriggerEventPSet"), consumesCollector(), *this)) {
83 mebinning.nbins =
pset.getParameter<int32_t>(
"nbins");
84 mebinning.xmin =
pset.getParameter<
double>(
"xmin");
85 mebinning.xmax =
pset.getParameter<
double>(
"xmax");
103 MEbinning ybinning) {
106 name, title_w_axes, xbinning.nbins, xbinning.xmin, xbinning.xmax, ybinning.nbins, ybinning.xmin, ybinning.xmax);
114 MEbinning ybinning) {
117 name, title_w_axes, xbinning.nbins, xbinning.xmin, xbinning.xmax, ybinning.xmin, ybinning.xmax);
127 N_binning.nbins = 15;
128 N_binning.xmin = -0.5;
129 N_binning.xmax = 14.5;
134 MEbinning phi_binning;
135 phi_binning.nbins = 34;
136 phi_binning.xmin = -3.2;
137 phi_binning.xmax = 3.2;
151 MEbinning delta_binning;
152 delta_binning.nbins = 150;
153 delta_binning.xmin = -0.15;
154 delta_binning.xmax = 0.15;
157 ibooker,
"v0_deltaMass_vs_pt",
"deltaMass vs pt",
"p_{T} [GeV]",
"m-m_{PDG}/m_{DPG}",
pt_binning_, delta_binning);
159 ibooker,
"v0_deltaMass_vs_eta",
"deltaMass vs eta",
"#eta",
"m-m_{PDG}/m_{DPG}",
eta_binning_, delta_binning);
162 "v0_Lxy_vs_deltaMass",
163 "L_{xy} vs deltaMass",
173 MEbinning bx_binning;
174 bx_binning.nbins = 3564;
175 bx_binning.xmin = 0.5;
176 bx_binning.xmax = 3564.5;
177 n_vs_BX_ =
bookHisto1D(ibooker,
"n_vs_BX",
"# events vs BX",
"BX",
"# events", bx_binning);
182 ibooker,
"v0_deltaMass_vs_BX",
"deltaMass vs BX",
"BX",
"m-m_{PDG}/m_{DPG}", bx_binning, delta_binning);
185 ibooker,
"n_vs_lumi",
"# events vs lumi",
"inst. lumi x10^{30} [Hz cm^{-2}]",
"# events",
lumi_binning_);
187 ibooker,
"v0_N_vs_lumi",
"# v0 vs lumi",
"inst. lumi x10^{30} [Hz cm^{-2}]",
"# v0",
lumi_binning_, N_binning);
191 "inst. lumi x10^{30} [Hz cm^{-2}]",
198 "inst. lumi x10^{30} [Hz cm^{-2}]",
203 "v0_deltaMass_vs_lumi",
205 "inst. lumi x10^{30} [Hz cm^{-2}]",
217 ibooker,
"v0_deltaMass_vs_PU",
"deltaMass vs PU",
"# good PV",
"m-m_{PDG}/m_{DPG}",
pu_binning_, delta_binning);
242 LumiScalersCollection::const_iterator scalit =
lumiScalers->begin();
243 lumi = scalit->instantLumi();
256 bs = &(*beamspotHandle);
262 pv = &pvHandle->front();
265 pv->tracksSize() == 0
270 for (
const auto&
v : *pvHandle) {
282 float nLS =
static_cast<float>(
iEvent.id().luminosityBlock());
286 int n = (v0Handle.
isValid() ? v0Handle->size() : -1);
297 for (
const auto&
v0 : v0s) {
301 float eta =
v0.eta();
302 float phi =
v0.phi();
303 int pdgID =
v0.pdgId();
304 float chi2oNDF =
v0.vertexNormalizedChi2();
311 -1 * ((
bs->position().y() -
v0.vy()) + (
v0.vz() -
bs->position().z()) *
bs->dydz()),
313 float lxy = (
pv ==
nullptr ? -9. : displacementFromPV.
perp());
314 float lxyWRTbs = (
bs ==
nullptr ? -9. : displacementFromBS.
perp());
335 float PDGmass = -9999.;
352 float delta = (PDGmass > 0. ? (
mass - PDGmass) / PDGmass : -9.);
MonitorElement * v0_Lxy_vs_pt_
MonitorElement * v0_deltaMass_vs_PU_
MonitorElement * v0_mass_vs_PU_
MonitorElement * v0_Lxy_vs_PU_
T getParameter(std::string const &) const
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
virtual void setCurrentFolder(std::string const &fullpath)
void getHistoPSet(edm::ParameterSet pset, MEbinning &mebinning)
V0Monitor(const edm::ParameterSet &)
MonitorElement * v0_mass_vs_p_
#define DEFINE_FWK_MODULE(type)
MonitorElement * bookHisto2D(DQMStore::IBooker &ibooker, std::string name, std::string title, std::string xaxis, std::string yaxis, MEbinning xbinning, MEbinning ybinning)
MonitorElement * v0_mass_
MonitorElement * v0_chi2oNDF_
T const * product() const
Class to contain the online luminosity from soft FED 1022.
Global3DPoint GlobalPoint
MonitorElement * v0_mass_vs_pt_
MonitorElement * v0_deltaMass_
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
float instLumi() const
Return the luminosity for the current nibble.
std::vector< Vertex > VertexCollection
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)
MonitorElement * v0_deltaMass_vs_lumi_
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
edm::EDGetTokenT< reco::VertexCompositeCandidateCollection > v0Token_
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())
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 * v0_Lxy_wrtBS_
MonitorElement * n_vs_lumi_
MonitorElement * v0_Lxy_vs_lumi_
MonitorElement * v0_Lxy_vs_eta_
edm::EDGetTokenT< OnlineLuminosityRecord > metaDataToken_
MonitorElement * v0_deltaMass_vs_BX_
edm::EDGetTokenT< reco::VertexCollection > pvToken_
MonitorElement * v0_deltaMass_vs_eta_
MEbinning chi2oNDF_binning_
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
edm::EDGetTokenT< LumiScalersCollection > lumiscalersToken_
MonitorElement * v0_Lxy_vs_deltaMass_
virtual TH1 * getTH1() const
MonitorElement * n_vs_PU_
MonitorElement * n_vs_LS_
std::vector< LumiScalers > LumiScalersCollection
GenericTriggerEventFlag * genTriggerEventFlag_
void initRun(const edm::Run &run, const edm::EventSetup &setup)
To be called from beginRun() methods.
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
MonitorElement * v0_N_vs_BX_
MonitorElement * v0_mass_vs_BX_
MonitorElement * n_vs_BX_
MonitorElement * v0_N_vs_lumi_
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_