PandaRoot
PndSciTHitProducerIdeal.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndSciTHitProducerIdeal header file -----
3 // ----- Created by Alicia Sanchez -----
4 // ----- modified by D. Steinschaden -----
5 // ----- last update 04.2015 -----
6 // -------------------------------------------------------------------------
7 
17 #ifndef PNDSCITHITPRODUCERIDEAL_H
18 #define PNDSCITHITPRODUCERIDEAL_H
19 
20 #include <PndPersistencyTask.h>
21 #include "PndSciTPoint.h"
22 #include "PndGeoHandling.h"
23 #include "PndGeoSciTPar.h"
24 
25 #include "FairMCEventHeader.h"
26 #include "FairGeoVector.h"
27 #include "FairGeoTransform.h"
28 
29 #include "TVector3.h"
30 #include "TGeoMatrix.h"
31 #include "TRandom.h"
32 #include <string>
33 
34 class TClonesArray;
35 
37  public:
40  PndSciTHitProducerIdeal(Double_t dt);
41 
44 
46  virtual void SetParContainers();
47  virtual InitStatus Init();
48 
50  virtual void Exec(Option_t *opt);
51  void smear(Double_t &time, Double_t &dt);
52  void SetPersistence(Bool_t persistence) { SetPersistency(persistence); }
53 
54  private:
55  TString fInBranchName;
56 
58  TClonesArray *fPointArray;
59 
61  TClonesArray *fHitArray;
62 
63  PndGeoSciTPar *fGeoPar;
64 
65  PndGeoHandling *fGeoH; // For converting sensor ID (shortID) into the Full volume path
66 
67  Double_t fdt, fdt2;
68 
69  void Register();
70 
71  void Reset();
72 
73  void ProduceHits();
74 
75  ClassDef(PndSciTHitProducerIdeal, 2);
76 };
77 
78 #endif
virtual void SetParContainers()
virtual void Exec(Option_t *opt)
void SetPersistency(Bool_t val=kTRUE)
Class to access the naming information of the MVD.
void SetPersistence(Bool_t persistence)
virtual InitStatus Init()
void smear(Double_t &time, Double_t &dt)