Public Member Functions | Private Attributes | List of all members
WireCell::Gen::ImpactResponse Class Reference

#include <PlaneImpactResponse.h>

Inheritance diagram for WireCell::Gen::ImpactResponse:
WireCell::IImpactResponse WireCell::IComponent< IImpactResponse > WireCell::Interface

Public Member Functions

 ImpactResponse (int impact, const Waveform::realseq_t &wf, int waveform_pad, const Waveform::realseq_t &long_wf, int long_waveform_pad)
 
const Waveform::compseq_tspectrum ()
 Frequency-domain spectrum of response. More...
 
const Waveform::realseq_twaveform () const
 Time-domain waveform of the response. More...
 
int waveform_pad () const
 
const Waveform::compseq_tlong_aux_spectrum ()
 
const Waveform::realseq_tlong_aux_waveform () const
 
int long_aux_waveform_pad () const
 
int impact () const
 Corresponding impact number. More...
 
- Public Member Functions inherited from WireCell::IImpactResponse
virtual ~IImpactResponse ()
 
- Public Member Functions inherited from WireCell::IComponent< IImpactResponse >
virtual ~IComponent ()
 
- Public Member Functions inherited from WireCell::Interface
virtual ~Interface ()
 

Private Attributes

int m_impact
 
Waveform::compseq_t m_spectrum
 
Waveform::realseq_t m_waveform
 
int m_waveform_pad
 
Waveform::compseq_t m_long_spectrum
 
Waveform::realseq_t m_long_waveform
 
int m_long_waveform_pad
 

Additional Inherited Members

- Public Types inherited from WireCell::IComponent< IImpactResponse >
typedef std::shared_ptr< IImpactResponsepointer
 Access subclass facet by pointer. More...
 
typedef std::vector< pointervector
 Vector of shared pointers. More...
 
- Public Types inherited from WireCell::Interface
typedef std::shared_ptr< Interfacepointer
 

Detailed Description

The information about detector response at a particular impact position (discrete position along the pitch direction of a plane on which a response function is defined). Note, different physical positions may share the same ImpactResponse.

Definition at line 20 of file PlaneImpactResponse.h.

Constructor & Destructor Documentation

WireCell::Gen::ImpactResponse::ImpactResponse ( int  impact,
const Waveform::realseq_t wf,
int  waveform_pad,
const Waveform::realseq_t long_wf,
int  long_waveform_pad 
)
inline

Member Function Documentation

int WireCell::Gen::ImpactResponse::impact ( ) const
inlinevirtual

Corresponding impact number.

Implements WireCell::IImpactResponse.

Definition at line 48 of file PlaneImpactResponse.h.

const Waveform::compseq_t & Gen::ImpactResponse::long_aux_spectrum ( )
virtual

Implements WireCell::IImpactResponse.

Definition at line 25 of file PlaneImpactResponse.cxx.

25  {
26  if (m_long_spectrum.size()!=0){
27  return m_long_spectrum;
28  }else{
30  return m_long_spectrum;
31  }
32 }
Waveform::compseq_t m_long_spectrum
compseq_t dft(realseq_t seq)
Definition: Waveform.cxx:141
Waveform::realseq_t m_long_waveform
const Waveform::realseq_t& WireCell::Gen::ImpactResponse::long_aux_waveform ( ) const
inlinevirtual

Implements WireCell::IImpactResponse.

Definition at line 42 of file PlaneImpactResponse.h.

42 {return m_long_waveform;};
Waveform::realseq_t m_long_waveform
int WireCell::Gen::ImpactResponse::long_aux_waveform_pad ( ) const
inlinevirtual

Implements WireCell::IImpactResponse.

Definition at line 43 of file PlaneImpactResponse.h.

const Waveform::compseq_t & Gen::ImpactResponse::spectrum ( )
virtual

Frequency-domain spectrum of response.

Implements WireCell::IImpactResponse.

Definition at line 16 of file PlaneImpactResponse.cxx.

16  {
17  if (m_spectrum.size()!=0){
18  return m_spectrum;
19  }else{
21  return m_spectrum;
22  }
23 }
compseq_t dft(realseq_t seq)
Definition: Waveform.cxx:141
const Waveform::realseq_t& WireCell::Gen::ImpactResponse::waveform ( ) const
inlinevirtual

Time-domain waveform of the response.

Implements WireCell::IImpactResponse.

Definition at line 38 of file PlaneImpactResponse.h.

38 {return m_waveform;};
int WireCell::Gen::ImpactResponse::waveform_pad ( ) const
inlinevirtual

Implements WireCell::IImpactResponse.

Definition at line 39 of file PlaneImpactResponse.h.

Member Data Documentation

int WireCell::Gen::ImpactResponse::m_impact
private

Definition at line 21 of file PlaneImpactResponse.h.

Waveform::compseq_t WireCell::Gen::ImpactResponse::m_long_spectrum
private

Definition at line 26 of file PlaneImpactResponse.h.

Waveform::realseq_t WireCell::Gen::ImpactResponse::m_long_waveform
private

Definition at line 27 of file PlaneImpactResponse.h.

int WireCell::Gen::ImpactResponse::m_long_waveform_pad
private

Definition at line 28 of file PlaneImpactResponse.h.

Waveform::compseq_t WireCell::Gen::ImpactResponse::m_spectrum
private

Definition at line 22 of file PlaneImpactResponse.h.

Waveform::realseq_t WireCell::Gen::ImpactResponse::m_waveform
private

Definition at line 23 of file PlaneImpactResponse.h.

int WireCell::Gen::ImpactResponse::m_waveform_pad
private

Definition at line 24 of file PlaneImpactResponse.h.


The documentation for this class was generated from the following files: