CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
DiMuonVertexValidation Class Reference

#include <Alignment/OfflineValidation/plugins/DiMuonVertexValidation.cc>

Inheritance diagram for DiMuonVertexValidation:
edm::one::EDAnalyzer< edm::one::SharedResources > edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 DiMuonVertexValidation (const edm::ParameterSet &)
 
 ~DiMuonVertexValidation () override
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::SharedResources >
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginJob () override
 
void endJob () override
 

Private Attributes

edm::EDGetTokenT< reco::TrackCollectionalcaRecoToken_
 
edm::ParameterSet CosPhi3DConfiguration_
 
DiLeptonHelp::PlotsVsKinematics CosPhi3DPlots = DiLeptonHelp::PlotsVsKinematics(DiLeptonHelp::MM)
 
edm::ParameterSet CosPhiConfiguration_
 
DiLeptonHelp::PlotsVsKinematics CosPhiPlots = DiLeptonHelp::PlotsVsKinematics(DiLeptonHelp::MM)
 
edm::ParameterSet DiMuMassConfiguration_
 
TH1F * hCosPhi3D_
 
TH1F * hCosPhi_
 
TH1F * hCosPhiInv3D_
 
TH1F * hCosPhiInv_
 
TH1F * hCutFlow_
 
TH1F * hInvMass_
 
TH1F * hSVDist3D_
 
TH1F * hSVDist3DSig_
 
TH1F * hSVDist_
 
TH1F * hSVDistSig_
 
TH1F * hSVProb_
 
TH1F * hTrackInvMass_
 
float maxSVdist_
 
edm::EDGetTokenT< reco::MuonCollectionmuonsToken_
 
DiLeptonHelp::Counts myCounts
 
std::vector< double > pTthresholds_
 
edm::EDGetTokenT< reco::TrackCollectiontracksToken_
 
const edm::ESGetToken< TransientTrackBuilder, TransientTrackRecordttbESToken_
 
bool useReco_
 
edm::EDGetTokenT< reco::VertexCollectionvertexToken_
 
edm::ParameterSet VtxDist3DConfiguration_
 
DiLeptonHelp::PlotsVsKinematics VtxDist3DPlots = DiLeptonHelp::PlotsVsKinematics(DiLeptonHelp::MM)
 
edm::ParameterSet VtxDist3DSigConfiguration_
 
DiLeptonHelp::PlotsVsKinematics VtxDist3DSigPlots = DiLeptonHelp::PlotsVsKinematics(DiLeptonHelp::MM)
 
edm::ParameterSet VtxDistConfiguration_
 
DiLeptonHelp::PlotsVsKinematics VtxDistPlots = DiLeptonHelp::PlotsVsKinematics(DiLeptonHelp::MM)
 
edm::ParameterSet VtxDistSigConfiguration_
 
DiLeptonHelp::PlotsVsKinematics VtxDistSigPlots = DiLeptonHelp::PlotsVsKinematics(DiLeptonHelp::MM)
 
edm::ParameterSet VtxProbConfiguration_
 
DiLeptonHelp::PlotsVsKinematics VtxProbPlots = DiLeptonHelp::PlotsVsKinematics(DiLeptonHelp::MM)
 
DiLeptonHelp::PlotsVsKinematics ZMassPlots = DiLeptonHelp::PlotsVsKinematics(DiLeptonHelp::MM)
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Description: Class to perform validation Tracker Alignment Validations by means of a PV and the SV constructed with a di-muon pair

Definition at line 63 of file DiMuonVertexValidation.cc.

Constructor & Destructor Documentation

◆ DiMuonVertexValidation()

DiMuonVertexValidation::DiMuonVertexValidation ( const edm::ParameterSet iConfig)
explicit

Definition at line 147 of file DiMuonVertexValidation.cc.

148  : useReco_(iConfig.getParameter<bool>("useReco")),
149  pTthresholds_(iConfig.getParameter<std::vector<double>>("pTThresholds")),
150  maxSVdist_(iConfig.getParameter<double>("maxSVdist")),
151  CosPhiConfiguration_(iConfig.getParameter<edm::ParameterSet>("CosPhiConfig")),
152  CosPhi3DConfiguration_(iConfig.getParameter<edm::ParameterSet>("CosPhi3DConfig")),
153  VtxProbConfiguration_(iConfig.getParameter<edm::ParameterSet>("VtxProbConfig")),
154  VtxDistConfiguration_(iConfig.getParameter<edm::ParameterSet>("VtxDistConfig")),
155  VtxDist3DConfiguration_(iConfig.getParameter<edm::ParameterSet>("VtxDist3DConfig")),
156  VtxDistSigConfiguration_(iConfig.getParameter<edm::ParameterSet>("VtxDistSigConfig")),
157  VtxDist3DSigConfiguration_(iConfig.getParameter<edm::ParameterSet>("VtxDist3DSigConfig")),
158  DiMuMassConfiguration_(iConfig.getParameter<edm::ParameterSet>("DiMuMassConfig")),
159  ttbESToken_(esConsumes(edm::ESInputTag("", "TransientTrackBuilder"))),
160  tracksToken_(consumes<reco::TrackCollection>(iConfig.getParameter<edm::InputTag>("tracks"))),
161  vertexToken_(consumes<reco::VertexCollection>(iConfig.getParameter<edm::InputTag>("vertices"))) {
162  if (useReco_) {
163  muonsToken_ = mayConsume<reco::MuonCollection>(iConfig.getParameter<edm::InputTag>("muons"));
164  } else {
165  alcaRecoToken_ = mayConsume<reco::TrackCollection>(iConfig.getParameter<edm::InputTag>("muonTracks"));
166  }
167 
168  usesResource(TFileService::kSharedResource);
169 
170  // sort the vector of thresholds
171  std::sort(pTthresholds_.begin(), pTthresholds_.end(), [](const double& lhs, const double& rhs) { return lhs > rhs; });
172 
173  edm::LogInfo("DiMuonVertexValidation") << __FUNCTION__;
174  for (const auto& thr : pTthresholds_) {
175  edm::LogInfo("DiMuonVertexValidation") << " Threshold: " << thr << " ";
176  }
177  edm::LogInfo("DiMuonVertexValidation") << "Max SV distance: " << maxSVdist_ << " ";
178 }

References alcaRecoToken_, edm::ParameterSet::getParameter(), TFileService::kSharedResource, maxSVdist_, muonsToken_, pTthresholds_, jetUpdater_cfi::sort, and useReco_.

◆ ~DiMuonVertexValidation()

