57 topFolderName_(iConfig.getParameter<
std::
string>(
"topFolderName")) {}
64 if (!vsoaHandle.isValid()) {
65 edm::LogWarning(
"SiPixelMonitorVertexSoAAlpaka") <<
"No Vertex SoA found \n returning!" << std::endl;
69 auto const& vsoa = *vsoaHandle;
74 float x0 = 0., y0 = 0.,
z0 = 0.,
dxdz = 0.,
dydz = 0.;
75 if (!bsHandle.isValid()) {
76 edm::LogWarning(
"SiPixelMonitorVertexSoAAlpaka") <<
"No beamspot found. returning vertexes with (0,0,Z) ";
87 auto si = vtx_view[
iv].sortInd();
88 auto z = vtx_view[si].zv();
96 auto ndof = trk_view[si].ndof();
114 hnVertex = ibooker.
book1D(
"nVertex",
";# of Vertices;#entries", 101, -0.5, 100.5);
115 hx = ibooker.
book1D(
"vx",
";Vertex x;#entries", 10, -5., 5.);
116 hy = ibooker.
book1D(
"vy",
";Vertex y;#entries", 10, -5., 5.);
117 hz = ibooker.
book1D(
"vz",
";Vertex z;#entries", 30, -30., 30);
118 hchi2 = ibooker.
book1D(
"chi2",
";Vertex chi-squared;#entries", 40, 0., 20.);
119 hchi2oNdof = ibooker.
book1D(
"chi2oNdof",
";Vertex chi-squared/Ndof;#entries", 40, 0., 20.);
120 hptv2 = ibooker.
book1D(
"ptsq",
";Vertex #sum (p_{T})^{2};#entries", 200, 0., 200.);
121 hntrks = ibooker.
book1D(
"ntrk",
";#tracks associated;#entries", 100, -0.5, 99.5);
129 desc.add<
std::string>(
"topFolderName",
"SiPixelHeterogeneous/PixelVertexAlpaka");
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
MonitorElement * hchi2oNdof
const edm::EDGetTokenT< reco::BeamSpot > tokenBeamSpot_
virtual void setCurrentFolder(std::string const &fullpath)
std::vector< uint16_t > IndToEdm
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
SiPixelMonitorVertexSoAAlpaka(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
void bookHistograms(DQMStore::IBooker &ibooker, edm::Run const &iRun, edm::EventSetup const &iSetup) override
std::string topFolderName_
const edm::EDGetTokenT< ZVertexHost > tokenSoAVertex_
MonitorElement * hnVertex
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())
~SiPixelMonitorVertexSoAAlpaka() override=default