LOGO

RestFrames  v1.0.0
RestFrames HEP Event Analysis Software Library
InvisibleJigsaw.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 InvisibleJigsaw_HH
31 #define InvisibleJigsaw_HH
32 
33 #include "RestFrames/Jigsaw.hh"
36 
37 namespace RestFrames {
38 
39  class InvisibleJigsaw : public Jigsaw {
40  public:
41  InvisibleJigsaw(const std::string& sname,
42  const std::string& stitle,
43  int Ninvisible, int Nvisible);
45  virtual ~InvisibleJigsaw();
46 
47  virtual void Clear();
48 
49  void SetGroup(Group& group = Group::Empty());
50  InvisibleGroup& GetGroup() const;
51 
52  void AddVisibleFrame(const RestFrame& frame, int i = 0);
53  void AddVisibleFrames(const ConstRestFrameList& frames, int i = 0);
54 
55  void AddInvisibleFrame(const RestFrame& frame, int i = 0);
56  void AddInvisibleFrames(const ConstRestFrameList& frames, int i = 0);
57 
58  void AddMassFrame(const RestFrame& frame, int i = 0);
59  void AddMassFrames(const ConstRestFrameList& frames, int i = 0);
60 
61  virtual double GetMinimumMass() const;
62 
63  static InvisibleJigsaw& Empty();
64 
65  protected:
66  bool m_InvMassDependancy;
67 
68  virtual bool IsSoundBody() const;
69  InvisibleState& GetNewChildState();
70 
71  void SetParentState(State& state = State::Empty());
72  InvisibleState const& GetParentState() const;
73 
74  InvisibleState& GetChildState(int i) const;
75 
76  virtual bool InitializeAnalysis();
77  bool InitializeDependancyJigsaws();
78  bool InitializeJigsawExecutionList(JigsawList& exec_jigsaws);
79 
80  virtual void FillInvisibleMassJigsawDependancies(JigsawList& jigsaws) const;
81 
82  private:
83  const int m_Nvis;
84  const int m_Ninv;
85 
86  };
87 
88 }
89 
90 #endif
abstract base class for all Jigsaw objects
Definition: Jigsaw.hh:44
virtual void Clear()
Clears Jigsaw of all connections to other objects.
abstract base class for all Group objects
Definition: Group.hh:46
abstract base class for all Frame objects
abstract base class for all State objects
Definition: State.hh:44