LOGO

RestFrames  v1.0.0
RestFrames HEP Event Analysis Software Library
VisibleState.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 VisibleState_HH
31 #define VisibleState_HH
32 
33 #include "RestFrames/State.hh"
34 
35 namespace RestFrames {
36 
37  class VisibleRecoFrame;
38 
39  class VisibleState : public State {
40  public:
41  VisibleState(const std::string& sname,
42  const std::string& stitle);
43  VisibleState();
44  virtual ~VisibleState();
45 
46  virtual void Clear();
47 
48  static VisibleState& Empty();
49 
50  virtual void AddFrame(const RestFrame& frame);
51 
52  virtual RestFrame const& GetFrame() const;
53 
54  virtual bool IsFrame(const RestFrame& frame) const;
55  virtual bool IsFrames(const ConstRestFrameList& frames) const;
56 
57  virtual void SetLabFrameFourVector();
58  virtual void SetCharge(const RFCharge& charge);
59  virtual void SetCharge(int charge = 0);
60  virtual void SetCharge(int charge_num, int charge_den);
61 
62  protected:
63  const VisibleRecoFrame* m_FramePtr;
64 
65  private:
66  static VisibleState m_Empty;
67 
68  };
69 
70 }
71 
72 #endif
virtual void Clear()
Clears RFBase of all connections to other objects.
Definition: VisibleState.cc:48
abstract base class for all Frame objects
abstract base class for all State objects
Definition: State.hh:44