LOGO

RestFrames  v1.0.0
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  //constructor and destructor
46  VisibleFrame(const std::string& sname,
47  const std::string& stitle);
48  VisibleFrame();
49  virtual ~VisibleFrame();
50 
51  virtual void SetCharge(const RFCharge& charge);
52  virtual void SetCharge(int charge = 0);
53  virtual void SetCharge(int charge_num, int charge_den);
54  virtual RFCharge GetCharge() const;
55 
56  virtual void SetLabFrameFourVector(const TLorentzVector& V,
57  const RFCharge& charge = RFCharge());
58  void SetLabFrameFourVector(const TLorentzVector& V, int charge);
59  void SetLabFrameFourVector(const TLorentzVector& V,
60  int charge_num, int charge_den);
61 
62 
63  virtual TLorentzVector GetLabFrameFourVector() const;
64 
65  protected:
66  virtual bool IsSoundBody() const;
67 
68  private:
69  TLorentzVector m_Lab_P;
70  RFCharge m_Charge;
71 
72  };
73 
74 }
75 
76 #endif