FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairEveGeoTracks.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  * FairEveGeoTracks.h
10  *
11  * Created on: 23 kwi 2020
12  * Author: Daniel Wielanek
13  * E-mail: daniel.wielanek@gmail.com
14  * Warsaw University of Technology, Faculty of Physics
15  */
16 #ifndef FAIREVEGEOTRACKS_H_
17 #define FAIREVEGEOTRACKS_H_
18 
19 #include "FairEveTracks.h" // for FairEveTracks
20 #include "FairTask.h" // for InitStatus
21 
23 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
24 #include <RtypesCore.h> // for Bool_t, Int_t, Double_t
25 class TBuffer;
26 class TClass;
27 class TClonesArray;
28 class TGeoTrack; // lines 22-22
29 class TMemberInspector;
30 class TBranch;
31 
37 {
38  TClonesArray* fContainer;
39  Bool_t fShowPrimary;
40  Bool_t fShowSecondary;
41  Bool_t fUsePdg;
42  Int_t fPdgCut;
43  Double_t fTMin, fTMax;
44  TBranch* fBranch = nullptr;
45  FairTimebasedDataHandlerT<TGeoTrack> fGeoTrackHandler;
46 
47  protected:
48  Bool_t CheckCuts(TGeoTrack* tr);
49  void DrawTrack(Int_t id);
50  void DrawAnimatedTrack(TGeoTrack* tr, double t0 = 0);
51 
52  public:
54  void Repaint();
55  void SetPdgCut(Int_t pdg, Bool_t use)
56  {
57  fPdgCut = pdg;
58  fUsePdg = use;
59  };
60  void SetShowPrimSec(Bool_t prim, Bool_t sec)
61  {
62  fShowPrimary = prim;
63  fShowSecondary = sec;
64  }
65  virtual InitStatus Init();
66  virtual ~FairEveGeoTracks();
67  ClassDef(FairEveGeoTracks, 0)
68 };
69 
70 #endif /* FAIREVEGEOTRACKS_H_ */
virtual InitStatus Init()
void DrawTrack(Int_t id)
InitStatus
Definition: FairTask.h:33
void SetPdgCut(Int_t pdg, Bool_t use)
Bool_t CheckCuts(TGeoTrack *tr)
void DrawAnimatedTrack(TGeoTrack *tr, double t0=0)
void SetShowPrimSec(Bool_t prim, Bool_t sec)