PandaRoot
PndDskFLGHitProducerIdeal.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 // ----- PndDskFLGHitProducer header file -----
15 // ----- Created 23/04/10 by Yutie Liang -----
16 // ----- -----
17 // ----- -----
18 // -------------------------------------------------------------------------
19 
27 #ifndef PNDDSKHITPRODUCERIDEAL_H
28 #define PNDDSKHITPRODUCERIDEAL_H
29 
30 #include <PndPersistencyTask.h>
31 #include "TClonesArray.h"
32 #include "PndMCTrack.h"
33 #include "PndDskFLGHit.h"
34 #include "PndGeoDskFLG.h"
35 #include "PndStack.h"
36 #include "FairBaseParSet.h"
37 #include "TString.h"
38 #include <string>
39 
40 #include "TRandom.h"
41 
42 #ifndef ROOT_TParticlePDG
43 #include "TParticlePDG.h"
44 #endif
45 #ifndef ROOT_TDatabasePDG
46 #include "TDatabasePDG.h"
47 #endif
48 
50 
51  public:
54 
56  PndDskFLGHitProducerIdeal(Int_t verbose);
57 
60 
62  // virtual void SetParContainers();
63  virtual InitStatus Init();
64 
66  virtual void Exec(Option_t *option);
67 
69  virtual void Finish();
70 
75  PndDskFLGHit *AddHit(Int_t trackID, Int_t detectorID, TVector3 position_store, TVector3 momentum_store, Double_t time, Double_t angIn, Double_t thetaC_store,
76  TVector3 Cherenkov_photon, Int_t light_guide, Int_t pixel);
77 
78  protected:
79  private:
80  Int_t fDetectorID;
81  TVector3 fPosHit;
82  TVector3 fDPosHit;
83  Double_t fThetaC, fErrThetaC;
84  Int_t fRefIndex;
85 
86  Int_t f_light_guide;
87  Int_t f_pixel;
88 
89  TClonesArray *fDskParticleArray; // DSK MC points in the bars
90  TClonesArray *fHitArray; // DSK hits
91  // TObjArray *fVolumeArray;
92  // TClonesArray* fListStack; // Tracks
93 
94  // PndGeoDskPar *fPar;
95 
96  PndGeoDskFLG *fGeo;
97 
99  void SetDefaultParameters();
100 
102  Int_t fVerbose;
103 
104  Int_t nevents;
105 
106  ClassDef(PndDskFLGHitProducerIdeal, 1)
107 };
108 
109 #endif
virtual InitStatus Init()
virtual void Exec(Option_t *option)
PndDskFLGHit * AddHit(Int_t trackID, Int_t detectorID, TVector3 position_store, TVector3 momentum_store, Double_t time, Double_t angIn, Double_t thetaC_store, TVector3 Cherenkov_photon, Int_t light_guide, Int_t pixel)
virtual ~PndDskFLGHitProducerIdeal()