DiMuonVertexValidation::~DiMuonVertexValidation ( )
overridedefault

Member Function Documentation

◆ analyze()

void DiMuonVertexValidation::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 187 of file DiMuonVertexValidation.cc.

187  {
188  using namespace edm;
189 
191 
192  // the di-muon tracks
193  std::vector<const reco::Track*> myTracks;
194 
195  // if we have to start from scratch from RECO data-tier
196  if (useReco_) {
197  // select the good muons
198  std::vector<const reco::Muon*> myGoodMuonVector;
199  for (const auto& muon : iEvent.get(muonsToken_)) {
200  const reco::TrackRef t = muon.innerTrack();
201  if (!t.isNull()) {
202  if (t->quality(reco::TrackBase::highPurity)) {
203  if (t->chi2() / t->ndof() <= 2.5 && t->numberOfValidHits() >= 5 &&
204  t->hitPattern().numberOfValidPixelHits() >= 2 && t->quality(reco::TrackBase::highPurity))
205  myGoodMuonVector.emplace_back(&muon);
206  }
207  }
208  }
209 
210  LogDebug("DiMuonVertexValidation") << "myGoodMuonVector size: " << myGoodMuonVector.size() << std::endl;
211  std::sort(myGoodMuonVector.begin(), myGoodMuonVector.end(), [](const reco::Muon*& lhs, const reco::Muon*& rhs) {
212  return lhs->pt() > rhs->pt();
213  });
214 
215  // just check the ordering
216  for (const auto& muon : myGoodMuonVector) {
217  LogDebug("DiMuonVertexValidation") << "pT: " << muon->pt() << " ";
218  }
219  LogDebug("DiMuonVertexValidation") << std::endl;
220 
221  // reject if there's no Z
222  if (myGoodMuonVector.size() < 2)
223  return;
224 
226 
227  if ((myGoodMuonVector[0]->pt()) < pTthresholds_[0] || (myGoodMuonVector[1]->pt() < pTthresholds_[1]))
228  return;
229 
232 
233  if (myGoodMuonVector[0]->charge() * myGoodMuonVector[1]->charge() > 0)
234  return;
235 
236  const auto& m1 = myGoodMuonVector[1]->p4();
237  const auto& m0 = myGoodMuonVector[0]->p4();
238  const auto& mother = m0 + m1;
239 
240  float invMass = mother.M();
241  hInvMass_->Fill(invMass);
242 
243  // just copy the top two muons
244  std::vector<const reco::Muon*> theZMuonVector;
245  theZMuonVector.reserve(2);
246  theZMuonVector.emplace_back(myGoodMuonVector[1]);
247  theZMuonVector.emplace_back(myGoodMuonVector[0]);
248 
249  // do the matching of Z muons with inner tracks
250  unsigned int i = 0;
251  for (const auto& muon : theZMuonVector) {
252  i++;
253  float minD = 1000.;
254  const reco::Track* theMatch = nullptr;
255  for (const auto& track : iEvent.get(tracksToken_)) {
256  float D = ::deltaR(muon->eta(), muon->phi(), track.eta(), track.phi());
257  if (D < minD) {
258  minD = D;
259  theMatch = &track;
260  }
261  }
262  LogDebug("DiMuonVertexValidation") << "pushing new track: " << i << std::endl;
263  myTracks.emplace_back(theMatch);
264  }
265  } else {
266  // we start directly with the pre-selected ALCARECO tracks
267  for (const auto& muon : iEvent.get(alcaRecoToken_)) {
268  myTracks.emplace_back(&muon);
269  }
270  }
271 
272  LogDebug("DiMuonVertexValidation") << "selected tracks: " << myTracks.size() << std::endl;
273 
274  const TransientTrackBuilder* theB = &iSetup.getData(ttbESToken_);
275  TransientVertex aTransientVertex;
276  std::vector<reco::TransientTrack> tks;
277 
278  if (myTracks.size() != 2)
279  return;
280 
281  const auto& t1 = myTracks[1]->momentum();
282  const auto& t0 = myTracks[0]->momentum();
283  const auto& ditrack = t1 + t0;
284 
285  const auto& tplus = myTracks[0]->charge() > 0 ? myTracks[0] : myTracks[1];
286  const auto& tminus = myTracks[0]->charge() < 0 ? myTracks[0] : myTracks[1];
287 
288  TLorentzVector p4_tplus(tplus->px(), tplus->py(), tplus->pz(), sqrt((tplus->p() * tplus->p()) + mumass2));
289  TLorentzVector p4_tminus(tminus->px(), tminus->py(), tminus->pz(), sqrt((tminus->p() * tminus->p()) + mumass2));
290 
291  const auto& Zp4 = p4_tplus + p4_tminus;
292  float track_invMass = Zp4.M();
293  hTrackInvMass_->Fill(track_invMass);
294 
295  // creat the pair of TLorentVectors used to make the plos
296  std::pair<TLorentzVector, TLorentzVector> tktk_p4 = std::make_pair(p4_tplus, p4_tminus);
297 
298  // fill the z->mm mass plots
299  ZMassPlots.fillPlots(track_invMass, tktk_p4);
300 
301  math::XYZPoint ZpT(ditrack.x(), ditrack.y(), 0);
302  math::XYZPoint Zp(ditrack.x(), ditrack.y(), ditrack.z());
303 
304  for (const auto& track : myTracks) {
305  reco::TransientTrack trajectory = theB->build(track);
306  tks.push_back(trajectory);
307  }
308 
309  KalmanVertexFitter kalman(true);
310  aTransientVertex = kalman.vertex(tks);
311 
312  double SVProb = TMath::Prob(aTransientVertex.totalChiSquared(), (int)aTransientVertex.degreesOfFreedom());
313 
314  LogDebug("DiMuonVertexValidation") << " vertex prob: " << SVProb << std::endl;
315 
316  hSVProb_->Fill(SVProb);
317 
318  if (!aTransientVertex.isValid())
319  return;
320 
322 
323  // fill the VtxProb plots
324  VtxProbPlots.fillPlots(SVProb, tktk_p4);
325 
326  // get collection of reconstructed vertices from event
327  edm::Handle<reco::VertexCollection> vertexHandle = iEvent.getHandle(vertexToken_);
328 
329  math::XYZPoint MainVertex(0, 0, 0);
330  reco::Vertex TheMainVertex = vertexHandle.product()->front();
331 
332  if (vertexHandle.isValid()) {
333  const reco::VertexCollection* vertices = vertexHandle.product();
334  if ((*vertices).at(0).isValid()) {
335  auto theMainVtx = (*vertices).at(0);
336  MainVertex.SetXYZ(theMainVtx.position().x(), theMainVtx.position().y(), theMainVtx.position().z());
337  }
338  }
339 
340  const math::XYZPoint myVertex(
341  aTransientVertex.position().x(), aTransientVertex.position().y(), aTransientVertex.position().z());
342  const math::XYZPoint deltaVtx(
343  MainVertex.x() - myVertex.x(), MainVertex.y() - myVertex.y(), MainVertex.z() - myVertex.z());
344 
345  if (TheMainVertex.isValid()) {
346  // Z Vertex distance in the xy plane
347 
348  VertexDistanceXY vertTool;
349  double distance = vertTool.distance(aTransientVertex, TheMainVertex).value();
350  double dist_err = vertTool.distance(aTransientVertex, TheMainVertex).error();
351 
352  hSVDist_->Fill(distance * cmToum);
353  hSVDistSig_->Fill(distance / dist_err);
354 
355  // fill the VtxDist plots
357 
358  // fill the VtxDisSig plots
359  VtxDistSigPlots.fillPlots(distance / dist_err, tktk_p4);
360 
361  // Z Vertex distance in 3D
362 
363  VertexDistance3D vertTool3D;
364  double distance3D = vertTool3D.distance(aTransientVertex, TheMainVertex).value();
365  double dist3D_err = vertTool3D.distance(aTransientVertex, TheMainVertex).error();
366 
367  hSVDist3D_->Fill(distance3D * cmToum);
368  hSVDist3DSig_->Fill(distance3D / dist3D_err);
369 
370  // fill the VtxDist3D plots
371  VtxDist3DPlots.fillPlots(distance3D * cmToum, tktk_p4);
372 
373  // fill the VtxDisSig plots
374  VtxDist3DSigPlots.fillPlots(distance3D / dist3D_err, tktk_p4);
375 
376  LogDebug("DiMuonVertexValidation") << "distance: " << distance << "+/-" << dist_err << std::endl;
377  // cut on the PV - SV distance
378  if (distance * cmToum < maxSVdist_) {
380 
381  double cosphi = (ZpT.x() * deltaVtx.x() + ZpT.y() * deltaVtx.y()) /
382  (sqrt(ZpT.x() * ZpT.x() + ZpT.y() * ZpT.y()) *
383  sqrt(deltaVtx.x() * deltaVtx.x() + deltaVtx.y() * deltaVtx.y()));
384 
385  double cosphi3D = (Zp.x() * deltaVtx.x() + Zp.y() * deltaVtx.y() + Zp.z() * deltaVtx.z()) /
386  (sqrt(Zp.x() * Zp.x() + Zp.y() * Zp.y() + Zp.z() * Zp.z()) *
387  sqrt(deltaVtx.x() * deltaVtx.x() + deltaVtx.y() * deltaVtx.y() + deltaVtx.z() * deltaVtx.z()));
388 
389  LogDebug("DiMuonVertexValidation") << "cos(phi) = " << cosphi << std::endl;
390 
391  hCosPhi_->Fill(cosphi);
392  hCosPhi3D_->Fill(cosphi3D);
393 
394  // fill the cosphi plots
395  CosPhiPlots.fillPlots(cosphi, tktk_p4);
396 
397  // fill the VtxDisSig plots
398  CosPhi3DPlots.fillPlots(cosphi3D, tktk_p4);
399  }
400  }
401 }

