PDFPMTCharge Class Reference

Ratpac-two: RAT::PDFPMTCharge Class Reference
Ratpac-two
RAT::PDFPMTCharge Class Reference

Implementation of PMTCharge using database defined charge PDFs. More...

#include <PDFPMTCharge.hh>

Inheritance diagram for RAT::PDFPMTCharge:
RAT::PMTCharge

Public Member Functions

 PDFPMTCharge (std::string pmt_model="")
 
virtual double PickCharge () const
 
virtual double PDF (double q) const
 

Protected Attributes

std::vector< double > fCharge
 
std::vector< double > fChargeProb
 
std::vector< double > fChargeProbCumu
 

Detailed Description

Implementation of PMTCharge using database defined charge PDFs.

Simulates PMT time spread and cable delay from DB defined PDFs.

Author
Benjamin Land benla.nosp@m.nd10.nosp@m.0@ber.nosp@m.kele.nosp@m.y.edu

REVISION HISTORY:
2015-01-07 : B Land - Added doxygen header block

Enabled by setting MC.pmt_charge_model to the index of a table named PMTCHARGE. This table contains the charge PDF (which will be integrated and normalized) with charge values in the field charge and corresponding probabilities in the field charge_prob. A linear interpolation is done between discrete charge values, so the charge vector must be ordered by ascending charge.

Author
Benjamin Land benla.nosp@m.nd10.nosp@m.0@ber.nosp@m.kele.nosp@m.y.edu

REVISION HISTORY:
2015-01-07 : B Land - Added doxygen header block

Automatically chooses the right table for a given PMT model, or uses default table if no model is given.

Member Function Documentation

◆ PDF()

double RAT::PDFPMTCharge::PDF ( double  q) const
virtual

Value of charge PDF at charge q (not normalized)

Value of charge PDF at charge q

Implements RAT::PMTCharge.

◆ PickCharge()

double RAT::PDFPMTCharge::PickCharge ( ) const
virtual

Returns charge for one photoelectron.

Implements RAT::PMTCharge.


The documentation for this class was generated from the following files:
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/daq/include/RAT/PDFPMTCharge.hh
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/daq/src/PDFPMTCharge.cc