PandaRoot
PndSciTHitProducerIdeal.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 // ----- PndSciTHitProducerIdeal header file -----
15 // ----- Created by Alicia Sanchez -----
16 // ----- modified by D. Steinschaden -----
17 // ----- last update 04.2015 -----
18 // -------------------------------------------------------------------------
19 
29 #ifndef PNDSCITHITPRODUCERIDEAL_H
30 #define PNDSCITHITPRODUCERIDEAL_H
31 
32 #include <PndPersistencyTask.h>
33 #include "PndSciTPoint.h"
34 #include "PndGeoHandling.h"
35 #include "PndGeoSciTPar.h"
36 
37 #include "FairMCEventHeader.h"
38 #include "FairGeoVector.h"
39 #include "FairGeoTransform.h"
40 
41 #include "TVector3.h"
42 #include "TGeoMatrix.h"
43 #include "TRandom.h"
44 #include <string>
45 
46 class TClonesArray;
47 
49  public:
52  PndSciTHitProducerIdeal(Double_t dt);
53 
56 
58  virtual void SetParContainers();
59  virtual InitStatus Init();
60 
62  virtual void Exec(Option_t *opt);
63  void smear(Double_t &time, Double_t &dt);
64  void SetPersistence(Bool_t persistence) { SetPersistency(persistence); }
65 
66  private:
67  TString fInBranchName;
68 
70  TClonesArray *fPointArray;
71 
73  TClonesArray *fHitArray;
74 
75  PndGeoSciTPar *fGeoPar;
76 
77  PndGeoHandling *fGeoH; // For converting sensor ID (shortID) into the Full volume path
78 
79  Double_t fdt, fdt2;
80 
81  void Register();
82 
83  void Reset();
84 
85  void ProduceHits();
86 
87  ClassDef(PndSciTHitProducerIdeal, 2);
88 };
89 
90 #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)