17 folderName_( iConfig.getParameter<std::
string>(
"FolderName") )
22 , pvNDOF_ ( iConfig.getParameter<int> (
"pvNDOF") )
81 std::string title_w_axes = title+
";"+xaxis+
";"+yaxis;
82 return ibooker.
book1D(name, title_w_axes,
88 std::string title_w_axes = title+
";"+xaxis+
";"+yaxis;
89 return ibooker.
book2D(name, title_w_axes,
96 std::string title_w_axes = title+
";"+xaxis+
";"+yaxis;
163 if (!v0Handle.
isValid()
or v0Handle->size() == 0)
171 if ( lumiScalers.
isValid() && lumiScalers->size() ) {
172 LumiScalersCollection::const_iterator scalit = lumiScalers->begin();
173 lumi = scalit->instantLumi();
181 bs = &(*beamspotHandle);
189 pv = &pvHandle->front();
195 for (
auto v : *pvHandle) {
196 if (
v.isFake() )
continue;
198 if (
v.z() > 24. )
continue;
204 size_t n = v0s.size();
209 for (
auto v0 : v0s ) {
210 float mass = v0.mass();
213 float eta = v0.eta();
214 float phi = v0.phi();
215 int pdgID = v0.pdgId();
216 float chi2oNDF = v0.vertexNormalizedChi2();
223 float lxy = ( pv==
nullptr ? -9. : displacementFromPV.
perp() );
224 float lxyWRTbs = ( bs==
nullptr ? -9. : displacementFromBS.
perp() );
245 float PDGmass = -9999.;
262 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_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
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::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
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_
#define DEFINE_FWK_MODULE(type)
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...
edm::EDGetTokenT< reco::BeamSpot > bsToken_
double dydz() const
dydz slope
MonitorElement * v0_deltaMass_vs_lumi_
MonitorElement * bookHisto2D(DQMStore::IBooker &ibooker, std::string name, std::string title, std::string xaxis, std::string yaxis, MEbinning xbinning, MEbinning ybinning)
edm::EDGetTokenT< reco::VertexCompositeCandidateCollection > v0Token_
MonitorElement * v0_Lxy_vs_BX_
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MonitorElement * v0_Lxy_wrtBS_
MonitorElement * book1D(Args &&...args)
double z() const
y 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)
void setCurrentFolder(const std::string &fullpath)
T const * product() const
MonitorElement * book2D(Args &&...args)
edm::EDGetTokenT< LumiScalersCollection > lumiscalersToken_
MonitorElement * v0_Lxy_vs_deltaMass_
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup)
std::vector< LumiScalers > LumiScalersCollection
const Point & position() const
position
MonitorElement * v0_N_vs_BX_
MonitorElement * v0_mass_vs_BX_
MonitorElement * v0_N_vs_lumi_
size_t tracksSize() const
number of tracks
MonitorElement * v0_N_vs_PU_
MonitorElement * v0_deltaMass_vs_pt_