GenericSimChannelExtractService.h
Go to the documentation of this file.
1 // GenericSimChannelExtractService.h
2 
3 // David Adams
4 // December 2015
5 //
6 // Interface for a service that extracts charge from
7 // a SimChannel object and assigns it to ticks.
8 //
9 // The charge is distributed over two arrays: sig and xsig.
10 // The first is for normal collection/induction. The second
11 // is for charge that is collected on the wire even if it is
12 // an induction plane.
13 
14 #ifndef GenericSimChannelExtractService_H
15 #define GenericSimChannelExtractService_H
16 
17 #include <vector>
23 
24 namespace sim {
25 class SimChannel;
26 }
27 
29 
30 public:
31 
33 
34  int extract(detinfo::DetectorClocksData const& clockData,
35  const sim::SimChannel* psc, AdcSignalVector& sig) const;
36 
37  std::ostream& print(std::ostream& out =std::cout, std::string prefix ="") const;
38 
39 private:
40 
43  unsigned int m_ntick;
44 
45 };
46 
48 
49 #endif
Energy deposited on a readout channel by simulated tracks.
Definition: SimChannel.h:140
std::string string
Definition: nybbler.cc:12
DECLARE_ART_SERVICE_INTERFACE_IMPL(MySharedService, art::test::MyServiceInterface, SHARED) DEFINE_ART_SERVICE_INTERFACE_IMPL(MySharedService
art::ServiceHandle< util::LArFFT > m_pfft
Service to provide microboone-specific signal shaping for simulation (convolution) and reconstruction...
Code to link reconstructed objects back to the MC truth information.
Contains all timing reference information for the detector.
art::ServiceHandle< util::SignalShapingServiceDUNE > m_psss
std::vector< AdcSignal > AdcSignalVector
Definition: AdcTypes.h:22