CMS 3D CMS Logo

Classes | Typedefs | Enumerations | Functions
l1tVertexFinder Namespace Reference

Classes

class  AlgoSettings
 
class  AnalysisSettings
 
class  InputData
 
class  L1Track
 Simple wrapper class for TTTrack. More...
 
class  L1TrackTruthMatched
 Simple wrapper class for TTTrack, with match to a tracking particle. More...
 
class  RecoVertex
 
class  Stub
 
class  TP
 
class  Vertex
 
class  VertexFinder
 
class  VertexNTupler
 

Typedefs

typedef edmNew::DetSet< TTStub< Ref_Phase2TrackerDigi_ > > DetSet
 
typedef edmNew::DetSetVector< TTStub< Ref_Phase2TrackerDigi_ > > DetSetVec
 
typedef std::vector< L1TrackFitTrackCollection
 
typedef std::vector< RecoVertex<> > RecoVertexCollection
 
using RecoVertexWithTP = RecoVertex< L1TrackTruthMatched >
 
typedef std::map< TrackingParticlePtr, edm::RefToBase< TrackingParticle > > TPPtrToRefMap
 
typedef edm::Ptr< TrackingParticleTrackingParticlePtr
 
typedef TTClusterAssociationMap< Ref_Phase2TrackerDigi_TTClusterAssMap
 
typedef edm::Ref< edmNew::DetSetVector< TTCluster< Ref_Phase2TrackerDigi_ > >, TTCluster< Ref_Phase2TrackerDigi_ > > TTClusterRef
 
typedef TTStubAssociationMap< Ref_Phase2TrackerDigi_TTStubAssMap
 
typedef edm::Ref< DetSetVec, TTStub< Ref_Phase2TrackerDigi_ > > TTStubRef
 
typedef TTTrackAssociationMap< Ref_Phase2TrackerDigi_TTTrackAssMap
 

Enumerations

enum  Algorithm {
  Algorithm::fastHisto, Algorithm::fastHistoEmulation, Algorithm::fastHistoLooseAssociation, Algorithm::GapClustering,
  Algorithm::agglomerativeHierarchical, Algorithm::DBSCAN, Algorithm::PVR, Algorithm::adaptiveVertexReconstruction,
  Algorithm::HPV, Algorithm::Kmeans
}
 
enum  Precision { Precision::Simulation, Precision::Emulation }
 

Functions

static constexpr unsigned BitsToRepresent (unsigned x)
 
const l1t::VertexgetPrimaryVertex (const std::vector< l1t::Vertex > &aVertexCollection)
 Returns primary vertex based on default criterion (max sum pT from all constituent tracks); throws if given empty collection. More...
 
std::ostream & operator<< (std::ostream &out, const reco::GenParticle &particle)
 

Typedef Documentation

◆ DetSet

Definition at line 28 of file Stub.h.

◆ DetSetVec

Definition at line 27 of file Stub.h.

◆ FitTrackCollection

Definition at line 23 of file VertexFinder.h.

◆ RecoVertexCollection

Definition at line 24 of file VertexFinder.h.

◆ RecoVertexWithTP

Definition at line 91 of file RecoVertex.h.

◆ TPPtrToRefMap

Definition at line 24 of file InputData.h.

◆ TrackingParticlePtr

Definition at line 23 of file InputData.h.

◆ TTClusterAssMap

Definition at line 33 of file Stub.h.

◆ TTClusterRef

Definition at line 31 of file Stub.h.

◆ TTStubAssMap

Definition at line 32 of file Stub.h.

◆ TTStubRef

Definition at line 29 of file Stub.h.

◆ TTTrackAssMap

Definition at line 20 of file L1TrackTruthMatched.h.

Enumeration Type Documentation

◆ Algorithm

◆ Precision

Enumerator
Simulation 
Emulation 

Definition at line 25 of file AlgoSettings.h.

Function Documentation

◆ BitsToRepresent()

static constexpr unsigned l1tVertexFinder::BitsToRepresent ( unsigned  x)
static

Definition at line 21 of file VertexFinder.h.

Referenced by l1tVertexFinder::VertexFinder::fastHistoEmulation().

21 { return x < 2 ? 1 : 1 + BitsToRepresent(x >> 1); }

◆ getPrimaryVertex()

const l1t::Vertex & l1tVertexFinder::getPrimaryVertex ( const std::vector< l1t::Vertex > &  aVertexCollection)

Returns primary vertex based on default criterion (max sum pT from all constituent tracks); throws if given empty collection.

Returns vertex for which parameter 'aFunction' returns the highest value; throws if given empty collection.

Definition at line 9 of file selection.cc.

References TtFullHadEvtBuilder_cfi::sumPt, submitPVValidationJobs::t, and DiMuonV_cfg::tracks.

Referenced by MuonPFAnalyzer::analyze().

9  {
10  typedef std::vector<edm::Ptr<l1t::Vertex::Track_t>> Tracks_t;
11 
12  return getPrimaryVertex(aVertexCollection, [](const Tracks_t& tracks) -> float {
13  float sumPt = 0.0;
14  for (const auto& t : tracks)
15  sumPt += t->momentum().transverse();
16  return sumPt;
17  });
18  }
const l1t::Vertex & getPrimaryVertex(const std::vector< l1t::Vertex > &aVertexCollection)
Returns primary vertex based on default criterion (max sum pT from all constituent tracks); throws if...
Definition: selection.cc:9

◆ operator<<()

std::ostream& l1tVertexFinder::operator<< ( std::ostream &  out,
const reco::GenParticle particle 
)

Definition at line 369 of file VertexNTupler.cc.

References funct::abs(), MillePedeFileConverter_cfg::out, and reco::LeafCandidate::pdgId().

369  {
370  const bool positive = (particle.pdgId() < 0);
371  const size_t absId = abs(particle.pdgId());
372  switch (absId) {
373  case 1:
374  return (out << (positive ? "d" : "anti-d"));
375  case 2:
376  return (out << (positive ? "u" : "anti-u"));
377  case 3:
378  return (out << (positive ? "s" : "anti-s"));
379  case 4:
380  return (out << (positive ? "c" : "anti-c"));
381  case 5:
382  return (out << (positive ? "b" : "anti-b"));
383  case 6:
384  return (out << (positive ? "t" : "anti-t"));
385  case 11:
386  return (out << (positive ? "e+" : "e-"));
387  case 12:
388  return (out << (positive ? "nu_e" : "anti-nu_e"));
389  case 13:
390  return (out << (positive ? "mu+" : "mu-"));
391  case 14:
392  return (out << (positive ? "nu_mu" : "anti-nu_mu"));
393  case 15:
394  return (out << (positive ? "tau+" : "tau-"));
395  case 16:
396  return (out << (positive ? "nu_tau" : "anti-nu_tau"));
397  case 21:
398  return (out << "g");
399  case 22:
400  return (out << "photon");
401  case 23:
402  return (out << "Z");
403  case 24:
404  return (out << (positive ? "W-" : "W+"));
405  default:
406  if ((((absId / 1000) % 10) != 0) and (((absId / 10) % 10) == 0))
407  return (out << "diquark<" << particle.pdgId() << ">");
408  else
409  return (out << "unknown<" << particle.pdgId() << ">");
410  }
411  }
int pdgId() const final
PDG identifier.
Abs< T >::type abs(const T &t)
Definition: Abs.h:22