Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:55:20

0001 //==========================================================================
0002 //  AIDA Detector description implementation 
0003 //--------------------------------------------------------------------------
0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 // All rights reserved.
0006 //
0007 // For the licensing terms see $DD4hepINSTALL/LICENSE.
0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0009 //
0010 // Author     : M.Frank
0011 //
0012 //==========================================================================
0013 #ifndef DDDIGI_NOISE_DIGIEXPONENTIALNOISE_H
0014 #define DDDIGI_NOISE_DIGIEXPONENTIALNOISE_H
0015 
0016 /// Framework include files
0017 #include <DDDigi/DigiSignalProcessor.h>
0018 
0019 /// Namespace for the AIDA detector description toolkit
0020 namespace dd4hep {
0021 
0022   /// Namespace for the Digitization part of the AIDA detector description toolkit
0023   namespace digi {
0024 
0025     /// Generic noise source with a exponential distribution with decay to 1/e in tau
0026     /**
0027      *  \author  M.Frank
0028      *  \version 1.0
0029      *  \ingroup DD4HEP_DIGITIZATION
0030      */
0031     class DigiExponentialNoise : public DigiSignalProcessor  {
0032     protected:
0033       /// Property: Exponential decay time
0034       double    m_tau     = 1.0;
0035       
0036     protected:
0037       /// Define standard assignments and constructors
0038       DDDIGI_DEFINE_ACTION_CONSTRUCTORS(DigiExponentialNoise);
0039 
0040     public:
0041       /// Standard constructor
0042       DigiExponentialNoise(const DigiKernel& kernel, const std::string& nam);
0043       /// Default destructor
0044       virtual ~DigiExponentialNoise();
0045       /// Callback to read event exponentialnoise
0046       virtual double operator()(DigiCellContext& context)  const  override;
0047     };
0048   }    // End namespace digi
0049 }      // End namespace dd4hep
0050 #endif // DDDIGI_NOISE_DIGIEXPONENTIALNOISE_H