65 if (!vsoaHandle.isValid()) {
66 edm::LogWarning(
"SiPixelMonitorVertexSoA") <<
"No Vertex SoA found \n returning!" << std::endl;
70 auto const& vsoa = *vsoaHandle;
73 float x0 = 0., y0 = 0.,
z0 = 0.,
dxdz = 0.,
dydz = 0.;
74 if (!bsHandle.isValid()) {
75 edm::LogWarning(
"SiPixelMonitorVertexSoA") <<
"No beamspot found. returning vertexes with (0,0,Z) ";
86 auto si = vsoa.view()[
iv].sortInd();
87 auto z = vsoa.view()[si].zv();
95 auto ndof = vsoa.view()[si].ndof();
113 hnVertex = ibooker.
book1D(
"nVertex",
";# of Vertices;#entries", 101, -0.5, 100.5);
114 hx = ibooker.
book1D(
"vx",
";Vertex x;#entries", 10, -5., 5.);
115 hy = ibooker.
book1D(
"vy",
";Vertex y;#entries", 10, -5., 5.);
116 hz = ibooker.
book1D(
"vz",
";Vertex z;#entries", 30, -30., 30);
117 hchi2 = ibooker.
book1D(
"chi2",
";Vertex chi-squared;#entries", 40, 0., 20.);
118 hchi2oNdof = ibooker.
book1D(
"chi2oNdof",
";Vertex chi-squared/Ndof;#entries", 40, 0., 20.);
119 hptv2 = ibooker.
book1D(
"ptsq",
";Vertex #sum (p_{T})^{2};#entries", 200, 0., 200.);
120 hntrks = ibooker.
book1D(
"ntrk",
";#tracks associated;#entries", 100, -0.5, 99.5);
128 desc.add<
std::string>(
"topFolderName",
"SiPixelHeterogeneous/PixelVertexSoA");
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
T getParameter(std::string const &) const
virtual void setCurrentFolder(std::string const &fullpath)
std::vector< uint16_t > IndToEdm
MonitorElement * hchi2oNdof
std::string topFolderName_
SiPixelMonitorVertexSoA(const edm::ParameterSet &)
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
edm::EDGetTokenT< reco::BeamSpot > tokenBeamSpot_
edm::EDGetTokenT< ZVertexSoAHost > tokenSoAVertex_
#define DEFINE_FWK_MODULE(type)
~SiPixelMonitorVertexSoA() override=default
MonitorElement * hnVertex
void bookHistograms(DQMStore::IBooker &ibooker, edm::Run const &iRun, edm::EventSetup const &iSetup) override
Log< level::Warning, false > LogWarning
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)