CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  TrackAssociatorByChi2 * associator = 0);
51  virtual ~SimpleVertexTree();
52 
59  void fill(const TransientVertex & recv, const TrackingVertex *simv = 0,
60  reco::RecoToSimCollection *recSimColl = 0,
61  const float &time = 0.);
62 
63  void fill(const TransientVertex & recv, const TrackingVertex *simv = 0,
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];
109 };
110 #endif
111 
type
Definition: HCALResponse.h:22
void defineTrackBranch(const TString &prefix, const TString &type, const float *(VertexFitterResult::*pfunc)(const int) const, const TString &index)
SimpleVertexTree(const char *fitterName="VertexFitter", TrackAssociatorByChi2 *associator=0)
TrackAssociatorByChi2 * associatorForParamAtPca
TString * parameterNames[5]
virtual ~SimpleVertexTree()
VertexFitterResult * result