CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
V0Fitter.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: V0Producer
4 // Class: V0Fitter
5 //
13 //
14 // Original Author: Brian Drell
15 // Created: Fri May 18 22:57:40 CEST 2007
16 //
17 //
18 
19 #ifndef RECOVERTEX__V0_FITTER_H
20 #define RECOVERTEX__V0_FITTER_H
21 
25 
27 
34 
37 
40 
42 
50 
53 
54 #include <string>
55 #include <fstream>
56 
57 
58 class V0Fitter {
59  public:
60  V0Fitter(const edm::ParameterSet& theParams,
62  ~V0Fitter();
63 
64  // Switching to L. Lista's reco::Candidate infrastructure for V0 storage
67  void fitAll(const edm::Event& iEvent, const edm::EventSetup& iSetup);
68 
69  private:
70  // STL vector of VertexCompositeCandidate that will be filled with VertexCompositeCandidates by fitAll()
73 
74  // Tracker geometry for discerning hit positions
76 
78 
79  bool useRefTrax;
80  // bool storeRefTrax;
81  bool doKshorts;
82  bool doLambdas;
83 
84  /*bool doPostFitCuts;
85  bool doTkQualCuts;*/
86 
87  // Cuts
88  double chi2Cut;
89  double tkChi2Cut;
91  double rVtxCut;
92  double vtxSigCut;
93  // double vtxSigCut3D;
94  double collinCut;
95  double kShortMassCut;
96  double lambdaMassCut;
98  double mPiPiCut;
99  double tkDCACut;
101 
102  std::vector<reco::TrackBase::TrackQuality> qualities;
103 
107 
108  // Helper method that does the actual fitting using the KalmanVertexFitter
109  double findV0MassError(const GlobalPoint &vtxPos, const std::vector<reco::TransientTrack> &dauTracks);
110 
111  // Applies cuts to the VertexCompositeCandidates after they are fitted/created.
112  //void applyPostFitCuts();
113 
114  // Stuff for debug file output.
115  std::ofstream mPiPiMassOut;
116 
117  inline void initFileOutput() {
118  mPiPiMassOut.open("mPiPi.txt", std::ios::app);
119  }
120  inline void cleanupFileOutput() {
121  mPiPiMassOut.close();
122  }
123 };
124 
125 #endif
bool useRefTrax
Definition: V0Fitter.h:79
void cleanupFileOutput()
Definition: V0Fitter.h:120
reco::VertexCompositeCandidateCollection theLambdas
Definition: V0Fitter.h:72
std::vector< VertexCompositeCandidate > VertexCompositeCandidateCollection
collection of Candidate objects
int tkNhitsCut
Definition: V0Fitter.h:90
~V0Fitter()
Definition: V0Fitter.cc:99
void fitAll(const edm::Event &iEvent, const edm::EventSetup &iSetup)
Definition: V0Fitter.cc:103
const MagneticField * magField
Definition: V0Fitter.h:77
double chi2Cut
Definition: V0Fitter.h:88
edm::InputTag vtxFitter
Definition: V0Fitter.h:106
double rVtxCut
Definition: V0Fitter.h:91
double collinCut
Definition: V0Fitter.h:94
bool doKshorts
Definition: V0Fitter.h:81
double findV0MassError(const GlobalPoint &vtxPos, const std::vector< reco::TransientTrack > &dauTracks)
Definition: V0Fitter.cc:508
double tkChi2Cut
Definition: V0Fitter.h:89
int iEvent
Definition: GenABIO.cc:230
const reco::VertexCompositeCandidateCollection & getLambdas() const
Definition: V0Fitter.cc:502
double impactParameterSigCut
Definition: V0Fitter.h:97
edm::EDGetTokenT< reco::TrackCollection > token_tracks
Definition: V0Fitter.h:104
bool doLambdas
Definition: V0Fitter.h:82
const reco::VertexCompositeCandidateCollection & getKshorts() const
Definition: V0Fitter.cc:498
const TrackerGeometry * trackerGeom
Definition: V0Fitter.h:75
void initFileOutput()
Definition: V0Fitter.h:117
V0Fitter(const edm::ParameterSet &theParams, edm::ConsumesCollector &&iC)
Definition: V0Fitter.cc:46
std::vector< reco::TrackBase::TrackQuality > qualities
Definition: V0Fitter.h:102
double tkDCACut
Definition: V0Fitter.h:99
reco::VertexCompositeCandidateCollection theKshorts
Definition: V0Fitter.h:71
double kShortMassCut
Definition: V0Fitter.h:95
double mPiPiCut
Definition: V0Fitter.h:98
std::ofstream mPiPiMassOut
Definition: V0Fitter.h:115
edm::EDGetTokenT< reco::BeamSpot > token_beamSpot
Definition: V0Fitter.h:105
double vtxSigCut
Definition: V0Fitter.h:92
double innerHitPosCut
Definition: V0Fitter.h:100
double lambdaMassCut
Definition: V0Fitter.h:96