FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairEveRecoTracksExample.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  * FairEveRecoTracksExample.h
10  *
11  * Created on: 16 cze 2020
12  * Author: Daniel Wielanek
13  * E-mail: daniel.wielanek@gmail.com
14  * Warsaw University of Technology, Faculty of Physics
15  */
16 #ifndef FAIREVERECOTRACKS_H_
17 #define FAIREVERECOTRACKS_H_
18 
19 #include "FairEveTracks.h"
20 #include "FairTask.h"
21 
22 #include <Rtypes.h>
23 #include <RtypesCore.h>
24 
25 class FairRKPropagator;
26 class FairTutPropTrack;
27 class TDatabasePDG;
28 
30 {
31  TClonesArray *fContainerReco;
32  TClonesArray *fContainerSim;
33  TClonesArray *fHits1, *fHits2;
34  Bool_t fShowPrimary;
35  Bool_t fShowSecondary;
36  Bool_t fDrawMC;
37  Bool_t fUsePdg;
38  Int_t fPdgCut;
39  FairRKPropagator *fRK;
40  TDatabasePDG *fPDG;
41 
42  protected:
43  Bool_t CheckCuts(FairTutPropTrack *tr);
44  void DrawTrack(Int_t id);
45 
46  public:
48  void Repaint();
49  void SetDrawMC(Bool_t draw);
50  void SetPdgCut(Int_t pdg, Bool_t use)
51  {
52  fPdgCut = pdg;
53  fUsePdg = use;
54  };
55  void SetShowPrimSec(Bool_t prim, Bool_t sec)
56  {
57  fShowPrimary = prim;
58  fShowSecondary = sec;
59  }
60  virtual InitStatus Init();
61  virtual ~FairEveRecoTracksExample();
62  ClassDef(FairEveRecoTracksExample, 0)
63 };
64 
65 #endif /* FAIREVERECOTRACKS_H_ */
InitStatus
Definition: FairTask.h:33
void SetShowPrimSec(Bool_t prim, Bool_t sec)
Bool_t CheckCuts(FairTutPropTrack *tr)
void SetPdgCut(Int_t pdg, Bool_t use)