CMS 3D CMS Logo

JetSignalVertexCompatibilityAlgo.h
Go to the documentation of this file.
1 #ifndef JetSignalVertexCompatibilityAlgo_h
2 #define JetSignalVertexCompatibilityAlgo_h
3 
4 #include <vector>
5 #include <map>
6 
10 
12 
13 namespace reco {
14 
16  public:
19 
20  std::vector<float> compatibility(const reco::VertexCollection &vertices, const reco::TrackRefVector &tracks) const;
21 
23 
24  private:
25  template <typename T>
26  struct RefToBaseLess {
27  bool operator()(const edm::RefToBase<T> &r1, const edm::RefToBase<T> &r2) const;
28  };
29 
30  typedef std::map<reco::TrackBaseRef, reco::TransientTrack, RefToBaseLess<reco::Track> > TransientTrackMap;
31 
32  const TransientTrack &convert(const reco::TrackBaseRef &track) const;
33  double activation(double compat) const;
34 
35  static double trackVertexCompat(const reco::Vertex &vtx, const TransientTrack &track);
36 
39 
40  const double cut;
41  const double temperature;
42  };
43 
44 } // namespace reco
45 
46 #endif // JetSignalVertexCompatibilityAlgo_h
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11713
reco::JetSignalVertexCompatibilityAlgo::temperature
const double temperature
Definition: JetSignalVertexCompatibilityAlgo.h:41
reco::JetSignalVertexCompatibilityAlgo::compatibility
std::vector< float > compatibility(const reco::VertexCollection &vertices, const reco::TrackRefVector &tracks) const
Definition: JetSignalVertexCompatibilityAlgo.cc:63
reco::JetSignalVertexCompatibilityAlgo
Definition: JetSignalVertexCompatibilityAlgo.h:15
reco::VertexCollection
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
reco::JetSignalVertexCompatibilityAlgo::activation
double activation(double compat) const
Definition: JetSignalVertexCompatibilityAlgo.cc:59
reco::JetSignalVertexCompatibilityAlgo::~JetSignalVertexCompatibilityAlgo
~JetSignalVertexCompatibilityAlgo()
Definition: JetSignalVertexCompatibilityAlgo.cc:32
edm::RefVector< TrackCollection >
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::JetSignalVertexCompatibilityAlgo::resetEvent
void resetEvent(const TransientTrackBuilder *trackBuilder)
Definition: JetSignalVertexCompatibilityAlgo.cc:91
reco::JetSignalVertexCompatibilityAlgo::trackBuilder
const TransientTrackBuilder * trackBuilder
Definition: JetSignalVertexCompatibilityAlgo.h:38
TrackFwd.h
reco::JetSignalVertexCompatibilityAlgo::trackVertexCompat
static double trackVertexCompat(const reco::Vertex &vtx, const TransientTrack &track)
Definition: JetSignalVertexCompatibilityAlgo.cc:34
RefToBase.h
TransientTrackBuilder.h
tracks
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
Definition: CAHitNtupletGeneratorKernelsImpl.h:159
diffTwoXMLs.r2
r2
Definition: diffTwoXMLs.py:73
reco::JetSignalVertexCompatibilityAlgo::RefToBaseLess::operator()
bool operator()(const edm::RefToBase< T > &r1, const edm::RefToBase< T > &r2) const
Definition: JetSignalVertexCompatibilityAlgo.cc:24
TransientTrackBuilder
Definition: TransientTrackBuilder.h:16
reco::JetSignalVertexCompatibilityAlgo::convert
const TransientTrack & convert(const reco::TrackBaseRef &track) const
Definition: JetSignalVertexCompatibilityAlgo.cc:49
reco::JetSignalVertexCompatibilityAlgo::JetSignalVertexCompatibilityAlgo
JetSignalVertexCompatibilityAlgo(double cut, double temperature)
Definition: JetSignalVertexCompatibilityAlgo.cc:29
VertexFwd.h
reco::JetSignalVertexCompatibilityAlgo::TransientTrackMap
std::map< reco::TrackBaseRef, reco::TransientTrack, RefToBaseLess< reco::Track > > TransientTrackMap
Definition: JetSignalVertexCompatibilityAlgo.h:30
reco::JetSignalVertexCompatibilityAlgo::cut
const double cut
Definition: JetSignalVertexCompatibilityAlgo.h:40
reco::TransientTrack
Definition: TransientTrack.h:19
extraflags_cff.vtx
vtx
Definition: extraflags_cff.py:18
diffTwoXMLs.r1
r1
Definition: diffTwoXMLs.py:53
edm::RefToBase
Definition: AssociativeIterator.h:54
reco::JetSignalVertexCompatibilityAlgo::trackMap
TransientTrackMap trackMap
Definition: JetSignalVertexCompatibilityAlgo.h:37
reco::Vertex
Definition: Vertex.h:35
reco::JetSignalVertexCompatibilityAlgo::RefToBaseLess
Definition: JetSignalVertexCompatibilityAlgo.h:26
pwdgSkimBPark_cfi.vertices
vertices
Definition: pwdgSkimBPark_cfi.py:7