FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairEveTracks.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2020 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 /*
9  * FairEveTracks.h
10  *
11  * Created on: 4 maj 2020
12  * Author: Daniel Wielanek
13  * E-mail: daniel.wielanek@gmail.com
14  * Warsaw University of Technology, Faculty of Physics
15  */
16 #ifndef FAIRTEVERACKS_H_
17 #define FAIRTEVERACKS_H_
18 
19 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
20 #include <RtypesCore.h> // for Double_t, Bool_t, kFALSE, Color_t
21 #include <TEveElement.h> // for TEveElement
22 #include <TNamed.h> // for TNamed
23 #include <TString.h> // for TString
24 #include "FairTask.h" // for InitStatus
25 class FairEventManager; // lines 23-23
26 class TBuffer;
27 class TClass;
28 class TEveTrackList; // lines 24-24
29 class TMemberInspector;
30 
31 
36  : public TEveElement
37  , public TNamed
38 {
39  FairEventManager *fEventManager;
40  Double_t fPt[2];
41  Double_t fEta[2];
42  Double_t fEnergy[2];
43  Bool_t fUsePt;
44  Bool_t fUseEta;
45  Bool_t fUseEnergy;
46  const Bool_t fAcceptCompound;
47 
48  protected:
49  Double_t GetPtMin() const { return fPt[0]; };
50  Double_t GetPtMax() const { return fPt[1]; };
51  Double_t GetEtaMin() const { return fEta[0]; };
52  Double_t GetEtaMax() const { return fEta[1]; }
53  Double_t GetEnergyMin() const { return fEnergy[0]; };
54  Double_t GetEnergyMax() const { return fEnergy[1]; };
55  Bool_t UsePtCut() const { return fUsePt; };
56  Bool_t UseEtaCut() const { return fUseEta; };
57  Bool_t UseEnergyCut() const { return fUseEnergy; };
58  FairEventManager *GetEventManager() const { return fEventManager; };
65  TEveTrackList *FindTrackGroup(TString groupName, Color_t color);
66 
67  public:
72  FairEveTracks(Bool_t acceptCompound = kFALSE);
76  void ToggleTracks();
80  void ToggleGroups();
87  void SetPtCut(Double_t min, Double_t max, Bool_t use)
88  {
89  fPt[0] = min;
90  fPt[1] = max;
91  fUsePt = use;
92  };
99  void SetEtaCut(Double_t min, Double_t max, Bool_t use)
100  {
101  fEta[0] = min;
102  fEta[1] = max;
103  fUseEta = use;
104  }
111  void SetEnergyCut(Double_t min, Double_t max, Bool_t use)
112  {
113  fEnergy[0] = min;
114  fEnergy[1] = max;
115  fUseEnergy = use;
116  }
120  virtual void Repaint() = 0;
121  virtual InitStatus Init();
122  virtual ~FairEveTracks();
123  ClassDef(FairEveTracks, 0)
124 };
125 
126 #endif /* FAIRTEVERACKS_H_ */
InitStatus
Definition: FairTask.h:33
FairEventManager * GetEventManager() const
Definition: FairEveTracks.h:58
Double_t GetEtaMax() const
Definition: FairEveTracks.h:52
virtual ~FairEveTracks()
Bool_t UseEnergyCut() const
Definition: FairEveTracks.h:57
Bool_t UsePtCut() const
Definition: FairEveTracks.h:55
Double_t GetEnergyMin() const
Definition: FairEveTracks.h:53
FairEveTracks(Bool_t acceptCompound=kFALSE)
Double_t GetEnergyMax() const
Definition: FairEveTracks.h:54
virtual void Repaint()=0
Bool_t UseEtaCut() const
Definition: FairEveTracks.h:56
void SetPtCut(Double_t min, Double_t max, Bool_t use)
Definition: FairEveTracks.h:87
Double_t GetPtMax() const
Definition: FairEveTracks.h:50
void SetEtaCut(Double_t min, Double_t max, Bool_t use)
Definition: FairEveTracks.h:99
virtual InitStatus Init()
Double_t GetEtaMin() const
Definition: FairEveTracks.h:51
TEveTrackList * FindTrackGroup(TString groupName, Color_t color)
Double_t GetPtMin() const
Definition: FairEveTracks.h:49
void SetEnergyCut(Double_t min, Double_t max, Bool_t use)