18 desc.add<
bool>(
"forceSCAL",
true);
20 desc.add<
int>(
"pvNDOF", 4);
26 psd1.
add<
int>(
"nbins", 3700);
27 psd1.
add<
double>(
"xmin", 0.);
28 psd1.
add<
double>(
"xmax", 14000.);
33 psd2.
add<
int>(
"nbins", 100);
34 psd2.
add<
double>(
"xmin", 0.400);
35 psd2.
add<
double>(
"xmax", 0.600);
40 psd3.
add<
int>(
"nbins", 100);
41 psd3.
add<
double>(
"xmin", 0.);
42 psd3.
add<
double>(
"xmax", 50.);
47 psd4.
add<
int>(
"nbins", 60);
48 psd4.
add<
double>(
"xmin", -3.);
49 psd4.
add<
double>(
"xmax", 3.);
54 psd5.
add<
int>(
"nbins", 350);
55 psd5.
add<
double>(
"xmin", 0.);
56 psd5.
add<
double>(
"xmax", 70.);
61 psd6.
add<
int>(
"nbins", 100);
62 psd6.
add<
double>(
"xmin", 0.);
63 psd6.
add<
double>(
"xmax", 30.);
68 psd7.
add<
int>(
"nbins", 100);
69 psd7.
add<
double>(
"xmin", -0.5);
70 psd7.
add<
double>(
"xmax", 99.5);
75 psd8.
add<
int>(
"nbins", 2000);
76 psd8.
add<
double>(
"xmin", 0.);
77 psd8.
add<
double>(
"xmax", 2000.);
93 : folderName_(iConfig.getParameter<
std::
string>(
"FolderName")),
99 forceSCAL_(iConfig.getParameter<
bool>(
"forceSCAL")),
100 pvNDOF_(iConfig.getParameter<
int>(
"pvNDOF")),
102 iConfig.getParameter<
edm::
ParameterSet>(
"genericTriggerEventPSet"), consumesCollector(), *this)) {
160 mebinning.
nbins =
pset.getParameter<int32_t>(
"nbins");
161 mebinning.
xmin =
pset.getParameter<
double>(
"xmin");
162 mebinning.
xmax =
pset.getParameter<
double>(
"xmax");
204 N_binning.
nbins = 15;
205 N_binning.
xmin = -0.5;
206 N_binning.
xmax = 14.5;
212 phi_binning.
nbins = 34;
213 phi_binning.
xmin = -3.2;
214 phi_binning.
xmax = 3.2;
229 delta_binning.
nbins = 150;
230 delta_binning.
xmin = -0.15;
231 delta_binning.
xmax = 0.15;
234 ibooker,
"v0_deltaMass_vs_pt",
"deltaMass vs pt",
"p_{T} [GeV]",
"m-m_{PDG}/m_{DPG}",
pt_binning_, delta_binning);
236 ibooker,
"v0_deltaMass_vs_eta",
"deltaMass vs eta",
"#eta",
"m-m_{PDG}/m_{DPG}",
eta_binning_, delta_binning);
239 "v0_Lxy_vs_deltaMass",
240 "L_{xy} vs deltaMass",
251 bx_binning.
nbins = 3564;
252 bx_binning.
xmin = 0.5;
253 bx_binning.
xmax = 3564.5;
254 n_vs_BX_ =
bookHisto1D(ibooker,
"n_vs_BX",
"# events vs BX",
"BX",
"# events", bx_binning);
259 ibooker,
"v0_deltaMass_vs_BX",
"deltaMass vs BX",
"BX",
"m-m_{PDG}/m_{DPG}", bx_binning, delta_binning);
262 ibooker,
"n_vs_lumi",
"# events vs lumi",
"inst. lumi x10^{30} [Hz cm^{-2}]",
"# events",
lumi_binning_);
264 ibooker,
"v0_N_vs_lumi",
"# v0 vs lumi",
"inst. lumi x10^{30} [Hz cm^{-2}]",
"# v0",
lumi_binning_, N_binning);
268 "inst. lumi x10^{30} [Hz cm^{-2}]",
275 "inst. lumi x10^{30} [Hz cm^{-2}]",
280 "v0_deltaMass_vs_lumi",
282 "inst. lumi x10^{30} [Hz cm^{-2}]",
294 ibooker,
"v0_deltaMass_vs_PU",
"deltaMass vs PU",
"# good PV",
"m-m_{PDG}/m_{DPG}",
pu_binning_, delta_binning);
319 LumiScalersCollection::const_iterator scalit =
lumiScalers->begin();
320 lumi = scalit->instantLumi();
333 bs = &(*beamspotHandle);
339 pv = &pvHandle->front();
342 pv->tracksSize() == 0
347 for (
const auto&
v : *pvHandle) {
359 float nLS =
static_cast<float>(
iEvent.id().luminosityBlock());
363 int n = (v0Handle.
isValid() ? v0Handle->size() : -1);
374 for (
const auto&
v0 : v0s) {
378 float eta =
v0.eta();
379 float phi =
v0.phi();
380 int pdgID =
v0.pdgId();
381 float chi2oNDF =
v0.vertexNormalizedChi2();
388 -1 * ((
bs->position().y() -
v0.vy()) + (
v0.vz() -
bs->position().z()) *
bs->dydz()),
390 float lxy = (
pv ==
nullptr ? -9. : displacementFromPV.
perp());
391 float lxyWRTbs = (
bs ==
nullptr ? -9. : displacementFromBS.
perp());
412 float PDGmass = -9999.;
429 float delta = (PDGmass > 0. ? (
mass - PDGmass) / PDGmass : -9.);
MonitorElement * v0_Lxy_vs_pt_
MonitorElement * v0_deltaMass_vs_PU_
MonitorElement * v0_mass_vs_PU_
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
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
const edm::EDGetTokenT< LumiScalersCollection > lumiscalersToken_
virtual void setCurrentFolder(std::string const &fullpath)
void getHistoPSet(edm::ParameterSet pset, MEbinning &mebinning)
V0Monitor(const edm::ParameterSet &)
MonitorElement * v0_mass_vs_p_
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
MonitorElement * bookProfile(DQMStore::IBooker &ibooker, std::string name, std::string title, std::string xaxis, std::string yaxis, MEbinning xbinning, MEbinning ybinning)
const std::string folderName_
const edm::EDGetTokenT< reco::VertexCollection > pvToken_
MonitorElement * v0_deltaMass_vs_lumi_
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
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_
#define DEFINE_FWK_MODULE(type)
MonitorElement * v0_deltaMass_vs_BX_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
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())
MonitorElement * v0_Lxy_vs_deltaMass_
const edm::EDGetTokenT< reco::VertexCompositeCandidateCollection > v0Token_
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.
const edm::EDGetTokenT< OnlineLuminosityRecord > metaDataToken_
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_
static void fillPSetDescription(edm::ParameterSetDescription &desc)
MonitorElement * v0_N_vs_lumi_
const edm::EDGetTokenT< reco::BeamSpot > bsToken_
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_