17 folderName_( iConfig.getParameter<
std::
string>(
"FolderName") )
19 , bsToken_ ( consumes<
reco::
BeamSpot> (iConfig.getParameter<
edm::InputTag>(
"beamSpot") ) )
22 , pvNDOF_ ( iConfig.getParameter<
int> (
"pvNDOF") )
92 std::string title_w_axes = title+
";"+xaxis+
";"+yaxis;
93 return ibooker.
book1D(name, title_w_axes,
94 binning.nbins, binning.xmin, binning.xmax);
99 std::string title_w_axes = title+
";"+xaxis+
";"+yaxis;
100 return ibooker.
book2D(name, title_w_axes,
101 xbinning.nbins, xbinning.xmin, xbinning.xmax,
102 ybinning.nbins, ybinning.xmin, ybinning.xmax
107 std::string title_w_axes = title+
";"+xaxis+
";"+yaxis;
109 xbinning.nbins, xbinning.xmin, xbinning.xmax,
110 ybinning.xmin, ybinning.xmax
124 MEbinning N_binning; N_binning.nbins = 15; N_binning.xmin = -0.5; N_binning.xmax = 14.5;
129 MEbinning phi_binning; phi_binning.nbins = 34; phi_binning.xmin = -3.2; phi_binning.xmax = 3.2;
139 MEbinning delta_binning; delta_binning.nbins = 150; delta_binning.xmin = -0.15; delta_binning.xmax = 0.15;
148 MEbinning bx_binning; bx_binning.nbins = 3564; bx_binning.xmin = 0.5; bx_binning.xmax = 3564.5;
190 if ( lumiScalers.
isValid() && !lumiScalers->empty() ) {
191 LumiScalersCollection::const_iterator scalit = lumiScalers->begin();
192 lumi = scalit->instantLumi();
201 bs = &(*beamspotHandle);
209 pv = &pvHandle->front();
215 for (
auto v : *pvHandle) {
216 if (
v.isFake() )
continue;
218 if (
v.z() > 24. )
continue;
229 int n = ( v0Handle.
isValid() ? v0Handle->size() : -1 );
240 for (
auto v0 : v0s ) {
241 float mass = v0.mass();
244 float eta = v0.eta();
245 float phi = v0.phi();
246 int pdgID = v0.pdgId();
247 float chi2oNDF = v0.vertexNormalizedChi2();
254 float lxy = ( pv==
nullptr ? -9. : displacementFromPV.
perp() );
255 float lxyWRTbs = ( bs==
nullptr ? -9. : displacementFromBS.
perp() );
276 float PDGmass = -9999.;
293 float delta = (PDGmass > 0. ? (mass-PDGmass)/PDGmass : -9.);
MonitorElement * v0_Lxy_vs_pt_
T getParameter(std::string const &) const
MonitorElement * v0_deltaMass_vs_PU_
MonitorElement * v0_mass_vs_PU_
MonitorElement * v0_Lxy_vs_PU_
MonitorElement * v0_N_vs_LS_
MonitorElement * v0_mass_vs_eta_
MonitorElement * v0_mass_vs_lumi_
std::vector< VertexCompositeCandidate > VertexCompositeCandidateCollection
collection of Candidate objects
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void getHistoPSet(edm::ParameterSet pset, MEbinning &mebinning)
MonitorElement * bookProfile(Args &&...args)
V0Monitor(const edm::ParameterSet &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * v0_mass_vs_p_
double y() const
y coordinate
MonitorElement * v0_mass_
MonitorElement * v0_chi2oNDF_
Global3DPoint GlobalPoint
int bunchCrossing() const
MonitorElement * v0_mass_vs_pt_
std::vector< Vertex > VertexCollection
collection of Vertex objects
MonitorElement * v0_deltaMass_
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
LuminosityBlockNumber_t luminosityBlock() const
edm::EDGetTokenT< reco::BeamSpot > bsToken_
double dydz() const
dydz slope
#define DEFINE_FWK_MODULE(type)
MonitorElement * v0_deltaMass_vs_lumi_
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
MonitorElement * bookHisto2D(DQMStore::IBooker &ibooker, std::string name, std::string title, std::string xaxis, std::string yaxis, MEbinning xbinning, MEbinning ybinning)
void setCurrentFolder(std::string const &fullpath)
edm::EDGetTokenT< reco::VertexCompositeCandidateCollection > v0Token_
MonitorElement * v0_Lxy_vs_BX_
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
bool accept(const edm::Event &event, const edm::EventSetup &setup)
To be called from analyze/filter() methods.
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
MonitorElement * v0_Lxy_wrtBS_
MonitorElement * book1D(Args &&...args)
MonitorElement * n_vs_lumi_
double z() const
z coordinate
MonitorElement * v0_Lxy_vs_lumi_
MonitorElement * v0_Lxy_vs_eta_
MonitorElement * bookHisto1D(DQMStore::IBooker &ibooker, std::string name, std::string title, std::string xaxis, std::string yaxis, MEbinning binning)
MonitorElement * v0_deltaMass_vs_BX_
edm::EDGetTokenT< reco::VertexCollection > pvToken_
double dxdz() const
dxdz slope
MonitorElement * v0_deltaMass_vs_eta_
MEbinning chi2oNDF_binning_
double x() const
x coordinate
MonitorElement * bookProfile(DQMStore::IBooker &ibooker, std::string name, std::string title, std::string xaxis, std::string yaxis, MEbinning xbinning, MEbinning ybinning)
T const * product() const
MonitorElement * book2D(Args &&...args)
edm::EDGetTokenT< LumiScalersCollection > lumiscalersToken_
MonitorElement * v0_Lxy_vs_deltaMass_
MonitorElement * n_vs_PU_
MonitorElement * n_vs_LS_
std::vector< LumiScalers > LumiScalersCollection
const Point & position() const
position
GenericTriggerEventFlag * genTriggerEventFlag_
void initRun(const edm::Run &run, const edm::EventSetup &setup)
To be called from beginRun() methods.
MonitorElement * v0_N_vs_BX_
MonitorElement * v0_mass_vs_BX_
MonitorElement * n_vs_BX_
MonitorElement * v0_N_vs_lumi_
size_t tracksSize() const
number of tracks
MonitorElement * v0_N_vs_PU_
MonitorElement * v0_deltaMass_vs_pt_