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::DUNE35tonOpDetResponse opdet::DUNEOpDetResponse opdet::DUNEOpDetResponseInterface opdet::MicrobooneOpDetResponse opdet::ProtoDUNEOpDetResponse

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 27 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 100 of file OpDetResponseInterface.h.

101  {
102  return doDetected(OpChannel, Phot, newOpChannel);
103  }
Index OpChannel(Index detNum, Index channel)
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 106 of file OpDetResponseInterface.h.

107  {
108  int newOpChannel;
109  return doDetected(OpChannel, Phot, newOpChannel);
110  }
Index OpChannel(Index detNum, Index channel)
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 113 of file OpDetResponseInterface.h.

114  {
115  return doDetectedLite(OpChannel, newOpChannel);
116  }
Index OpChannel(Index detNum, Index channel)
virtual bool doDetectedLite(int OpChannel, int &newOpChannel) const =0
bool opdet::OpDetResponseInterface::detectedLite ( int  OpChannel) const
inlinevirtual

Definition at line 119 of file OpDetResponseInterface.h.

120  {
121  int newOpChannel;
122  return doDetectedLite(OpChannel, newOpChannel);
123  }
Index OpChannel(Index detNum, Index channel)
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

Reimplemented in opdet::ProtoDUNEOpDetResponse, opdet::DUNEOpDetResponse, and opdet::DUNE35tonOpDetResponse.

Definition at line 75 of file OpDetResponseInterface.h.

76  {
77  // By default return the number of detector channels
79  return geom->NOpChannels();
80  }
unsigned int NOpChannels() const
Number of electronics channels for all the optical detectors.
int opdet::OpDetResponseInterface::doReadoutToGeoChannel ( int  readoutChannel) const
inlineprivatevirtual

Definition at line 89 of file OpDetResponseInterface.h.

90  {
91  // Pass this call off to the geometry service
93  return geom->OpDetFromOpChannel(readoutChannel);
94  }
unsigned int OpDetFromOpChannel(int opChannel) const
Convert unique channel to detector number.
virtual void opdet::OpDetResponseInterface::doReconfigure ( fhicl::ParameterSet const &  p)
privatepure virtual
int opdet::OpDetResponseInterface::NOpChannels ( ) const
inlinevirtual

Definition at line 69 of file OpDetResponseInterface.h.

70  {
71  return doNOpChannels();
72  }
int opdet::OpDetResponseInterface::readoutToGeoChannel ( int  readoutChannel) const
inlinevirtual

Definition at line 83 of file OpDetResponseInterface.h.

84  {
85  return doReadoutToGeoChannel(readoutChannel);
86  }
virtual int doReadoutToGeoChannel(int readoutChannel) const
void opdet::OpDetResponseInterface::reconfigure ( fhicl::ParameterSet const &  p)
inlinevirtual

Definition at line 60 of file OpDetResponseInterface.h.

61  {
63  }
virtual void doReconfigure(fhicl::ParameterSet const &p)=0
p
Definition: test.py:223
float opdet::OpDetResponseInterface::wavelength ( double  energy) const
inlinevirtual

Definition at line 126 of file OpDetResponseInterface.h.

127  {
128  return (2.0*3.142)*0.000197/energy;
129  }

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