All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | List of all members
opdet::OpDetResponseInterface Class Referenceabstract

#include <OpDetResponseInterface.h>

Inheritance diagram for opdet::OpDetResponseInterface:
opdet::DefaultOpDetResponse opdet::MicrobooneOpDetResponse

Public Member Functions

virtual ~OpDetResponseInterface ()=default
 
virtual void reconfigure (fhicl::ParameterSet const &p)
 
virtual int NOpChannels () const
 
virtual int readoutToGeoChannel (int readoutChannel) const
 
virtual bool detected (int OpChannel, const sim::OnePhoton &Phot, int &newOpChannel) const
 
virtual bool detected (int OpChannel, const sim::OnePhoton &Phot) const
 
virtual bool detectedLite (int OpChannel, int &newOpChannel) const
 
virtual bool detectedLite (int OpChannel) const
 
virtual float wavelength (double energy) const
 

Private Member Functions

virtual void doReconfigure (fhicl::ParameterSet const &p)=0
 
virtual int doNOpChannels () const
 
virtual int doReadoutToGeoChannel (int readoutChannel) const
 
virtual bool doDetected (int OpChannel, const sim::OnePhoton &Phot, int &newOpChannel) const =0
 
virtual bool doDetectedLite (int OpChannel, int &newOpChannel) const =0
 

Detailed Description

Definition at line 24 of file OpDetResponseInterface.h.

Constructor & Destructor Documentation

virtual opdet::OpDetResponseInterface::~OpDetResponseInterface ( )
virtualdefault

Member Function Documentation

bool opdet::OpDetResponseInterface::detected ( int  OpChannel,
const sim::OnePhoton Phot,
int &  newOpChannel 
) const
inlinevirtual

Definition at line 97 of file OpDetResponseInterface.h.

98  {
99  return doDetected(OpChannel, Phot, newOpChannel);
100  }
virtual bool doDetected(int OpChannel, const sim::OnePhoton &Phot, int &newOpChannel) const =0
bool opdet::OpDetResponseInterface::detected ( int  OpChannel,
const sim::OnePhoton Phot 
) const
inlinevirtual

Definition at line 103 of file OpDetResponseInterface.h.

104  {
105  int newOpChannel;
106  return doDetected(OpChannel, Phot, newOpChannel);
107  }
virtual bool doDetected(int OpChannel, const sim::OnePhoton &Phot, int &newOpChannel) const =0
bool opdet::OpDetResponseInterface::detectedLite ( int  OpChannel,
int &  newOpChannel 
) const
inlinevirtual

Definition at line 110 of file OpDetResponseInterface.h.

111  {
112  return doDetectedLite(OpChannel, newOpChannel);
113  }
virtual bool doDetectedLite(int OpChannel, int &newOpChannel) const =0
bool opdet::OpDetResponseInterface::detectedLite ( int  OpChannel) const
inlinevirtual

Definition at line 116 of file OpDetResponseInterface.h.

117  {
118  int newOpChannel;
119  return doDetectedLite(OpChannel, newOpChannel);
120  }
virtual bool doDetectedLite(int OpChannel, int &newOpChannel) const =0
virtual bool opdet::OpDetResponseInterface::doDetected ( int  OpChannel,
const sim::OnePhoton Phot,
int &  newOpChannel 
) const
privatepure virtual
virtual bool opdet::OpDetResponseInterface::doDetectedLite ( int  OpChannel,
int &  newOpChannel 
) const
privatepure virtual
int opdet::OpDetResponseInterface::doNOpChannels ( ) const
inlineprivatevirtual

Definition at line 72 of file OpDetResponseInterface.h.

73  {
74  // By default return the number of detector channels
75  art::ServiceHandle<geo::Geometry const> geom;
76  return geom->NOpChannels();
77  }
int opdet::OpDetResponseInterface::doReadoutToGeoChannel ( int  readoutChannel) const
inlineprivatevirtual

Definition at line 86 of file OpDetResponseInterface.h.

87  {
88  // Pass this call off to the geometry service
89  art::ServiceHandle<geo::Geometry const> geom;
90  return geom->OpDetFromOpChannel(readoutChannel);
91  }
virtual void opdet::OpDetResponseInterface::doReconfigure ( fhicl::ParameterSet const &  p)
privatepure virtual
int opdet::OpDetResponseInterface::NOpChannels ( ) const
inlinevirtual

Definition at line 66 of file OpDetResponseInterface.h.

67  {
68  return doNOpChannels();
69  }
int opdet::OpDetResponseInterface::readoutToGeoChannel ( int  readoutChannel) const
inlinevirtual

Definition at line 80 of file OpDetResponseInterface.h.

81  {
82  return doReadoutToGeoChannel(readoutChannel);
83  }
virtual int doReadoutToGeoChannel(int readoutChannel) const
void opdet::OpDetResponseInterface::reconfigure ( fhicl::ParameterSet const &  p)
inlinevirtual

Definition at line 57 of file OpDetResponseInterface.h.

58  {
60  }
pdgs p
Definition: selectors.fcl:22
virtual void doReconfigure(fhicl::ParameterSet const &p)=0
float opdet::OpDetResponseInterface::wavelength ( double  energy) const
inlinevirtual

Definition at line 123 of file OpDetResponseInterface.h.

124  {
125  return (2.0*3.142)*0.000197/energy;
126  }

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