LOGO

RestFrames  v1.0.1
RestFrames HEP Event Analysis Software Library
VisibleFrame.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 VisibleFrame_HH
31 #define VisibleFrame_HH
32 
33 #include "RestFrames/RestFrame.hh"
34 
35 namespace RestFrames {
36 
37  class RestFrame;
38 
40  // VisibleFrame class
42  template <class T>
43  class VisibleFrame : public T {
44  public:
45 
50  VisibleFrame(const std::string& sname,
51  const std::string& stitle);
52 
54  VisibleFrame();
55  virtual ~VisibleFrame();
56 
60  virtual void SetCharge(const RFCharge& charge);
61 
65  virtual void SetCharge(int charge = 0);
66 
71  virtual void SetCharge(int charge_num, int charge_den);
72 
76  virtual RFCharge GetCharge() const;
77 
82  virtual void SetLabFrameFourVector(const TLorentzVector& V,
83  const RFCharge& charge = RFCharge());
84 
89  void SetLabFrameFourVector(const TLorentzVector& V, int charge);
90 
95  void SetLabFrameFourVector(const TLorentzVector& V,
96  int charge_num, int charge_den);
97 
101  virtual TLorentzVector GetLabFrameFourVector() const;
102 
103  protected:
104  virtual bool IsSoundBody() const;
105 
106  private:
107  TLorentzVector m_Lab_P;
108  RFCharge m_Charge;
109 
110  };
111 
112 }
113 
114 #endif
RestFrames::VisibleFrame
Definition: VisibleFrame.hh:43
RestFrames::RFCharge
Definition: RFCharge.hh:40
RestFrames::VisibleFrame::GetCharge
virtual RFCharge GetCharge() const
Returns charge of current frame.
Definition: VisibleFrame.cc:85
RestFrames::VisibleFrame::SetCharge
virtual void SetCharge(const RFCharge &charge)
Sets charge of current frame.
Definition: VisibleFrame.cc:69
RestFrames::VisibleFrame::GetLabFrameFourVector
virtual TLorentzVector GetLabFrameFourVector() const
Returns lab frame's four-vector.
Definition: VisibleFrame.cc:110
RestFrames::VisibleFrame::VisibleFrame
VisibleFrame()
Empty constructor.
Definition: VisibleFrame.cc:48
RestFrames::VisibleFrame::SetLabFrameFourVector
virtual void SetLabFrameFourVector(const TLorentzVector &V, const RFCharge &charge=RFCharge())
Sets lab frame's four-vector.
Definition: VisibleFrame.cc:90
RestFrame.hh