References alcaRecoToken_, TransientTrackBuilder::build(), ALCARECOTkAlJpsiMuMu_cff::charge, cmToum, CosPhi3DPlots, CosPhiPlots, PbPb_ZMuSkimMuonDPG_cff::deltaR, VertexDistanceXY::distance(), VertexDistance3D::distance(), HLT_FULL_cff::distance, Measurement1D::error(), DiLeptonHelp::Counts::eventsAfterDist, DiLeptonHelp::Counts::eventsAfterEta, DiLeptonHelp::Counts::eventsAfterMult, DiLeptonHelp::Counts::eventsAfterPt, DiLeptonHelp::Counts::eventsAfterVtx, DiLeptonHelp::Counts::eventsTotal, DiLeptonHelp::PlotsVsKinematics::fillPlots(), edm::EventSetup::getData(), hCosPhi3D_, hCosPhi_, reco::TrackBase::highPurity, hInvMass_, hSVDist3D_, hSVDist3DSig_, hSVDist_, hSVDistSig_, hSVProb_, hTrackInvMass_, mps_fire::i, iEvent, createfilelist::int, edm::HandleBase::isValid(), reco::Vertex::isValid(), TransientVertex::isValid(), LogDebug, maxSVdist_, mumass2, muonsToken_, myCounts, TransientVertex::position(), edm::Handle< T >::product(), DiDispStaMuonMonitor_cfi::pt, reco::LeafCandidate::pt(), pTthresholds_, jetUpdater_cfi::sort, mathSSE::sqrt(), submitPVValidationJobs::t, FrontierCondition_GT_autoExpress_cfi::t0, RandomServiceHelper::t1, HLT_FULL_cff::track, tracksToken_, ttbESToken_, useReco_, Measurement1D::value(), KalmanVertexFitter::vertex(), vertexToken_, AlignmentTracksFromVertexSelector_cfi::vertices, VtxDist3DPlots, VtxDist3DSigPlots, VtxDistPlots, VtxDistSigPlots, VtxProbPlots, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), PV3DBase< T, PVType, FrameType >::z(), and ZMassPlots.

◆ beginJob()

void DiMuonVertexValidation::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 404 of file DiMuonVertexValidation.cc.

