PandaRoot
BSEmcBwEndcapTimebasedWaveforms.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 // Author List:
15 // Phil Strother Original author
16 // Dima Melnichuk - adaption for PANDA
17 // Philippp Mahlberg - integrtion in timebased simulation concept
18 // Guang Zhao - implementation for bwec
19 //----------------------------------------------------------------------
20 
21 //#pragma once
22 #ifndef BSEMCBWENDCAPTIMEBASEDWAVEFORMS_HH
23 #define BSEMCBWENDCAPTIMEBASEDWAVEFORMS_HH
24 
26 
28 
38  public:
39  // Constructors
40  BSEmcBwEndcapTimebasedWaveforms(const std::string &t_detectorname = "BwEndcap", Bool_t t_storewaves = kFALSE);
41  // Destructor
43 
44  void SingleAPDMode(Bool_t t_mode = kTRUE) { fSingleAPDMode = t_mode; }
45  void NoiseMode(Int_t t_mode = 1) { fNoiseMode = t_mode; } // 1 for reduced ifft, 0 for full ifft
46  void RunTestMode(Double_t t_energy = 0.01)
47  {
48  fTestMode = kTRUE;
49  fTestEnergy = t_energy;
50  }
51 
52  protected:
53  virtual void SetupSimulator() /*override*/;
54 
55  private:
56  // don't allow copying (-Weffc++)
58  BSEmcBwEndcapTimebasedWaveforms &operator=(const BSEmcBwEndcapTimebasedWaveforms &); // no implementation
59 
60  private:
61  Bool_t fSingleAPDMode{kFALSE};
62  Int_t fNoiseMode{1};
63  Bool_t fTestMode{kFALSE};
64  Double_t fTestEnergy{0};
65 
67 };
68 
69 #endif /*BSEMCBWENDCAPTIMEBASEDWAVEFORMS_HH*/
BSEmcBwEndcapTimebasedWaveforms(const std::string &t_detectorname="BwEndcap", Bool_t t_storewaves=kFALSE)
parameter set of Emc digitisation
ClassDef(BSEmcMCDepositToTimebasedWaveforms, 2)
Taks to create waveforms from hits.
Taks to create waveforms from deposits.