65 if (!vsoaHandle.isValid()) {
66 edm::LogWarning(
"SiPixelPhase1MonitorTrackSoA") <<
"No Vertex SoA found \n returning!" << std::endl;
70 auto const& vsoa = *((vsoaHandle.product())->
get());
73 float x0 = 0., y0 = 0.,
z0 = 0.,
dxdz = 0.,
dydz = 0.;
74 if (!bsHandle.isValid()) {
75 edm::LogWarning(
"PixelVertexProducer") <<
"No beamspot found. returning vertexes with (0,0,Z) ";
85 auto si = vsoa.sortInd[
iv];
93 auto ndof = vsoa.ndof[si];
111 hnVertex = ibooker.
book1D(
"nVertex",
";# of Vertex;#entries", 101, -0.5, 100.5);
112 hx = ibooker.
book1D(
"vx",
";Vertex x;#entries", 10, -5., 5.);
113 hy = ibooker.
book1D(
"vy",
";Vertex y;#entries", 10, -5., 5.);
114 hz = ibooker.
book1D(
"vz",
";Vertex z;#entries", 30, -30., 30);
115 hchi2 = ibooker.
book1D(
"chi2",
";Vertex chi-squared;#entries", 40, 0., 20.);
116 hchi2oNdof = ibooker.
book1D(
"chi2oNdof",
";Vertex chi-squared/Ndof;#entries", 40, 0., 20.);
117 hptv2 = ibooker.
book1D(
"ptsq",
";Vertex p_T squared;#entries", 200, 0., 200.);
118 hntrks = ibooker.
book1D(
"ntrk",
";#tracks associated;#entries", 100, -0.5, 99.5);
126 desc.add<
std::string>(
"topFolderName",
"SiPixelHeterogeneous/PixelVertexSoA");
MonitorElement * hchi2oNdof
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
T getParameter(std::string const &) const
std::vector< uint16_t > IndToEdm
virtual void setCurrentFolder(std::string const &fullpath)
std::string topFolderName_
edm::EDGetTokenT< reco::BeamSpot > tokenBeamSpot_
~SiPixelPhase1MonitorVertexSoA() override=default
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
SiPixelPhase1MonitorVertexSoA(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
void bookHistograms(DQMStore::IBooker &ibooker, edm::Run const &iRun, edm::EventSetup const &iSetup) override
edm::EDGetTokenT< ZVertexHeterogeneous > 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())
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)