DUNEOpDetResponse.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file DUNEOpDetResponse.h
3 //
4 // \brief service containing information about the response of optical detectors in DUNE
5 //
6 // \author ahimmel@phy.duke.edu
7 //
8 ////////////////////////////////////////////////////////////////////////
9 
10 #ifndef DUNE_OPDET_RESPONSE_H
11 #define DUNE_OPDET_RESPONSE_H
12 
13 // LArSoft includes
17 
18 
19 
20 namespace opdet
21 {
23  public:
24 
26  ~DUNEOpDetResponse() throw();
27 
28  // virtual bool detectedLite(int OpDet, int &newOpChannel, int& hardwareChannel) const;
29  //bool DUNEOpDetResponse::detectedLite(int OpDet, int &newOpChannel, int& hardwareChannel) const
30 
31  bool detectedLiteWithChannel(int OpDet, int &newOpChannel, int& hardwareChannel) const
32  {
33  return doDetectedLiteWithChannel( OpDet, newOpChannel, hardwareChannel);
34  }
35 
36 
37 
38  private:
39 
40  virtual void doReconfigure(fhicl::ParameterSet const& p);
41 
42  virtual int doNOpChannels() const;
43  virtual bool doDetected(int OpDet, const sim::OnePhoton& Phot, int &newOpChannel) const;
44  virtual bool doDetectedLite(int OpDet, int &newOpChannel) const;
45  //bool DUNEOpDetResponse::doDetectedLite(int OpDet, int &newOpChannel, int &hardwareChannel) const
46  bool doDetectedLiteWithChannel(int OpDet, int &newOpChannel, int& hardwareChannel) const;
47 
48  float fQE; // Quantum efficiency of tube
49 
50  float fWavelengthCutLow; // Sensitive wavelength range
52 
53  bool fLightGuideAttenuation; // Flag to turn on position-dependent sensitivity
54  double lambdaShort;
55  double lambdaLong;
56  double fracShort;
57  double fracLong;
58 
59 
61  bool fFullSimChannelConvert; // Flag to conver detector->electronics channels in full optical sim
62  bool fFastSimChannelConvert; // Flag to conver detector->electronics channels in fast optical sim
63 
64  int fLongAxis; // 0 = x, 1 = y, 2 = z
65 
66  }; // class DUNEOpDetResponse
67 
68 
69 } //namespace opdet
70 
71 
73 
74 #endif //OPDET_RESPONSE_DUNE_H
std::string string
Definition: nybbler.cc:12
DECLARE_ART_SERVICE_INTERFACE_IMPL(MySharedService, art::test::MyServiceInterface, SHARED) DEFINE_ART_SERVICE_INTERFACE_IMPL(MySharedService
All information of a photon entering the sensitive optical detector volume.
Definition: SimPhotons.h:64
bool doDetectedLiteWithChannel(int OpDet, int &newOpChannel, int &hardwareChannel) const
virtual bool doDetected(int OpDet, const sim::OnePhoton &Phot, int &newOpChannel) const
Simulation objects for optical detectors.
virtual void doReconfigure(fhicl::ParameterSet const &p)
bool detectedLiteWithChannel(int OpDet, int &newOpChannel, int &hardwareChannel) const
p
Definition: test.py:223
DUNEOpDetResponse(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
virtual bool doDetectedLite(int OpDet, int &newOpChannel) const