ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
AtViewerManagerSubject.h
Go to the documentation of this file.
1 #ifndef ATVIEWERMANAGERSUBJECT_H
2 #define ATVIEWERMANAGERSUBJECT_H
3 
4 #include "AtDataSubject.h"
5 
6 class TString;
7 
8 namespace DataHandling {
9 
17 class AtTreeEntry : public AtSubject {
18 protected:
19  long fEntry;
20 
21 public:
22  AtTreeEntry(long data) { fEntry = data; }
23  long Get() const { return fEntry; }
24  void Set(long entry);
25 };
26 
33 
38 class AtBranch : public AtSubject {
39 private:
40  int fBranchId{-1};
41  int fOldBranchId{-1};
42 
43 public:
45  void SetBranchName(const TString &name);
47  void SetBranchId(const int id);
48 
49  TString GetBranchName() const;
50  int GetBranchId() const { return fBranchId; }
51  TString GetOldBranchName() const;
52  int GetOldBranchId() const { return fOldBranchId; }
53 };
54 } // namespace DataHandling
55 #endif
DataHandling::AtTreeEntry::Set
void Set(long entry)
Definition: AtViewerManagerSubject.cxx:10
DataHandling::AtBranch::GetBranchId
int GetBranchId() const
Definition: AtViewerManagerSubject.h:50
DataHandling::AtBranch
Subject for the branch in the FairRoot tree.
Definition: AtViewerManagerSubject.h:38
DataHandling::AtSimpleType< int >
DataHandling::AtBranch::GetOldBranchName
TString GetOldBranchName() const
Definition: AtViewerManagerSubject.cxx:37
DataHandling::AtBranch::GetOldBranchId
int GetOldBranchId() const
Definition: AtViewerManagerSubject.h:52
DataHandling::AtTreeEntry::AtTreeEntry
AtTreeEntry(long data)
Definition: AtViewerManagerSubject.h:22
DataHandling::AtTreeEntry::fEntry
long fEntry
Definition: AtViewerManagerSubject.h:19
AtDataSubject.h
DataHandling
Definition: AtDataObserver.h:4
DataHandling::AtSubject
Definition: AtDataSubject.h:24
DataHandling::AtTreeEntry
Subject for the entry number in the FairRoot tree.
Definition: AtViewerManagerSubject.h:17
DataHandling::AtBranch::SetBranchName
void SetBranchName(const TString &name)
Will notify on change.
Definition: AtViewerManagerSubject.cxx:17
DataHandling::AtBranch::GetBranchName
TString GetBranchName() const
Definition: AtViewerManagerSubject.cxx:32
DataHandling::AtBranch::SetBranchId
void SetBranchId(const int id)
Will notify on change.
Definition: AtViewerManagerSubject.cxx:22
DataHandling::AtTreeEntry::Get
long Get() const
Definition: AtViewerManagerSubject.h:23