PandaRoot
PndMdtDigitization.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 #ifndef PNDMDTDIGITIZATION_H
14 #define PNDMDTDIGITIZATION_H 1
15 
16 #include <PndPersistencyTask.h>
17 #include "TVector3.h"
18 
19 class TClonesArray;
20 class PndMdtIGeometry;
21 class PndMdtDigi;
22 class PndMdtWaveform;
23 
25 
26  public:
28  PndMdtDigitization(Int_t verbose = 0, Bool_t store = kTRUE);
31 
33  virtual InitStatus Init();
34 
36  virtual void Exec(Option_t *opt);
37 
38  void SetStorageOfData(Bool_t) { ; } // val //[R.K.03/2017] unused variable(s)
39  void FinishTask();
40 
41  void RunTimeBased() { fTimeOrderedDigi = kTRUE; }
42 
43  private:
44  PndMdtDigi *AddDigiBox(Int_t detID, TVector3 &pos, Int_t);
45  PndMdtDigi *AddDigiStrip(Int_t detID, TVector3 &pos, Int_t);
46  PndMdtDigi *AddDigi(Int_t detID, TVector3 &pos, Int_t evtNo);
47  Bool_t Digitize(PndMdtWaveform *theWf, Double_t &time, Double_t &amp, Bool_t isWire);
48  void exec_t();
49  void exec_e();
50 
51  Double_t fWireNoiseSigma;
52  Double_t fStripNoiseSigma;
53  Double_t fSamplingInterval;
54 
55  PndMdtIGeometry *fGeoIF;
56 
58  TClonesArray *fWaveformArray;
59 
61  TClonesArray *fDigiBoxArray;
62  TClonesArray *fDigiStripArray;
63  TClonesArray *fDigiArray;
64 
65  Long_t HowManyWireWf;
66  Long_t HowManyWireDigi;
67  Long_t HowManyStripWf;
68  Long_t HowManyStripDigi;
69 
70  Bool_t fTimeOrderedDigi;
71 
72  ClassDef(PndMdtDigitization, 1);
73 };
74 
75 #endif
void SetStorageOfData(Bool_t)
virtual InitStatus Init()
virtual void Exec(Option_t *opt)
PndMdtDigitization(Int_t verbose=0, Bool_t store=kTRUE)