PandaRoot
CbmGeaneTrT.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 // Task for the exercise 2 of the GEANE tutorial
14 // Authors A. Fontana & P. Genova, Sept. 2007
15 
16 #ifndef CBMGEANETrT_H
17 #define CBMGEANETrT_H 1
18 
19 #include "FairTask.h"
20 #include "TVector3.h"
21 #include "FairGeanePro.h"
22 #include "FairGeaneUtil.h"
23 #include "TFile.h"
24 
25 class TGeant3;
26 class TClonesArray;
27 class TTree;
28 class CbmPlanePoint;
29 class PndSttTrack;
30 class PndSttHit;
31 class PndSttPoint;
32 
33 class FairGeaneTrT : public FairTask {
34  public:
36  FairGeaneTrT();
37 
39  ~FairGeaneTrT();
40 
42  virtual InitStatus Init();
43 
45  virtual void Exec(Option_t *opt);
46 
47  // convert coordinates from SD to LAB
48  Bool_t CoordSDToMARS(TVector3 o, TVector3 y, TVector3 z, TMatrixT<double> coor, TVector3 &coordinate);
49 
50  private:
52  TClonesArray *fHitArray;
53  TClonesArray *fPointArray;
54  TClonesArray *fTrackArray;
55 
56  TTree *t;
57  TFile *f;
59  TClonesArray *fTrackParIni;
60  TClonesArray *fTrackParGeane;
61  TClonesArray *fTrackParFinal;
62  TClonesArray *fTrackParMC;
63 
64  TGeant3 *gMC3;
65  ClassDef(FairGeaneTrT, 1);
66  Int_t fEvent;
67  FairGeanePro *fPro;
68  FairGeaneUtil *fUtil;
69 };
70 
71 #endif
Bool_t CoordSDToMARS(TVector3 o, TVector3 y, TVector3 z, TMatrixT< double > coor, TVector3 &coordinate)
virtual void Exec(Option_t *opt)
virtual InitStatus Init()