FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairTutorialDet4MilleWriter.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 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 #ifndef FAIRTUTORIALDET4MILLEWRITER_H
9 #define FAIRTUTORIALDET4MILLEWRITER_H
10 
11 #include "FairTask.h" // for InitStatus, FairTask
12 
13 #include <Rtypes.h> // for Option_t, Bool_t, etc
14 #include <TString.h>
15 
16 class Mille;
17 class TClonesArray;
18 
20 {
21  public:
24 
26  // FairTutorialDet4MilleWriter(Int_t verbose);
27 
30 
32  virtual InitStatus Init();
33 
35  virtual InitStatus ReInit();
36 
38  virtual void Exec(Option_t* opt);
39 
41  virtual void SetParContainers();
42 
44  virtual void Finish();
45 
46  void SetWriteAscii(Bool_t val) { fWriteAscii = val; }
47 
48  void SetVersion(Int_t val) { fVersion = val; }
49 
50  void SetFileName(TString val) { fFileName = val; }
51 
52  private:
53  void ExecVersion1(Option_t* opt);
54  void StraightLineShiftX();
55  void StraightLineShiftXY();
56 
57  Bool_t IsGoodEvent();
58 
60  TClonesArray* fTracks;
61 
63  TClonesArray* fHits;
64 
65  Mille* fMille;
66 
67  Bool_t fWriteAscii;
68 
69  Int_t fVersion;
70 
71  TString fFileName;
72 
74  // TClonesArray* <OutputDataLevel>;
75 
78 
79  ClassDef(FairTutorialDet4MilleWriter, 1);
80 };
81 
82 #endif
InitStatus
Definition: FairTask.h:33
Definition: Mille.h:36