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 
59  public:
60  V0Fitter(const edm::ParameterSet& theParams,
62  ~V0Fitter();
63 
64  // Switching to L. Lista's reco::Candidate infrastructure for V0 storage
65  void fitAll(const edm::Event& iEvent, const edm::EventSetup& iSetup,
68 
69  private:
70 
71  // Tracker geometry for discerning hit positions
73 
75 
76  bool useRefTrax;
77  // bool storeRefTrax;
78  bool doKshorts;
79  bool doLambdas;
80 
81  /*bool doPostFitCuts;
82  bool doTkQualCuts;*/
83 
84  // Cuts
85  double chi2Cut;
86  double tkChi2Cut;
88  double rVtxCut;
89  double vtxSigCut;
90  // double vtxSigCut3D;
91  double collinCut;
92  double kShortMassCut;
93  double lambdaMassCut;
95  double mPiPiCut;
96  double tkDCACut;
98 
99  std::vector<reco::TrackBase::TrackQuality> qualities;
100 
104 
105  // Helper method that does the actual fitting using the KalmanVertexFitter
106  double findV0MassError(const GlobalPoint &vtxPos, const std::vector<reco::TransientTrack> &dauTracks);
107 
108  // Applies cuts to the VertexCompositeCandidates after they are fitted/created.
109  //void applyPostFitCuts();
110 
111  // Stuff for debug file output.
112  std::ofstream mPiPiMassOut;
113 
114  inline void initFileOutput() {
115  mPiPiMassOut.open("mPiPi.txt", std::ios::app);
116  }
117  inline void cleanupFileOutput() {
118  mPiPiMassOut.close();
119  }
120 };
121 
122 #endif
#define dso_hidden
bool useRefTrax
Definition: V0Fitter.h:76
void cleanupFileOutput()
Definition: V0Fitter.h:117
std::vector< VertexCompositeCandidate > VertexCompositeCandidateCollection
collection of Candidate objects
int tkNhitsCut
Definition: V0Fitter.h:87
const MagneticField * magField
Definition: V0Fitter.h:74
double chi2Cut
Definition: V0Fitter.h:85
edm::InputTag vtxFitter
Definition: V0Fitter.h:103
double rVtxCut
Definition: V0Fitter.h:88
double collinCut
Definition: V0Fitter.h:91
bool doKshorts
Definition: V0Fitter.h:78
double tkChi2Cut
Definition: V0Fitter.h:86
int iEvent
Definition: GenABIO.cc:230
double impactParameterSigCut
Definition: V0Fitter.h:94
edm::EDGetTokenT< reco::TrackCollection > token_tracks
Definition: V0Fitter.h:101
bool doLambdas
Definition: V0Fitter.h:79
const TrackerGeometry * trackerGeom
Definition: V0Fitter.h:72
void initFileOutput()
Definition: V0Fitter.h:114
std::vector< reco::TrackBase::TrackQuality > qualities
Definition: V0Fitter.h:99
int k[5][pyjets_maxn]
double tkDCACut
Definition: V0Fitter.h:96
double kShortMassCut
Definition: V0Fitter.h:92
double mPiPiCut
Definition: V0Fitter.h:95
std::ofstream mPiPiMassOut
Definition: V0Fitter.h:112
edm::EDGetTokenT< reco::BeamSpot > token_beamSpot
Definition: V0Fitter.h:102
double vtxSigCut
Definition: V0Fitter.h:89
double innerHitPosCut
Definition: V0Fitter.h:97
double lambdaMassCut
Definition: V0Fitter.h:93