404  {
406 
407  // clang-format off
408  TH1F::SetDefaultSumw2(kTRUE);
409  hSVProb_ = fs->make<TH1F>("VtxProb", ";ZV vertex probability;N(#mu#mu pairs)", 100, 0., 1.);
410 
411  hSVDist_ = fs->make<TH1F>("VtxDist", ";PV-ZV xy distance [#mum];N(#mu#mu pairs)", 100, 0., 300.);
412  hSVDistSig_ = fs->make<TH1F>("VtxDistSig", ";PV-ZV xy distance signficance;N(#mu#mu pairs)", 100, 0., 5.);
413 
414  hSVDist3D_ = fs->make<TH1F>("VtxDist3D", ";PV-ZV 3D distance [#mum];N(#mu#mu pairs)", 100, 0., 300.);
415  hSVDist3DSig_ = fs->make<TH1F>("VtxDist3DSig", ";PV-ZV 3D distance signficance;N(#mu#mu pairs)", 100, 0., 5.);
416 
417  hInvMass_ = fs->make<TH1F>("InvMass", ";M(#mu#mu) [GeV];N(#mu#mu pairs)", 70., 50., 120.);
418  hTrackInvMass_ = fs->make<TH1F>("TkTkInvMass", ";M(tk,tk) [GeV];N(tk tk pairs)", 70., 50., 120.);
419 
420  hCosPhi_ = fs->make<TH1F>("CosPhi", ";cos(#phi_{xy});N(#mu#mu pairs)", 50, -1., 1.);
421  hCosPhi3D_ = fs->make<TH1F>("CosPhi3D", ";cos(#phi_{3D});N(#mu#mu pairs)", 50, -1., 1.);
422 
423  hCosPhiInv_ = fs->make<TH1F>("CosPhiInv", ";inverted cos(#phi_{xy});N(#mu#mu pairs)", 50, -1., 1.);
424  hCosPhiInv3D_ = fs->make<TH1F>("CosPhiInv3D", ";inverted cos(#phi_{3D});N(#mu#mu pairs)", 50, -1., 1.);
425  // clang-format on
426 
427  // 2D Maps
428 
429  TFileDirectory dirCosPhi = fs->mkdir("CosPhiPlots");
431 
432  TFileDirectory dirCosPhi3D = fs->mkdir("CosPhi3DPlots");
434 
435  TFileDirectory dirVtxProb = fs->mkdir("VtxProbPlots");
437 
438  TFileDirectory dirVtxDist = fs->mkdir("VtxDistPlots");
440 
441  TFileDirectory dirVtxDist3D = fs->mkdir("VtxDist3DPlots");
443 
444  TFileDirectory dirVtxDistSig = fs->mkdir("VtxDistSigPlots");
446 
447  TFileDirectory dirVtxDist3DSig = fs->mkdir("VtxDist3DSigPlots");
449 
450  TFileDirectory dirInvariantMass = fs->mkdir("InvariantMassPlots");
452 
453  // cut flow
454 
455  hCutFlow_ = fs->make<TH1F>("hCutFlow", "cut flow;cut step;events left", 6, -0.5, 5.5);
456  std::string names[6] = {"Total", "Mult.", ">pT", "<eta", "hasVtx", "VtxDist"};
457  for (unsigned int i = 0; i < 6; i++) {
458  hCutFlow_->GetXaxis()->SetBinLabel(i + 1, names[i].c_str());
459  }
460 
461  myCounts.zeroAll();
462 }

References DiLeptonHelp::PlotsVsKinematics::bookFromPSet(), CosPhi3DConfiguration_, CosPhi3DPlots, CosPhiConfiguration_, CosPhiPlots, DiMuMassConfiguration_, hCosPhi3D_, hCosPhi_, hCosPhiInv3D_, hCosPhiInv_, hCutFlow_, hInvMass_, hSVDist3D_, hSVDist3DSig_, hSVDist_, hSVDistSig_, hSVProb_, hTrackInvMass_, mps_fire::i, TFileService::make(), TFileService::mkdir(), myCounts, names, AlCaHLTBitMon_QueryRunRegistry::string, VtxDist3DConfiguration_, VtxDist3DPlots, VtxDist3DSigConfiguration_, VtxDist3DSigPlots, VtxDistConfiguration_, VtxDistPlots, VtxDistSigConfiguration_, VtxDistSigPlots, VtxProbConfiguration_, VtxProbPlots, DiLeptonHelp::Counts::zeroAll(), and ZMassPlots.

◆ endJob()

void DiMuonVertexValidation::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 465 of file DiMuonVertexValidation.cc.

465  {
467 
468  hCutFlow_->SetBinContent(1, myCounts.eventsTotal);
469  hCutFlow_->SetBinContent(2, myCounts.eventsAfterMult);
470  hCutFlow_->SetBinContent(3, myCounts.eventsAfterPt);
471  hCutFlow_->SetBinContent(4, myCounts.eventsAfterEta);
472  hCutFlow_->SetBinContent(5, myCounts.eventsAfterVtx);
473  hCutFlow_->SetBinContent(6, myCounts.eventsAfterDist);
474 
475  TH1F::SetDefaultSumw2(kTRUE);
476  const unsigned int nBinsX = hCosPhi_->GetNbinsX();
477  for (unsigned int i = 1; i <= nBinsX; i++) {
478  //float binContent = hCosPhi_->GetBinContent(i);
479  float invertedBinContent = hCosPhi_->GetBinContent(nBinsX + 1 - i);
480  float invertedBinError = hCosPhi_->GetBinError(nBinsX + 1 - i);
481  hCosPhiInv_->SetBinContent(i, invertedBinContent);
482  hCosPhiInv_->SetBinError(i, invertedBinError);
483 
484  //float binContent3D = hCosPhi3D_->GetBinContent(i);
485  float invertedBinContent3D = hCosPhi3D_->GetBinContent(nBinsX + 1 - i);
486  float invertedBinError3D = hCosPhi3D_->GetBinError(nBinsX + 1 - i);
487  hCosPhiInv3D_->SetBinContent(i, invertedBinContent3D);
488  hCosPhiInv3D_->SetBinError(i, invertedBinError3D);
489  }
490 }

References DiLeptonHelp::Counts::eventsAfterDist, DiLeptonHelp::Counts::eventsAfterEta, DiLeptonHelp::Counts::eventsAfterMult, DiLeptonHelp::Counts::eventsAfterPt, DiLeptonHelp::Counts::eventsAfterVtx, DiLeptonHelp::Counts::eventsTotal, hCosPhi3D_, hCosPhi_, hCosPhiInv3D_, hCosPhiInv_, hCutFlow_, mps_fire::i, myCounts, and DiLeptonHelp::Counts::printCounts().

Referenced by o2olib.O2ORunMgr::executeJob().

◆ fillDescriptions()

void DiMuonVertexValidation::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 493 of file DiMuonVertexValidation.cc.

