PandaRoot
PndEmcShashlykNoiseAdder.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 PNDEMCSHASHLYKNOISEADDER_H_
15 #define PNDEMCSHASHLYKNOISEADDER_H_
16 
18 #include "TString.h"
19 #include "TRandom3.h"
20 
21 class PndEmcWaveform;
22 
29 {
30  public:
33  PndEmcShashlykNoiseAdder(Double_t sigma, Int_t seed);
34 
35  virtual void Modify(PndEmcWaveform* wf);
36 
37  private:
38  TRandom3* fRandom;
39  Double_t fSigma;
40  void get_rnd_noise(PndEmcWaveform* wf, Double_t noise);
41 
43 };
44 
45 #endif
interface for waveform modifiers
virtual void Modify(PndEmcWaveform *wf)
ClassDef(PndEmcAbsWaveformModifier, 1)
represents a simulated waveform in an emc crystal
waveform modifier to add noise to waveform