LOGO

RestFrames  v1.0.0
RestFrames HEP Event Analysis Software Library
LabRecoFrame.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 LabRecoFrame_HH
31 #define LabRecoFrame_HH
32 
34 #include "RestFrames/LabFrame.hh"
35 
36 namespace RestFrames {
37 
38  class Jigsaw;
39  class VisibleState;
40 
42  // LabRecoFrame class
44  class LabRecoFrame : public LabFrame<ReconstructionFrame> {
45  public:
46  LabRecoFrame(const std::string& sname, const std::string& stitle);
47  LabRecoFrame();
48  virtual ~LabRecoFrame();
49 
50  virtual void Clear();
51 
52  virtual bool InitializeAnalysis();
53  virtual bool ClearEvent();
54  virtual bool AnalyzeEvent();
55 
56  void AddTreeState(VisibleState& state) const;
57  void AddTreeStates(const VisibleStateList& states) const;
58  void RemoveTreeState(const VisibleState& state) const;
59  void RemoveTreeStates(const VisibleStateList& states) const;
60  VisibleStateList const& GetTreeStates() const;
61 
62  protected:
63  GroupList m_TreeGroups;
64  JigsawList m_TreeJigsaws;
65  mutable VisibleStateList m_TreeStates;
66 
67  bool InitializeTreeStates();
68  bool InitializeTreeGroups();
69  bool InitializeTreeJigsaws();
70 
71  bool ExecuteJigsaws();
72 
73  private:
74  VisibleState& GetNewVisibleState();
75  VisibleStateList m_InitStates;
76 
77  };
78 
79 }
80 
81 #endif
virtual void Clear()
Clears ReconstructionFrame of all connections to other objects.
Definition: LabRecoFrame.cc:51