493  {
495  desc.ifValue(edm::ParameterDescription<bool>("useReco", true, true),
496  true >> edm::ParameterDescription<edm::InputTag>("muons", edm::InputTag("muons"), true) or
498  "muonTracks", edm::InputTag("ALCARECOTkAlDiMuon"), true))
499  ->setComment("If useReco is true need to specify the muon tracks, otherwise take the ALCARECO Inner tracks");
500  //desc.add<bool>("useReco",true);
501  //desc.add<edm::InputTag>("muons", edm::InputTag("muons"));
502  //desc.add<edm::InputTag>("muonTracks", edm::InputTag("ALCARECOTkAlDiMuon"));
503  desc.add<edm::InputTag>("tracks", edm::InputTag("generalTracks"));
504  desc.add<edm::InputTag>("vertices", edm::InputTag("offlinePrimaryVertices"));
505  desc.add<std::vector<double>>("pTThresholds", {30., 10.});
506  desc.add<double>("maxSVdist", 50.);
507 
508  {
509  edm::ParameterSetDescription psDiMuMass;
510  psDiMuMass.add<std::string>("name", "DiMuMass");
511  psDiMuMass.add<std::string>("title", "M(#mu#mu)");
512  psDiMuMass.add<std::string>("yUnits", "[GeV]");
513  psDiMuMass.add<int>("NxBins", 24);
514  psDiMuMass.add<int>("NyBins", 50);
515  psDiMuMass.add<double>("ymin", 70.);
516  psDiMuMass.add<double>("ymax", 120.);
517  desc.add<edm::ParameterSetDescription>("DiMuMassConfig", psDiMuMass);
518  }
519  {
521  psCosPhi.add<std::string>("name", "CosPhi");
522  psCosPhi.add<std::string>("title", "cos(#phi_{xy})");
523  psCosPhi.add<std::string>("yUnits", "");
524  psCosPhi.add<int>("NxBins", 50);
525  psCosPhi.add<int>("NyBins", 50);
526  psCosPhi.add<double>("ymin", -1.);
527  psCosPhi.add<double>("ymax", 1.);
528  desc.add<edm::ParameterSetDescription>("CosPhiConfig", psCosPhi);
529  }
530  {
531  edm::ParameterSetDescription psCosPhi3D;
532  psCosPhi3D.add<std::string>("name", "CosPhi3D");
533  psCosPhi3D.add<std::string>("title", "cos(#phi_{3D})");
534  psCosPhi3D.add<std::string>("yUnits", "");
535  psCosPhi3D.add<int>("NxBins", 50);
536  psCosPhi3D.add<int>("NyBins", 50);
537  psCosPhi3D.add<double>("ymin", -1.);
538  psCosPhi3D.add<double>("ymax", 1.);
539  desc.add<edm::ParameterSetDescription>("CosPhi3DConfig", psCosPhi3D);
540  }
541  {
543  psVtxProb.add<std::string>("name", "VtxProb");
544  psVtxProb.add<std::string>("title", "Prob(#chi^{2}_{SV})");
545  psVtxProb.add<std::string>("yUnits", "");
546  psVtxProb.add<int>("NxBins", 50);
547  psVtxProb.add<int>("NyBins", 50);
548  psVtxProb.add<double>("ymin", 0);
549  psVtxProb.add<double>("ymax", 1.);
550  desc.add<edm::ParameterSetDescription>("VtxProbConfig", psVtxProb);
551  }
552  {
554  psVtxDist.add<std::string>("name", "VtxDist");
555  psVtxDist.add<std::string>("title", "d_{xy}(PV,SV)");
556  psVtxDist.add<std::string>("yUnits", "[#mum]");
557  psVtxDist.add<int>("NxBins", 50);
558  psVtxDist.add<int>("NyBins", 100);
559  psVtxDist.add<double>("ymin", 0);
560  psVtxDist.add<double>("ymax", 300.);
561  desc.add<edm::ParameterSetDescription>("VtxDistConfig", psVtxDist);
562  }
563  {
564  edm::ParameterSetDescription psVtxDist3D;
565  psVtxDist3D.add<std::string>("name", "VtxDist3D");
566  psVtxDist3D.add<std::string>("title", "d_{3D}(PV,SV)");
567  psVtxDist3D.add<std::string>("yUnits", "[#mum]");
568  psVtxDist3D.add<int>("NxBins", 50);
569  psVtxDist3D.add<int>("NyBins", 250);
570  psVtxDist3D.add<double>("ymin", 0);
571  psVtxDist3D.add<double>("ymax", 500.);
572  desc.add<edm::ParameterSetDescription>("VtxDist3DConfig", psVtxDist3D);
573  }
574  {
575  edm::ParameterSetDescription psVtxDistSig;
576  psVtxDistSig.add<std::string>("name", "VtxDistSig");
577  psVtxDistSig.add<std::string>("title", "d_{xy}(PV,SV)/#sigma_{dxy}(PV,SV)");
578  psVtxDistSig.add<std::string>("yUnits", "");
579  psVtxDistSig.add<int>("NxBins", 50);
580  psVtxDistSig.add<int>("NyBins", 100);
581  psVtxDistSig.add<double>("ymin", 0);
582  psVtxDistSig.add<double>("ymax", 5.);
583  desc.add<edm::ParameterSetDescription>("VtxDistSigConfig", psVtxDistSig);
584  }
585  {
586  edm::ParameterSetDescription psVtxDist3DSig;
587  psVtxDist3DSig.add<std::string>("name", "VtxDist3DSig");
588  psVtxDist3DSig.add<std::string>("title", "d_{3D}(PV,SV)/#sigma_{d3D}(PV,SV)");
589  psVtxDist3DSig.add<std::string>("yUnits", "");
590  psVtxDist3DSig.add<int>("NxBins", 50);
591  psVtxDist3DSig.add<int>("NyBins", 100);
592  psVtxDist3DSig.add<double>("ymin", 0);
593  psVtxDist3DSig.add<double>("ymax", 5.);
594  desc.add<edm::ParameterSetDescription>("VtxDist3DSigConfig", psVtxDist3DSig);
595  }
596 
597  descriptions.addWithDefaultLabel(desc);
598 }

References edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, or, and AlCaHLTBitMon_QueryRunRegistry::string.

Member Data Documentation

◆ alcaRecoToken_

edm::EDGetTokenT<reco::TrackCollection> DiMuonVertexValidation::alcaRecoToken_
private

Definition at line 130 of file DiMuonVertexValidation.cc.

Referenced by analyze(), and DiMuonVertexValidation().

◆ CosPhi3DConfiguration_

edm::ParameterSet DiMuonVertexValidation::CosPhi3DConfiguration_
private

Definition at line 85 of file DiMuonVertexValidation.cc.

Referenced by beginJob().

◆ CosPhi3DPlots

DiLeptonHelp::PlotsVsKinematics DiMuonVertexValidation::CosPhi3DPlots = DiLeptonHelp::PlotsVsKinematics(DiLeptonHelp::MM)
private

