PandaRoot
PndDrcHitProducerIdeal.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 // -------------------------------------------------------------------------
14 // ----- PndDrcHitProducer header file -----
15 // ----- Created 11/10/06 by Annalisa Cecchi -----
16 // ----- -----
17 // ----- -----
18 // -------------------------------------------------------------------------
19 
27 #ifndef PNDDRCHITPRODUCERIDEAL_H
28 #define PNDDRCHITPRODUCERIDEAL_H
29 
30 #include <PndPersistencyTask.h>
31 #include "TClonesArray.h"
32 #include "PndMCTrack.h"
33 #include "PndDrcHit.h"
34 #include "PndStack.h"
35 #include "FairBaseParSet.h"
36 #include "PndGeoDrcPar.h"
37 #include "TString.h"
38 #include <string>
39 
40 #ifndef ROOT_TParticlePDG
41 #include "TParticlePDG.h"
42 #endif
43 #ifndef ROOT_TDatabasePDG
44 #include "TDatabasePDG.h"
45 #endif
46 
48 
49  public:
52 
54  PndDrcHitProducerIdeal(Int_t verbose);
55 
57  virtual ~PndDrcHitProducerIdeal();
58 
60  // virtual void SetParContainers();
61  virtual InitStatus Init();
62 
64  virtual void Exec(Option_t *option);
65 
67  virtual void Finish();
68 
73  PndDrcHit *AddHit(Int_t detID, Int_t sensorID, TVector3 posHit, TVector3 dPosHit, Double_t thetaC, Double_t errThetaC, Int_t index);
74 
75  private:
76  Int_t fDetectorID;
77  TVector3 fPosHit;
78  TVector3 fDPosHit;
79  Double_t fThetaC, fErrThetaC;
80  Int_t fRefIndex;
81 
82  TClonesArray *fBarPointArray; // DRC MC points in the bars
83  TClonesArray *fHitArray; // DRC hits
84 
85  PndGeoDrcPar *fPar;
86  PndGeoDrc *fGeo; // Basic geometry data of barrel DRC.
87 
88  void SetDefaultParameters();
89 
90  Int_t nevents;
91 
92  ClassDef(PndDrcHitProducerIdeal, 1)
93 };
94 
95 #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()