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:
48  SimpleVertexTree(const char* fitterName = "VertexFitter", const MagneticField* magField = nullptr);
49  virtual ~SimpleVertexTree();
50 
57  void fill(const TransientVertex& recv,
58  const TrackingVertex* simv = nullptr,
59  reco::RecoToSimCollection* recSimColl = nullptr,
60  const float& time = 0.);
61 
62  void fill(const TransientVertex& recv, const TrackingVertex* simv = nullptr, const float& time = 0.);
63 
69  void fill(const TransientVertex& recv, const float& time = 0.);
70 
75  void fill(const TrackingVertex* simv);
76 
77  // void fill(const TransientVertex & recVertex, const std::vector < RecTrack > & recTrackV,
78  // const SimVertex * simv, const float &time);
79  //
80  // void fill(const std::vector < RecTrack > & recTrackV, const TkSimVertex * simv = 0,
81  // const float &time = 0.);
82 
86  void fill();
87 
88 private:
89  void defineTrackBranch(const TString& prefix,
90  const TString& type,
91  const float* (VertexFitterResult::*pfunc)(const int)const,
92  const TString& index);
93 
94  float simPos[3];
95  float recPos[3];
96  float recErr[3];
97  float chiTot, ndf, chiProb;
99  TTree* vertexTree;
101  TString theFitterName;
102 
103  bool trackTest;
104  int maxTrack;
105  TString* parameterNames[5];
106 };
107 #endif
SimpleVertexTree::maxTrack
int maxTrack
Definition: SimpleVertexTree.h:104
TrackingVertex.h
SimpleVertexTree::~SimpleVertexTree
virtual ~SimpleVertexTree()
Definition: SimpleVertexTree.cc:63
SimpleVertexTree::chiTot
float chiTot
Definition: SimpleVertexTree.h:97
SimpleVertexTree::numberOfVertices
int numberOfVertices
Definition: SimpleVertexTree.h:98
SimpleVertexTree::simPos
float simPos[3]
Definition: SimpleVertexTree.h:94
SimpleVertexTree::recPos
float recPos[3]
Definition: SimpleVertexTree.h:95
SimpleVertexTree::trackTest
bool trackTest
Definition: SimpleVertexTree.h:103
edm::AssociationMap< edm::OneToManyWithQualityGeneric< edm::View< reco::Track >, TrackingParticleCollection, double > >
TrackingVertex
Definition: TrackingVertex.h:22
SimpleVertexTree::ndf
float ndf
Definition: SimpleVertexTree.h:97
SimpleVertexTree::recErr
float recErr[3]
Definition: SimpleVertexTree.h:96
SimpleVertexTree::vertexTree
TTree * vertexTree
Definition: SimpleVertexTree.h:99
SimpleVertexTree::SimpleVertexTree
SimpleVertexTree(const char *fitterName="VertexFitter", const MagneticField *magField=nullptr)
Definition: SimpleVertexTree.cc:10
MagneticField.h
TransientVertex
Definition: TransientVertex.h:18
TransientVertex.h
type
type
Definition: HCALResponse.h:21
SimpleVertexTree::result
VertexFitterResult * result
Definition: SimpleVertexTree.h:100
SimpleVertexTree::defineTrackBranch
void defineTrackBranch(const TString &prefix, const TString &type, const float *(VertexFitterResult::*pfunc)(const int) const, const TString &index)
Definition: SimpleVertexTree.cc:51
VertexFitterResult.h
SimpleVertexTree::theFitterName
TString theFitterName
Definition: SimpleVertexTree.h:101
SimpleVertexTree
Definition: SimpleVertexTree.h:41
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
SimpleVertexTree::fill
void fill()
Definition: SimpleVertexTree.cc:157
ntuplemaker.time
time
Definition: ntuplemaker.py:310
SimpleVertexTree::parameterNames
TString * parameterNames[5]
Definition: SimpleVertexTree.h:105
MagneticField
Definition: MagneticField.h:19
SimpleVertexTree::chiProb
float chiProb
Definition: SimpleVertexTree.h:97
VertexFitterResult
Definition: VertexFitterResult.h:24
ZMuMuAnalysisNtupler_cff.prefix
prefix
Definition: ZMuMuAnalysisNtupler_cff.py:14