25 , primaryVertexInputTag_ ( primaryVertexInputTag )
26 , selectedPrimaryVertexInputTag_ ( selectedPrimaryVertexInputTag )
29 , NumberOfPVtxVsBXlumi(
NULL)
30 , NumberOfPVtxVsGoodPVtx(
NULL)
31 , NumberOfGoodPVtx(
NULL)
32 , NumberOfGoodPVtxVsBXlumi(
NULL)
33 , FractionOfGoodPVtx(
NULL)
34 , FractionOfGoodPVtxVsBXlumi(
NULL)
35 , FractionOfGoodPVtxVsGoodPVtx(
NULL)
36 , FractionOfGoodPVtxVsPVtx(
NULL)
37 , NumberOfBADndofPVtx(
NULL)
38 , NumberOfBADndofPVtxVsBXlumi(
NULL)
39 , NumberOfBADndofPVtxVsGoodPVtx(
NULL)
41 , GoodPVtxSumPtVsBXlumi(
NULL)
42 , GoodPVtxSumPtVsGoodPVtx(
NULL)
43 , GoodPVtxNumberOfTracks(
NULL)
44 , GoodPVtxNumberOfTracksVsBXlumi(
NULL)
45 , GoodPVtxNumberOfTracksVsGoodPVtx(
NULL)
46 , GoodPVtxNumberOfTracksVsGoodPVtxNdof(
NULL)
47 , GoodPVtxChi2oNDFVsGoodPVtx(
NULL)
48 , GoodPVtxChi2oNDFVsBXlumi(
NULL)
49 , GoodPVtxChi2ProbVsGoodPVtx(
NULL)
50 , GoodPVtxChi2ProbVsBXlumi(
NULL)
51 , doAllPlots_ ( conf_.getParameter<bool>(
"doAllPlots") )
52 , doPlotsVsBXlumi_ ( conf_.getParameter<bool>(
"doPlotsVsBXlumi") )
53 , doPlotsVsGoodPVtx_( conf_.getParameter<bool>(
"doPlotsVsGoodPVtx") )
86 std::cout <<
"bxlumi : " << bxlumi << std::endl;
88 size_t totalNumPV = 0;
89 size_t totalNumBADndofPV = 0;
94 totalNumPV = pvHandle->size();
95 std::cout <<
"totalNumPV : " << totalNumPV << std::endl;
96 for (reco::VertexCollection::const_iterator pv = pvHandle->begin();
97 pv != pvHandle->end(); ++pv) {
99 if (pv->ndof() < 4.) totalNumBADndofPV++;
109 size_t totalNumGoodPV = 0;
113 totalNumGoodPV = selpvHandle->size();
115 std::cout <<
"totalNumGoodPV: " << totalNumGoodPV << std::endl;
121 double fracGoodPV = double(totalNumGoodPV)/double(totalNumPV);
122 std::cout <<
"fracGoodPV: " << fracGoodPV << std::endl;
135 if ( selpvHandle->size() ) {
139 double chi2prob = 0.;
141 if (!selpvHandle->at(0).isFake()) {
147 chi2prob = TMath::Prob(pv.
chi2(),(int)pv.
ndof());
151 double pt = (**itrk).pt();
223 int BXlumiBin = BXlumiParameters.
getParameter<
int>(
"BXlumiBin");
224 double BXlumiMin = BXlumiParameters.
getParameter<
double>(
"BXlumiMin");
225 double BXlumiMax = BXlumiParameters.
getParameter<
double>(
"BXlumiMax");
278 histname =
"Chi2ProbVsBXlumi_" +
label_;
284 histname =
"GoodPVtxChi2oNDFVsBXlumi_" +
label_;
290 histname =
"GoodPVtxChi2ProbVsBXlumi_" +
label_;
350 histname =
"GoodPVtxChi2ProbVsGoodPVtx_" +
label_;
T getParameter(std::string const &) const
MonitorElement * GoodPVtxNumberOfTracks
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
trackRef_iterator tracks_end() const
last iterator over tracks
virtual void beginJob(DQMStore *dqmStore_)
MonitorElement * GoodPVtxChi2oNDFVsBXlumi
MonitorElement * GoodPVtxSumPtVsBXlumi
MonitorElement * GoodPVtxNumberOfTracksVsBXlumi
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
MonitorElement * NumberOfBADndofPVtxVsGoodPVtx
MonitorElement * GoodPVtxNumberOfTracksVsGoodPVtx
MonitorElement * GoodPVtxChi2oNDFVsGoodPVtx
MonitorElement * FractionOfGoodPVtxVsPVtx
double getValue(const edm::Event &)
void addDefault(ParameterSetDescription const &psetDescription)
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
edm::InputTag primaryVertexInputTag_
MonitorElement * Chi2oNDFVsBXlumi
double chi2() const
chi-squares
MonitorElement * FractionOfGoodPVtx
MonitorElement * FractionOfGoodPVtxVsBXlumi
MonitorElement * GoodPVtxSumPtVsGoodPVtx
MonitorElement * NumberOfPVtxVsBXlumi
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
MonitorElement * NumberOfPVtxVsGoodPVtx
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
MonitorElement * FractionOfGoodPVtxVsGoodPVtx
MonitorElement * NumberOfBADndofPVtx
VertexMonitor(const edm::ParameterSet &, const edm::InputTag &, const edm::InputTag &, std::string pvLabel)
MonitorElement * GoodPVtxSumPt
MonitorElement * Chi2ProbVsBXlumi
MonitorElement * GoodPVtxChi2ProbVsGoodPVtx
edm::InputTag selectedPrimaryVertexInputTag_
MonitorElement * NumberOfGoodPVtxVsBXlumi
MonitorElement * GoodPVtxChi2ProbVsBXlumi
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
double normalizedChi2() const
chi-squared divided by n.d.o.f.
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
MonitorElement * NumberOfBADndofPVtxVsBXlumi
trackRef_iterator tracks_begin() const
first iterator over tracks
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * NumberOfPVtx
virtual void analyze(const edm::Event &, const edm::EventSetup &)
void setCurrentFolder(const std::string &fullpath)
size_t tracksSize() const
number of tracks
MonitorElement * NumberOfGoodPVtx