PandaRoot
Rho4CFitter.h
Go to the documentation of this file.
1 #ifndef Rho4CFitter_H
2 #define Rho4CFitter_H
3 // //
5 // Rho4CFitter //
6 // //
7 // Author: K. Goetzen, GSI, 2008 //
8 // //
10 
11 #include "RhoFitterBase.h"
12 #include "TVector3.h"
13 #include "TMatrixDSym.h"
14 #include "TMatrixD.h"
15 #include "TLorentzVector.h"
16 #include "RhoCandList.h"
17 
18 class RhoCandidate;
19 
20 class Rho4CFitter : public RhoFitterBase {
21  public:
22  Rho4CFitter(RhoCandidate *b, TLorentzVector lv);
23  virtual ~Rho4CFitter(); // {if(fHeadOfTree) delete fHeadOfTree;}
24  Bool_t Fit(); // fits final state particles to initial state, States inbetween are modified.
25  Bool_t FitConserveMasses(); // fits final state particles threemomenta to initial state, States inbetween are modified.
26  Bool_t FitAll()
27  {
28  Fatal("Rho4CFitter::FitAll()", "Not applicable. Please use Fit() or FitConserveMasses().");
29  return kFALSE;
30  };
31  void PrintTree(RhoCandidate *c, int l = 0);
32  double Chi2Contribution(const RhoCandidate &) const
33  {
34  Error("Rho4CFitter::Chi2Contribution", "No chi2 contribution available.");
35  return -9999.;
36  };
37 
38  private:
39  Bool_t Do4CFit(); // Fit, can freely change energy
40  Bool_t Do4CFitWithMassConservation(); // Fit, conserving daughter masses
41 
42  TLorentzVector fLv4C;
43  int fNDau;
44  double fConserveDaughterMasses; // true = energy of daughters cannot be modified by fit
45 
46  ClassDef(Rho4CFitter, 1) // A 4c fitter
47 };
48 
49 #endif
Bool_t FitConserveMasses()
Bool_t FitAll()
Definition: Rho4CFitter.h:26
double Chi2Contribution(const RhoCandidate &) const
Definition: Rho4CFitter.h:32
Rho4CFitter(RhoCandidate *b, TLorentzVector lv)
virtual ~Rho4CFitter()
void PrintTree(RhoCandidate *c, int l=0)
Bool_t Fit()