CMS 3D CMS Logo

TrackInfoBuilder.h
Go to the documentation of this file.
1 #ifndef RecoBTag_FeatureTools_TrackInfoBuilder_h
2 #define RecoBTag_FeatureTools_TrackInfoBuilder_h
3 
8 
9 namespace btagbtvdeep {
10 
11  // adapted from DeepNtuples
13  public:
15 
16  void buildTrackInfo(const reco::Candidate* candidate,
17  const math::XYZVector& jetDir,
18  GlobalVector refjetdirection,
19  const reco::Vertex& pv);
20  const float getTrackDeltaR() const { return trackDeltaR_; }
21  const float getTrackEta() const { return trackEta_; }
22  const float getTrackEtaRel() const { return trackEtaRel_; }
23  const float getTrackJetDistSig() const { return trackJetDistSig_; }
24  const float getTrackJetDistVal() const { return trackJetDistVal_; }
25  const float getTrackMomentum() const { return trackMomentum_; }
26  const float getTrackPPar() const { return trackPPar_; }
27  const float getTrackPParRatio() const { return trackPParRatio_; }
28  const float getTrackPtRatio() const { return trackPtRatio_; }
29  const float getTrackPtRel() const { return trackPtRel_; }
30  const float getTrackSip2dSig() const { return trackSip2dSig_; }
31  const float getTrackSip2dVal() const { return trackSip2dVal_; }
32  const float getTrackSip3dSig() const { return trackSip3dSig_; }
33  const float getTrackSip3dVal() const { return trackSip3dVal_; }
34 
35  private:
37 
39  float trackEta_;
40  float trackEtaRel_;
41  float trackPtRel_;
42  float trackPPar_;
43  float trackDeltaR_;
50 
53  };
54 
55 } // namespace btagbtvdeep
56 
57 #endif //RecoBTag_FeatureTools_TrackInfoBuilder_h
Vector3DBase
Definition: Vector3DBase.h:8
btagbtvdeep::TrackInfoBuilder::getTrackSip3dVal
const float getTrackSip3dVal() const
Definition: TrackInfoBuilder.h:33
btagbtvdeep
Definition: BoostedDoubleSVTagInfoFeatures.h:4
btagbtvdeep::TrackInfoBuilder::getTrackSip2dSig
const float getTrackSip2dSig() const
Definition: TrackInfoBuilder.h:30
btagbtvdeep::TrackInfoBuilder::getTrackJetDistSig
const float getTrackJetDistSig() const
Definition: TrackInfoBuilder.h:23
btagbtvdeep::TrackInfoBuilder::TrackInfoBuilder
TrackInfoBuilder(edm::ESHandle< TransientTrackBuilder > &build)
Definition: TrackInfoBuilder.cc:15
btagbtvdeep::TrackInfoBuilder::getTrackMomentum
const float getTrackMomentum() const
Definition: TrackInfoBuilder.h:25
btagbtvdeep::TrackInfoBuilder::trackSip3dVal_
float trackSip3dVal_
Definition: TrackInfoBuilder.h:48
btagbtvdeep::TrackInfoBuilder::trackMomentum_
float trackMomentum_
Definition: TrackInfoBuilder.h:38
btagbtvdeep::TrackInfoBuilder::trackPtRatio_
float trackPtRatio_
Definition: TrackInfoBuilder.h:44
btagbtvdeep::TrackInfoBuilder
Definition: TrackInfoBuilder.h:12
newFWLiteAna.build
build
Definition: newFWLiteAna.py:126
btagbtvdeep::TrackInfoBuilder::getTrackEta
const float getTrackEta() const
Definition: TrackInfoBuilder.h:21
btagbtvdeep::TrackInfoBuilder::buildTrackInfo
void buildTrackInfo(const reco::Candidate *candidate, const math::XYZVector &jetDir, GlobalVector refjetdirection, const reco::Vertex &pv)
Definition: TrackInfoBuilder.cc:32
btagbtvdeep::TrackInfoBuilder::trackSip3dSig_
float trackSip3dSig_
Definition: TrackInfoBuilder.h:49
btagbtvdeep::TrackInfoBuilder::trackPPar_
float trackPPar_
Definition: TrackInfoBuilder.h:42
btagbtvdeep::TrackInfoBuilder::getTrackPParRatio
const float getTrackPParRatio() const
Definition: TrackInfoBuilder.h:27
edm::ESHandle< TransientTrackBuilder >
VertexCompositePtrCandidate.h
btagbtvdeep::TrackInfoBuilder::trackSip2dVal_
float trackSip2dVal_
Definition: TrackInfoBuilder.h:46
btagbtvdeep::TrackInfoBuilder::getTrackEtaRel
const float getTrackEtaRel() const
Definition: TrackInfoBuilder.h:22
btagbtvdeep::TrackInfoBuilder::getTrackSip2dVal
const float getTrackSip2dVal() const
Definition: TrackInfoBuilder.h:31
btagbtvdeep::TrackInfoBuilder::builder_
edm::ESHandle< TransientTrackBuilder > builder_
Definition: TrackInfoBuilder.h:36
TransientTrackBuilder.h
btagbtvdeep::TrackInfoBuilder::trackPParRatio_
float trackPParRatio_
Definition: TrackInfoBuilder.h:45
btagbtvdeep::TrackInfoBuilder::getTrackPtRel
const float getTrackPtRel() const
Definition: TrackInfoBuilder.h:29
btagbtvdeep::TrackInfoBuilder::trackJetDistSig_
float trackJetDistSig_
Definition: TrackInfoBuilder.h:52
math::XYZVector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
MetAnalyzer.pv
def pv(vc)
Definition: MetAnalyzer.py:7
btagbtvdeep::TrackInfoBuilder::trackPtRel_
float trackPtRel_
Definition: TrackInfoBuilder.h:41
btagbtvdeep::TrackInfoBuilder::trackDeltaR_
float trackDeltaR_
Definition: TrackInfoBuilder.h:43
btagbtvdeep::TrackInfoBuilder::getTrackPPar
const float getTrackPPar() const
Definition: TrackInfoBuilder.h:26
btagbtvdeep::TrackInfoBuilder::trackSip2dSig_
float trackSip2dSig_
Definition: TrackInfoBuilder.h:47
btagbtvdeep::TrackInfoBuilder::trackEtaRel_
float trackEtaRel_
Definition: TrackInfoBuilder.h:40
reco::Candidate
Definition: Candidate.h:27
Vertex.h
btagbtvdeep::TrackInfoBuilder::getTrackJetDistVal
const float getTrackJetDistVal() const
Definition: TrackInfoBuilder.h:24
Candidate.h
btagbtvdeep::TrackInfoBuilder::trackJetDistVal_
float trackJetDistVal_
Definition: TrackInfoBuilder.h:51
btagbtvdeep::TrackInfoBuilder::trackEta_
float trackEta_
Definition: TrackInfoBuilder.h:39
btagbtvdeep::TrackInfoBuilder::getTrackDeltaR
const float getTrackDeltaR() const
Definition: TrackInfoBuilder.h:20
btagbtvdeep::TrackInfoBuilder::getTrackSip3dSig
const float getTrackSip3dSig() const
Definition: TrackInfoBuilder.h:32
reco::Vertex
Definition: Vertex.h:35
btagbtvdeep::TrackInfoBuilder::getTrackPtRatio
const float getTrackPtRatio() const
Definition: TrackInfoBuilder.h:28