Definition at line 114 of file DiMuonVertexValidation.cc.

Referenced by analyze(), and beginJob().

◆ CosPhiConfiguration_

edm::ParameterSet DiMuonVertexValidation::CosPhiConfiguration_
private

Definition at line 84 of file DiMuonVertexValidation.cc.

Referenced by beginJob().

◆ CosPhiPlots

Definition at line 113 of file DiMuonVertexValidation.cc.

Referenced by analyze(), and beginJob().

◆ DiMuMassConfiguration_

edm::ParameterSet DiMuonVertexValidation::DiMuMassConfiguration_
private

Definition at line 91 of file DiMuonVertexValidation.cc.

Referenced by beginJob().

◆ hCosPhi3D_

TH1F* DiMuonVertexValidation::hCosPhi3D_
private

Definition at line 102 of file DiMuonVertexValidation.cc.

Referenced by analyze(), beginJob(), and endJob().

◆ hCosPhi_

TH1F* DiMuonVertexValidation::hCosPhi_
private

Definition at line 101 of file DiMuonVertexValidation.cc.

Referenced by analyze(), beginJob(), and endJob().

◆ hCosPhiInv3D_

TH1F* DiMuonVertexValidation::hCosPhiInv3D_
private

Definition at line 104 of file DiMuonVertexValidation.cc.

Referenced by beginJob(), and endJob().

◆ hCosPhiInv_

TH1F* DiMuonVertexValidation::hCosPhiInv_
private

Definition at line 103 of file DiMuonVertexValidation.cc.

Referenced by beginJob(), and endJob().

◆ hCutFlow_

TH1F* DiMuonVertexValidation::hCutFlow_
private

Definition at line 109 of file DiMuonVertexValidation.cc.

Referenced by beginJob(), and endJob().

◆ hInvMass_

TH1F* DiMuonVertexValidation::hInvMass_
private

Definition at line 106 of file DiMuonVertexValidation.cc.

Referenced by analyze(), and beginJob().

◆ hSVDist3D_

TH1F* DiMuonVertexValidation::hSVDist3D_
private

Definition at line 98 of file DiMuonVertexValidation.cc.

Referenced by analyze(), and beginJob().

◆ hSVDist3DSig_

TH1F* DiMuonVertexValidation::hSVDist3DSig_
private

Definition at line 99 of file DiMuonVertexValidation.cc.

Referenced by analyze(), and beginJob().

◆ hSVDist_

TH1F* DiMuonVertexValidation::hSVDist_
private

Definition at line 96 of file DiMuonVertexValidation.cc.

Referenced by analyze(), and beginJob().

◆ hSVDistSig_

TH1F* DiMuonVertexValidation::hSVDistSig_
private

Definition at line 97 of file DiMuonVertexValidation.cc.

Referenced by analyze(), and beginJob().

◆ hSVProb_

TH1F* DiMuonVertexValidation::hSVProb_
private

Definition at line 95 of file DiMuonVertexValidation.cc.

Referenced by analyze(), and beginJob().

◆ hTrackInvMass_

TH1F* DiMuonVertexValidation::hTrackInvMass_
private

Definition at line 107 of file DiMuonVertexValidation.cc.

Referenced by analyze(), and beginJob().

◆ maxSVdist_

float DiMuonVertexValidation::maxSVdist_
private

Definition at line 80 of file DiMuonVertexValidation.cc.

Referenced by analyze(), and DiMuonVertexValidation().

◆ muonsToken_

edm::EDGetTokenT<reco::MuonCollection> DiMuonVertexValidation::muonsToken_
private

Definition at line 128 of file DiMuonVertexValidation.cc.

Referenced by analyze(), and DiMuonVertexValidation().

◆ myCounts

DiLeptonHelp::Counts DiMuonVertexValidation::myCounts
private

Definition at line 76 of file DiMuonVertexValidation.cc.

Referenced by analyze(), beginJob(), and endJob().

◆ pTthresholds_

std::vector<double> DiMuonVertexValidation::pTthresholds_
private

Definition at line 79 of file DiMuonVertexValidation.cc.

Referenced by analyze(), and DiMuonVertexValidation().

◆ tracksToken_

edm::EDGetTokenT<reco::TrackCollection> DiMuonVertexValidation::tracksToken_
private

Definition at line 124 of file DiMuonVertexValidation.cc.

Referenced by analyze().

◆ ttbESToken_

const edm::ESGetToken<TransientTrackBuilder, TransientTrackRecord> DiMuonVertexValidation::ttbESToken_
private

Definition at line 122 of file DiMuonVertexValidation.cc.

Referenced by analyze().

◆ useReco_

bool DiMuonVertexValidation::useReco_
private

Definition at line 78 of file DiMuonVertexValidation.cc.

Referenced by analyze(), and DiMuonVertexValidation().

◆ vertexToken_

edm::EDGetTokenT<reco::VertexCollection> DiMuonVertexValidation::vertexToken_
private

Definition at line 125 of file DiMuonVertexValidation.cc.

Referenced by analyze().

◆ VtxDist3DConfiguration_

edm::ParameterSet DiMuonVertexValidation::VtxDist3DConfiguration_
private

Definition at line 88 of file DiMuonVertexValidation.cc.

Referenced by beginJob().

◆ VtxDist3DPlots

DiLeptonHelp::PlotsVsKinematics DiMuonVertexValidation::VtxDist3DPlots = DiLeptonHelp::PlotsVsKinematics(DiLeptonHelp::MM)
private

Definition at line 117 of file DiMuonVertexValidation.cc.

Referenced by analyze(), and beginJob().

◆ VtxDist3DSigConfiguration_

edm::ParameterSet DiMuonVertexValidation::VtxDist3DSigConfiguration_
private

Definition at line 90 of file DiMuonVertexValidation.cc.

Referenced by beginJob().

◆ VtxDist3DSigPlots

DiLeptonHelp::PlotsVsKinematics DiMuonVertexValidation::VtxDist3DSigPlots = DiLeptonHelp::PlotsVsKinematics(DiLeptonHelp::MM)
private

Definition at line 119 of file DiMuonVertexValidation.cc.

Referenced by analyze(), and beginJob().

◆ VtxDistConfiguration_

edm::ParameterSet DiMuonVertexValidation::VtxDistConfiguration_
private

Definition at line 87 of file DiMuonVertexValidation.cc.

Referenced by beginJob().

◆ VtxDistPlots

DiLeptonHelp::PlotsVsKinematics DiMuonVertexValidation::VtxDistPlots = DiLeptonHelp::PlotsVsKinematics(DiLeptonHelp::MM)
private

