FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairFastSimExample.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 FAIRFASTSIMEXAMPLE
9 #define FAIRFASTSIMEXAMPLE
10 
11 #include "FairFastSimDetector.h" // for FairFastSimDetector
12 
13 #include <Rtypes.h> // for Int_t, Double32_t, Double_t, etc
14 #include <TLorentzVector.h> // for TLorentzVector
15 #include <TVector3.h> // for TVector3
16 
18 class TClonesArray;
19 class FairModule;
20 
22 {
23  public:
25  FairFastSimExample(const char* Name);
26 
29 
31  virtual ~FairFastSimExample();
32 
34  virtual void Initialize();
35 
37  virtual void Register();
38 
40  virtual TClonesArray* GetCollection(Int_t iColl) const;
41 
43  virtual void Reset();
44 
46  void ConstructGeometry();
47 
52  AddHit(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t time, Double_t length, Double_t eLoss);
53 
57  virtual void EndOfEvent();
58 
59  virtual Bool_t IsSensitive(const std::string& name);
60 
61  virtual FairModule* CloneModule() const;
62 
63  protected:
64  virtual void FastSimProcessParticle();
65 
66  private:
70  Int_t fTrackID;
71  Int_t fVolumeID;
72  TLorentzVector fPos;
73  TLorentzVector fMom;
74  Double32_t fTime;
75  Double32_t fLength;
76  Double32_t fELoss;
77 
79  TClonesArray* fPointsArray;
80 
82  FairFastSimExample& operator=(const FairFastSimExample&);
83 
84  ClassDef(FairFastSimExample, 2);
85 };
86 
87 #endif // FAIRTUTORIALDET_H
virtual void FastSimProcessParticle()
virtual Bool_t IsSensitive(const std::string &name)
virtual TClonesArray * GetCollection(Int_t iColl) const
FairTutorialDet1Point * AddHit(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t time, Double_t length, Double_t eLoss)
virtual FairModule * CloneModule() const
virtual void Initialize()