CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AddTvTrack.h
Go to the documentation of this file.
1 #ifndef ADDTVTRACK_H
2 #define ADDTVTRACK_H
3 
4 // Class for Secondary Vertex Finding in Jets
5 // It adds Tracks of a not reconstructed Tertiary Vertex to a Secondary Vertex
6 // New Tracks are not used for refitting the Vertex but for the kinematical
7 // Variables for the b-tagging
8 // It uses the first PV and SV in the vectors
9 
12 
13 class AddTvTrack {
14 
15  public:
16 
17  // constructor
18  AddTvTrack( std::vector<TransientVertex>*, std::vector<TransientVertex>*,
19  double) ;
20 
21  // destructor
23 
24  // does the work
25  std::vector<TransientVertex> getSecondaryVertices(
26  const std::vector<reco::TransientTrack> & );
27 
28  // Access to parameters
29  inline std::vector<TransientVertex>* getPrimaryVertices() const {
30  return thePrimaryVertices;
31  }
32  inline std::vector<TransientVertex>* getSecondaryVertices() const {
33  return theSecondaryVertices;
34  }
35  inline double getMaxSigOnDistTrackToB() const {
36  return MaxSigOnDistTrackToB;
37  }
38 
39 
40  struct TrackInfo {
41  TrackInfo(const reco::TransientTrack* ptrack_, double* param_) {
42  ptrack=ptrack_;
43  for(int i=0;i<7;i++) param[i]=param_[i];
44  };
46  double param[7];
47  };
48  typedef std::vector<TrackInfo> TrackInfoVector;
49 
51 
52  //std::vector<pair<reco::TransientTrack,double> > getTrackInfo() {
53  // return TrackInfo;
54  //}
55  //std::vector<pair<reco::TransientTrack,double*> > getTrackInfo2() {
56  // return TrackInfo2;
57  //}
58 
59 
60  // Set parameters
61  inline void setPrimaryVertices(std::vector<TransientVertex> &
62  ThePrimaryVertices) {
63  thePrimaryVertices = thePrimaryVertices; // TYPO ?!?!?!?!?!?!?!
64  }
65  inline void setSecondaryVertices(std::vector<TransientVertex> &
66  TheSecondaryVertices) {
67  theSecondaryVertices = theSecondaryVertices; // TYPO ?!?!?!?!?!?
68  }
69  inline void setMaxSigOnDistTrackToB(double maxSigOnDistTrackToB) {
70  MaxSigOnDistTrackToB = maxSigOnDistTrackToB;
71  }
72 
73 
74  private:
75 
76  typedef std::map<reco::TransientTrack, float> TransientTrackToFloatMap;
77 
78  std::vector<TransientVertex> *thePrimaryVertices;
79  std::vector<TransientVertex> *theSecondaryVertices;
81  double theIPSig;
82 
83  // TDR Studies
84  //static std::vector<pair<reco::TransientTrack,double> > TrackInfo;
85  //static std::vector<pair<reco::TransientTrack,double* > > TrackInfo2;
86  //std::vector<pair<reco::TransientTrack,double> > TrackInfo;
87  //std::vector<pair<reco::TransientTrack,double* > > TrackInfo2;
88 
90 
91  static const bool debug = false;
92 
93 };
94 
95 #endif
const reco::TransientTrack * ptrack
Definition: AddTvTrack.h:44
int i
Definition: DBlmapReader.cc:9
static const bool debug
Definition: AddTvTrack.h:91
std::vector< TransientVertex > * getPrimaryVertices() const
Definition: AddTvTrack.h:29
std::map< reco::TransientTrack, float > TransientTrackToFloatMap
Definition: AddTvTrack.h:76
void setPrimaryVertices(std::vector< TransientVertex > &ThePrimaryVertices)
Definition: AddTvTrack.h:61
double theIPSig
Definition: AddTvTrack.h:81
struct @337 param_
std::vector< TransientVertex > * getSecondaryVertices() const
Definition: AddTvTrack.h:32
TrackInfo(const reco::TransientTrack *ptrack_, double *param_)
Definition: AddTvTrack.h:41
TrackInfoVector getTrackInfo()
Definition: AddTvTrack.h:50
void setMaxSigOnDistTrackToB(double maxSigOnDistTrackToB)
Definition: AddTvTrack.h:69
AddTvTrack(std::vector< TransientVertex > *, std::vector< TransientVertex > *, double)
Definition: AddTvTrack.cc:14
std::vector< TransientVertex > * thePrimaryVertices
Definition: AddTvTrack.h:78
TrackInfoVector theTrackInfoVector
Definition: AddTvTrack.h:89
void setSecondaryVertices(std::vector< TransientVertex > &TheSecondaryVertices)
Definition: AddTvTrack.h:65
std::vector< TrackInfo > TrackInfoVector
Definition: AddTvTrack.h:48
std::vector< TransientVertex > * theSecondaryVertices
Definition: AddTvTrack.h:79
double getMaxSigOnDistTrackToB() const
Definition: AddTvTrack.h:35
double MaxSigOnDistTrackToB
Definition: AddTvTrack.h:80