Definition at line 116 of file DiMuonVertexValidation.cc.

Referenced by analyze(), and beginJob().

◆ VtxDistSigConfiguration_

edm::ParameterSet DiMuonVertexValidation::VtxDistSigConfiguration_
private

Definition at line 89 of file DiMuonVertexValidation.cc.

Referenced by beginJob().

◆ VtxDistSigPlots

DiLeptonHelp::PlotsVsKinematics DiMuonVertexValidation::VtxDistSigPlots = DiLeptonHelp::PlotsVsKinematics(DiLeptonHelp::MM)
private

Definition at line 118 of file DiMuonVertexValidation.cc.

Referenced by analyze(), and beginJob().

◆ VtxProbConfiguration_

edm::ParameterSet DiMuonVertexValidation::VtxProbConfiguration_
private

Definition at line 86 of file DiMuonVertexValidation.cc.

Referenced by beginJob().

◆ VtxProbPlots

DiLeptonHelp::PlotsVsKinematics DiMuonVertexValidation::VtxProbPlots = DiLeptonHelp::PlotsVsKinematics(DiLeptonHelp::MM)
private

Definition at line 115 of file DiMuonVertexValidation.cc.

Referenced by analyze(), and beginJob().

◆ ZMassPlots

Definition at line 120 of file DiMuonVertexValidation.cc.

Referenced by analyze(), and beginJob().

