LOGO

RestFrames  v1.0.0
RestFrames HEP Event Analysis Software Library
LabGenFrame.hh
Go to the documentation of this file.
1 // RestFrames: particle physics event analysis library
3 // --------------------------------------------------------------------
4 // Copyright (c) 2014-2016, Christopher Rogan
14 // This file is part of RestFrames.
15 //
16 // RestFrames is free software; you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation; either version 2 of the License, or
19 // (at your option) any later version.
20 //
21 // RestFrames is distributed in the hope that it will be useful,
22 // but WITHOUT ANY WARRANTY; without even the implied warranty of
23 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 // GNU General Public License for more details.
25 //
26 // You should have received a copy of the GNU General Public License
27 // along with RestFrames. If not, see <http://www.gnu.org/licenses/>.
29 
30 #ifndef LabGenFrame_HH
31 #define LabGenFrame_HH
32 
33 #include "RestFrames/LabFrame.hh"
35 
36 namespace RestFrames {
37 
39  // LabGenFrame class
41  class LabGenFrame : public LabFrame<GeneratorFrame> {
42  public:
43  LabGenFrame(const std::string& sname, const std::string& stitle);
44  virtual ~LabGenFrame();
45 
46  virtual void Clear();
47 
48  virtual bool InitializeAnalysis();
49  virtual bool ClearEvent();
50  virtual bool AnalyzeEvent();
51 
52  virtual void SetThreeVector(const TVector3& P);
53  virtual void SetTransverseMomentum(double val);
54  virtual void SetLongitudinalMomentum(double val);
55  virtual void SetPhi(double val);
56 
57  virtual void SetPToverM(double val);
58 
59  void SetN_MCMCBurnIn(int N);
60  void SetN_MCMCDiscard(int N);
61 
62  void SetFailTolerance(int N);
63 
64  protected:
65  double m_PT;
66  double m_PL;
67  double m_Phi;
68  double m_PToM;
69 
70  double m_MaxM;
71 
72  virtual bool InitializeGenAnalysis();
73 
74  virtual void ResetGenFrame();
75  virtual bool GenerateFrame();
76 
77  double m_ChildMassMCMC;
78  double m_ChildProbMCMC;
79 
80  virtual bool IterateMCMC();
81 
82  int m_NBurnInMCMC;
83  int m_NDiscardMCMC;
84 
85  int m_FailTolerance;
86 
87  long m_Ngenerated;
88  long m_Npassed;
89 
90  private:
91  void Init();
92 
93  };
94 
95 }
96 
97 #endif
virtual void Clear()
Clears GeneratorFrame of all connections to other objects.
Definition: LabGenFrame.cc:56