FairRoot/PandaRoot
PndSdsHitProducerIdeal.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmStsHitProducerIdel header file -----
3 // ----- Created 10/01/06 by V. Friese -----
4 // -------------------------------------------------------------------------
5 
6 
18 #ifndef PNDSDSHITPRODUCERIDEAL_H
19 #define PNDSDSHITPRODUCERIDEAL_H
20 
21 #include "PndSdsTask.h"
22 //#include "PndSdsGeoPar.h"
23 #include "PndDetectorList.h"
24 
25 #include "TVector3.h"
26 #include "TRandom.h"
27 
28 class TClonesArray;
29 
31 {
32  public:
33 
36 
38  PndSdsTask(),
39  fPointArray(other.fPointArray),
40  fHitArray(other.fHitArray)
41  {};
43  PndSdsHitProducerIdeal(const char* name);
44 
46  virtual ~PndSdsHitProducerIdeal();
47 
48 
50  virtual void SetParContainers();
51  virtual InitStatus Init();
52 
58  virtual void SetBranchNames()=0;
59 
60 
62  virtual void Exec(Option_t* opt);
63 
64  void SetPersistance(Bool_t p = kTRUE) {SetPersistency(p);};
65 
67  {
68  if(this != &other) // protect against invalid self-assignment
69  {
71  fHitArray=other.fHitArray;
72  }
73  return *this;
74  }
75 protected:
76 
78  TClonesArray* fPointArray;
79 
81  TClonesArray* fHitArray;
82 
83  //PndSdsGeoPar* fGeoPar;
84 
85  void Register();
86 
87  void Reset();
88 
89  void ProduceHits();
90 
92 
93 };
94 
95 #endif
ClassDef(PndSdsHitProducerIdeal, 3)
PndSdsHitProducerIdeal & operator=(PndSdsHitProducerIdeal &other)
void SetPersistency(Bool_t val=kTRUE)
Double_t p
Definition: anasim.C:58
PndSdsHitProducerIdeal(PndSdsHitProducerIdeal &other)
void SetPersistance(Bool_t p=kTRUE)
TString name
virtual void SetBranchNames()=0
virtual void Exec(Option_t *opt)