DiMuonVertexValidation::ttbESToken_
const edm::ESGetToken< TransientTrackBuilder, TransientTrackRecord > ttbESToken_
Definition: DiMuonVertexValidation.cc:122
DiMuonVertexValidation::hCosPhiInv_
TH1F * hCosPhiInv_
Definition: DiMuonVertexValidation.cc:103
DiMuonVertexValidation::maxSVdist_
float maxSVdist_
Definition: DiMuonVertexValidation.cc:80
DiMuonVertexValidation::hTrackInvMass_
TH1F * hTrackInvMass_
Definition: DiMuonVertexValidation.cc:107
TFileDirectory::mkdir
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
Definition: TFileDirectory.cc:112
reco::Vertex::isValid
bool isValid() const
Tells whether the vertex is valid.
Definition: Vertex.h:72
mps_fire.i
i
Definition: mps_fire.py:428
edm::ESInputTag
Definition: ESInputTag.h:87
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11724
edm::Handle::product
T const * product() const
Definition: Handle.h:70
DiLeptonHelp::Counts::eventsTotal
unsigned int eventsTotal
Definition: DiLeptonVertexHelpers.h:19
muon
Definition: MuonCocktails.h:17
TransientVertex::isValid
bool isValid() const
Definition: TransientVertex.h:195
PV3DBase::x
T x() const
Definition: PV3DBase.h:59
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
DiMuonVertexValidation::vertexToken_
edm::EDGetTokenT< reco::VertexCollection > vertexToken_
Definition: DiMuonVertexValidation.cc:125
DiMuonVertexValidation::hCosPhiInv3D_
TH1F * hCosPhiInv3D_
Definition: DiMuonVertexValidation.cc:104
edm
HLT enums.
Definition: AlignableModifier.h:19
Measurement1D::value
double value() const
Definition: Measurement1D.h:25
reco::VertexCollection
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
VertexDistance3D::distance
Measurement1D distance(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const override
Definition: VertexDistance3D.cc:17
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89301
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
DiMuonVertexValidation::useReco_
bool useReco_
Definition: DiMuonVertexValidation.cc:78
DiLeptonHelp::Counts::eventsAfterMult
unsigned int eventsAfterMult
Definition: DiLeptonVertexHelpers.h:20
TransientVertex::position
GlobalPoint position() const
Definition: TransientVertex.h:169
DiMuonVertexValidation::VtxProbPlots
DiLeptonHelp::PlotsVsKinematics VtxProbPlots
Definition: DiMuonVertexValidation.cc:115
DiMuonVertexValidation::tracksToken_
edm::EDGetTokenT< reco::TrackCollection > tracksToken_
Definition: DiMuonVertexValidation.cc:124
DiMuonVertexValidation::CosPhi3DPlots
DiLeptonHelp::PlotsVsKinematics CosPhi3DPlots
Definition: DiMuonVertexValidation.cc:114
DiMuonVertexValidation::CosPhiConfiguration_
edm::ParameterSet CosPhiConfiguration_
Definition: DiMuonVertexValidation.cc:84
TFileDirectory
Definition: TFileDirectory.h:24
reco::LeafCandidate::pt
double pt() const final
transverse momentum
Definition: LeafCandidate.h:146
DiMuonVertexValidation::CosPhi3DConfiguration_
edm::ParameterSet CosPhi3DConfiguration_
Definition: DiMuonVertexValidation.cc:85
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
DiMuonVertexValidation::VtxDistSigConfiguration_
edm::ParameterSet VtxDistSigConfiguration_
Definition: DiMuonVertexValidation.cc:89
edm::Handle< reco::VertexCollection >
AlignmentTracksFromVertexSelector_cfi.vertices
vertices
Definition: AlignmentTracksFromVertexSelector_cfi.py:5
cmToum
static constexpr float cmToum
Definition: DiMuonVertexValidation.cc:137
DiLeptonHelp::Counts::zeroAll
void zeroAll()
Definition: DiLeptonVertexHelpers.h:36
reco::Muon
Definition: Muon.h:27
edm::Ref< TrackCollection >
DiMuonVertexValidation::VtxDistPlots
DiLeptonHelp::PlotsVsKinematics VtxDistPlots
Definition: DiMuonVertexValidation.cc:116
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
mumass2
static constexpr float mumass2
Definition: DiMuonVertexValidation.cc:138
DiMuonVertexValidation::hCosPhi3D_
TH1F * hCosPhi3D_
Definition: DiMuonVertexValidation.cc:102
DiLeptonHelp::Counts::eventsAfterVtx
unsigned int eventsAfterVtx
Definition: DiLeptonVertexHelpers.h:23
RandomServiceHelper.t1
t1
Definition: RandomServiceHelper.py:256
DiMuonVertexValidation::ZMassPlots
DiLeptonHelp::PlotsVsKinematics ZMassPlots
Definition: DiMuonVertexValidation.cc:120
DiMuonVertexValidation::alcaRecoToken_
edm::EDGetTokenT< reco::TrackCollection > alcaRecoToken_
Definition: DiMuonVertexValidation.cc:130
FrontierCondition_GT_autoExpress_cfi.t0
t0
Definition: FrontierCondition_GT_autoExpress_cfi.py:149
names
const std::string names[nVars_]
Definition: PhotonIDValueMapProducer.cc:124
DiMuonVertexValidation::pTthresholds_
std::vector< double > pTthresholds_
Definition: DiMuonVertexValidation.cc:79
DiLeptonHelp::PlotsVsKinematics::bookFromPSet
void bookFromPSet(const TFileDirectory &fs, const edm::ParameterSet &hpar)
Definition: DiLeptonVertexHelpers.h:67
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
reco::Track
Definition: Track.h:27
DiMuonVertexValidation::hSVDistSig_
TH1F * hSVDistSig_
Definition: DiMuonVertexValidation.cc:97
VertexDistance3D
Definition: VertexDistance3D.h:13
DiMuonVertexValidation::hSVDist_
TH1F * hSVDist_
Definition: DiMuonVertexValidation.cc:96
PbPb_ZMuSkimMuonDPG_cff.deltaR
deltaR
Definition: PbPb_ZMuSkimMuonDPG_cff.py:63
Measurement1D::error
double error() const
Definition: Measurement1D.h:27
DiMuonVertexValidation::VtxProbConfiguration_
edm::ParameterSet VtxProbConfiguration_
Definition: DiMuonVertexValidation.cc:86
DiMuonVertexValidation::hCosPhi_
TH1F * hCosPhi_
Definition: DiMuonVertexValidation.cc:101
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
DiMuonVertexValidation::hSVDist3D_
TH1F * hSVDist3D_
Definition: DiMuonVertexValidation.cc:98
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:233
edm::ParameterSet
Definition: ParameterSet.h:47
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
jetUpdater_cfi.sort
sort
Definition: jetUpdater_cfi.py:29
DiMuonVertexValidation::myCounts
DiLeptonHelp::Counts myCounts
Definition: DiMuonVertexValidation.cc:76
DiLeptonHelp::Counts::eventsAfterEta
unsigned int eventsAfterEta
Definition: DiLeptonVertexHelpers.h:22
PV3DBase::y
T y() const
Definition: PV3DBase.h:60
edm::Service< TFileService >
createfilelist.int
int
Definition: createfilelist.py:10
iEvent
int iEvent
Definition: GenABIO.cc:224
DiLeptonHelp::Counts::eventsAfterPt
unsigned int eventsAfterPt
Definition: DiLeptonVertexHelpers.h:21
TransientTrackBuilder
Definition: TransientTrackBuilder.h:16
DiMuonVertexValidation::CosPhiPlots
DiLeptonHelp::PlotsVsKinematics CosPhiPlots
Definition: DiMuonVertexValidation.cc:113
TransientVertex
Definition: TransientVertex.h:18
VertexDistanceXY
Definition: VertexDistanceXY.h:11
DiMuonVertexValidation::DiMuMassConfiguration_
edm::ParameterSet DiMuMassConfiguration_
Definition: DiMuonVertexValidation.cc:91
TFileService::make
T * make(const Args &...args) const
make new ROOT object
Definition: TFileService.h:64
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DiMuonVertexValidation::VtxDist3DPlots
DiLeptonHelp::PlotsVsKinematics VtxDist3DPlots
Definition: DiMuonVertexValidation.cc:117
DiMuonVertexValidation::VtxDist3DConfiguration_
edm::ParameterSet VtxDist3DConfiguration_
Definition: DiMuonVertexValidation.cc:88
DiMuonVertexValidation::VtxDistConfiguration_
edm::ParameterSet VtxDistConfiguration_
Definition: DiMuonVertexValidation.cc:87
DiLeptonHelp::PlotsVsKinematics::fillPlots
void fillPlots(const float val, const std::pair< TLorentzVector, TLorentzVector > &momenta)
Definition: DiLeptonVertexHelpers.h:192
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
funct::D
DecomposeProduct< arg, typename Div::arg > D
Definition: Factorize.h:141
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
reco::TransientTrack
Definition: TransientTrack.h:19
DiMuonVertexValidation::hSVProb_
TH1F * hSVProb_
Definition: DiMuonVertexValidation.cc:95
VertexDistanceXY::distance
Measurement1D distance(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const override
Definition: VertexDistanceXY.cc:19
TFileService::kSharedResource
static const std::string kSharedResource
Definition: TFileService.h:76
DiMuonVertexValidation::hSVDist3DSig_
TH1F * hSVDist3DSig_
Definition: DiMuonVertexValidation.cc:99
or
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
Definition: Activities.doc:12
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
DiMuonVertexValidation::hInvMass_
TH1F * hInvMass_
Definition: DiMuonVertexValidation.cc:106
DiMuonVertexValidation::VtxDist3DSigPlots
DiLeptonHelp::PlotsVsKinematics VtxDist3DSigPlots
Definition: DiMuonVertexValidation.cc:119
edm::EDConsumerBase::esConsumes
auto esConsumes()
Definition: EDConsumerBase.h:206
TransientTrackBuilder::build
reco::TransientTrack build(const reco::Track *p) const
Definition: TransientTrackBuilder.cc:20
DiMuonVertexValidation::VtxDist3DSigConfiguration_
edm::ParameterSet VtxDist3DSigConfiguration_
Definition: DiMuonVertexValidation.cc:90
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
HLT_FULL_cff.distance
distance
Definition: HLT_FULL_cff.py:7746
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
DiMuonVertexValidation::VtxDistSigPlots
DiLeptonHelp::PlotsVsKinematics VtxDistSigPlots
Definition: DiMuonVertexValidation.cc:118
edm::ParameterDescription
Definition: ParameterDescription.h:110
edm::InputTag
Definition: InputTag.h:15
reco::Vertex
Definition: Vertex.h:35
DiMuonVertexValidation::hCutFlow_
TH1F * hCutFlow_
Definition: DiMuonVertexValidation.cc:109
edm::ConfigurationDescriptions::addWithDefaultLabel
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:87
DiLeptonHelp::Counts::printCounts
void printCounts()
Definition: DiLeptonVertexHelpers.h:27
DiLeptonHelp::Counts::eventsAfterDist
unsigned int eventsAfterDist
Definition: DiLeptonVertexHelpers.h:24
KalmanVertexFitter
Definition: KalmanVertexFitter.h:22
DiMuonVertexValidation::muonsToken_
edm::EDGetTokenT< reco::MuonCollection > muonsToken_
Definition: DiMuonVertexValidation.cc:128
reco::TrackBase::highPurity
Definition: TrackBase.h:154