PandaRoot
BSEmcShashlykNoiseAdder.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 //#pragma once
14 #ifndef BSEMCSHASHLYKNOISEADDER_H_
15 #define BSEMCSHASHLYKNOISEADDER_H_
16 
18 #include "TString.h"
19 #include "TRandom3.h"
20 
21 class BSEmcWaveform;
22 
29  public:
32  BSEmcShashlykNoiseAdder(Double_t sigma, Int_t seed);
33 
34  virtual void Modify(BSEmcWaveform *wf);
35 
36  private:
37  TRandom3 *fRandom;
38  Double_t fSigma;
39  void get_rnd_noise(BSEmcWaveform *wf, Double_t noise);
40 
42 };
43 
44 #endif /*BSEMCSHASHLYKNOISEADDER_H_*/
represents a simulated waveform in an emc crystal
Definition: BSEmcWaveform.h:75
interface for waveform modifiers
ClassDef(BSEmcAbsWaveformModifier, 1)
virtual void Modify(BSEmcWaveform *wf)
waveform modifier to add noise to waveform