CMS 3D CMS Logo

SimpleVertexTree.h
Go to the documentation of this file.
1 #ifndef SimpleVertexTree_H
2 #define SimpleVertexTree_H
3 
4 #include <string>
5 
10 
11 #include "TString.h"
12 
38 class TFile;
39 class TTree;
40 
42 public:
43 
49  SimpleVertexTree(const char * fitterName = "VertexFitter",
50  const MagneticField * magField = nullptr);
51  virtual ~SimpleVertexTree();
52 
59  void fill(const TransientVertex & recv, const TrackingVertex *simv = nullptr,
60  reco::RecoToSimCollection *recSimColl = nullptr,
61  const float &time = 0.);
62 
63  void fill(const TransientVertex & recv, const TrackingVertex *simv = nullptr,
64  const float &time = 0.);
65 
71  void fill(const TransientVertex & recv, const float &time = 0.);
72 
77  void fill(const TrackingVertex *simv);
78 
79 // void fill(const TransientVertex & recVertex, const std::vector < RecTrack > & recTrackV,
80 // const SimVertex * simv, const float &time);
81 //
82 // void fill(const std::vector < RecTrack > & recTrackV, const TkSimVertex * simv = 0,
83 // const float &time = 0.);
84 
88  void fill();
89 
90 private:
91 
92  void defineTrackBranch(const TString& prefix, const TString& type,
93  const float* (VertexFitterResult::*pfunc)(const int) const,
94  const TString& index);
95 
96  float simPos[3];
97  float recPos[3];
98  float recErr[3];
99  float chiTot, ndf, chiProb;
101  TTree* vertexTree;
103  TString theFitterName;
104 
105  bool trackTest;
106  int maxTrack;
107  TString* parameterNames[5];
108 };
109 #endif
110 
type
Definition: HCALResponse.h:21
SimpleVertexTree(const char *fitterName="VertexFitter", const MagneticField *magField=0)
void defineTrackBranch(const TString &prefix, const TString &type, const float *(VertexFitterResult::*pfunc)(const int) const, const TString &index)
TString * parameterNames[5]
virtual ~SimpleVertexTree()
VertexFitterResult * result