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;
72 float x0 = 0., y0 = 0.,
z0 = 0.,
dxdz = 0.,
dydz = 0.;
73 if (!bsHandle.isValid()) {
74 edm::LogWarning(
"SiPixelMonitorVertexSoAAlpaka") <<
"No beamspot found. returning vertexes with (0,0,Z) ";
85 auto si = vsoa.view()[
iv].sortInd();
86 auto z = vsoa.view()[si].zv();
94 auto ndof = vsoa.view()[si].ndof();
112 hnVertex = ibooker.
book1D(
"nVertex",
";# of Vertices;#entries", 101, -0.5, 100.5);
113 hx = ibooker.
book1D(
"vx",
";Vertex x;#entries", 10, -5., 5.);
114 hy = ibooker.
book1D(
"vy",
";Vertex y;#entries", 10, -5., 5.);
115 hz = ibooker.
book1D(
"vz",
";Vertex z;#entries", 30, -30., 30);
116 hchi2 = ibooker.
book1D(
"chi2",
";Vertex chi-squared;#entries", 40, 0., 20.);
117 hchi2oNdof = ibooker.
book1D(
"chi2oNdof",
";Vertex chi-squared/Ndof;#entries", 40, 0., 20.);
118 hptv2 = ibooker.
book1D(
"ptsq",
";Vertex #sum (p_{T})^{2};#entries", 200, 0., 200.);
119 hntrks = ibooker.
book1D(
"ntrk",
";#tracks associated;#entries", 100, -0.5, 99.5);
127 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