PandaRoot
PndDrcHitProducerIdeal.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndDrcHitProducer header file -----
3 // ----- Created 11/10/06 by Annalisa Cecchi -----
4 // ----- -----
5 // ----- -----
6 // -------------------------------------------------------------------------
7 
15 #ifndef PNDDRCHITPRODUCERIDEAL_H
16 #define PNDDRCHITPRODUCERIDEAL_H
17 
18 #include <PndPersistencyTask.h>
19 #include "TClonesArray.h"
20 #include "PndMCTrack.h"
21 #include "PndDrcHit.h"
22 #include "PndStack.h"
23 #include "FairBaseParSet.h"
24 #include "PndGeoDrcPar.h"
25 #include "TString.h"
26 #include <string>
27 
28 #ifndef ROOT_TParticlePDG
29 #include "TParticlePDG.h"
30 #endif
31 #ifndef ROOT_TDatabasePDG
32 #include "TDatabasePDG.h"
33 #endif
34 
36 
37  public:
40 
42  PndDrcHitProducerIdeal(Int_t verbose);
43 
45  virtual ~PndDrcHitProducerIdeal();
46 
48  // virtual void SetParContainers();
49  virtual InitStatus Init();
50 
52  virtual void Exec(Option_t *option);
53 
55  virtual void Finish();
56 
61  PndDrcHit *AddHit(Int_t detID, Int_t sensorID, TVector3 posHit, TVector3 dPosHit, Double_t thetaC, Double_t errThetaC, Int_t index);
62 
63  private:
64  Int_t fDetectorID;
65  TVector3 fPosHit;
66  TVector3 fDPosHit;
67  Double_t fThetaC, fErrThetaC;
68  Int_t fRefIndex;
69 
70  TClonesArray *fBarPointArray; // DRC MC points in the bars
71  TClonesArray *fHitArray; // DRC hits
72 
73  PndGeoDrcPar *fPar;
74  PndGeoDrc *fGeo; // Basic geometry data of barrel DRC.
75 
76  void SetDefaultParameters();
77 
78  Int_t nevents;
79 
80  ClassDef(PndDrcHitProducerIdeal, 1)
81 };
82 
83 #endif
virtual ~PndDrcHitProducerIdeal()
virtual void Exec(Option_t *option)
virtual InitStatus Init()
PndDrcHit * AddHit(Int_t detID, Int_t sensorID, TVector3 posHit, TVector3 dPosHit, Double_t thetaC, Double_t errThetaC, Int_t index)
virtual void Finish()