All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SBNDNoNoiseService.h
Go to the documentation of this file.
1 // SBNDNoNoiseService.h
2 // Andrew Scarff (University of Sheffield)
3 // July 2019
4 
5 // Based upon SPhaseChannelNoiseService.h created by Jingbo Wang (UC Davis) for ProtoDUNE.
6 
7 // This file is to be used if you don't want any noise added to the channels.
8 // fcl file: sbndcode/DetectorSim/Services/noiseservices_sbnd.fcl
9 //
10 
11 #ifndef SBNDNoNoiseService_H
12 #define SBNDNoNoiseService_H
13 
15 #include "art/Framework/Services/Registry/ServiceDeclarationMacros.h"
16 
17 #include <vector>
18 #include <iostream>
19 #include <sstream>
20 
21 class TH1;
22 namespace CLHEP {
23 class HepRandomEngine;
24 }
25 
27 
28 public:
29 
30  // Ctor.
31  SBNDNoNoiseService(fhicl::ParameterSet const& pset);
32 
33  // Ctor.
34  SBNDNoNoiseService(fhicl::ParameterSet const& pset, art::ActivityRegistry&);
35 
36  // Dtor.
38 
39  // Add noise to a signal array.
40  int addNoise(detinfo::DetectorClocksData const& clockData, Channel chan, AdcSignalVector& sigs) const;
41 
42  // Print the configuration.
43  std::ostream& print(std::ostream& out =std::cout, std::string prefix ="") const;
44 
45 private:
46 
47 
48 };
49 
50 DECLARE_ART_SERVICE_INTERFACE_IMPL(SBNDNoNoiseService, ChannelNoiseService, LEGACY)
51 
52 #endif
SBNDNoNoiseService(fhicl::ParameterSet const &pset)
int addNoise(detinfo::DetectorClocksData const &clockData, Channel chan, AdcSignalVector &sigs) const
std::ostream & print(std::ostream &out=std::cout, std::string prefix="") const
std::vector< AdcSignal > AdcSignalVector
Contains all timing reference information for the detector.
BEGIN_PROLOG could also be cout