List of all members | Public Member Functions | Private Attributes
TabulatedTankSimulatorNS::DetectorResponse Class Reference

#include <DetectorResponse.h>

Public Member Functions

 DetectorResponse (bool flag=false, int DetectorType=0, bool UseEnlargeArea=false)
 
double GetAreaPerp (int itype, double theta, double ke)
 
double GetAreaProj (int itype, double theta, double ke)
 
int GetBin (double lkeo, double to, int itype, int *ibins, bool &flag)
 
PeCDF GetCDF (int itype, int ibin)
 
int GetiGrid ()
 
const char * GetParticleName (int itype)
 
double GetPe (double ke, double theta, int itype, double f)
 
double GetRelativeTrack (double theta)
 
double GetSignalBin (double f, PeCDF &fPeCDF)
 
double GetUnitPerPE ()
 
double Interpolate (double *x, double *y, double f)
 
bool IsHit (double ke, double theta, int itype, double f)
 
bool ReadCDFFile (std::vector< PeCDF > *fCDFs, int size)
 
bool ReadG4File (PeCDF &pCDF, PeCDF &pCDF_dec)
 
void SetUpCDFs (PeCDF *pCDF)
 
bool WriteCDFFile (std::vector< PeCDF > *fCDFs)
 
 ~DetectorResponse ()
 

Private Attributes

std::string fDataDir
 
int fDetectorType
 
std::vector< PeCDFfElectronCDFs
 
std::vector< PeCDFfGammaCDFs
 
std::vector< PeCDFfMichelElectronCDFs
 
std::vector< PeCDFfMichelElectronLowCDFs
 
std::vector< PeCDFfMuonCDFs
 
std::vector< PeCDFfMuonLowCDFs
 
bool fUseEnlargeArea
 
int iGrid
 
int NPECUT
 
double UnitPerPE
 

Detailed Description

Definition at line 74 of file DetectorResponse.h.

Constructor & Destructor Documentation

DetectorResponse::DetectorResponse ( bool  flag = false,
int  DetectorType = 0,
bool  UseEnlargeArea = false 
)
TabulatedTankSimulatorNS::DetectorResponse::~DetectorResponse ( )
inline

Definition at line 90 of file DetectorResponse.h.

Member Function Documentation

double DetectorResponse::GetAreaPerp ( int  itype,
double  theta,
double  ke 
)

Definition at line 166 of file DetectorResponse.cc.

double DetectorResponse::GetAreaProj ( int  itype,
double  theta,
double  ke 
)
int DetectorResponse::GetBin ( double  lkeo,
double  to,
int  itype,
int *  ibins,
bool &  flag 
)
PeCDF DetectorResponse::GetCDF ( int  itype,
int  ibin 
)
int TabulatedTankSimulatorNS::DetectorResponse::GetiGrid ( )
inline

Definition at line 96 of file DetectorResponse.h.

References iGrid.

const char * DetectorResponse::GetParticleName ( int  itype)
double DetectorResponse::GetPe ( double  ke,
double  theta,
int  itype,
double  f 
)
double DetectorResponse::GetRelativeTrack ( double  theta)

Definition at line 172 of file DetectorResponse.cc.

References UnivRecNS::tankh, and UnivRecNS::tankr.

double DetectorResponse::GetSignalBin ( double  f,
PeCDF fPeCDF 
)
double TabulatedTankSimulatorNS::DetectorResponse::GetUnitPerPE ( )
inline

Definition at line 92 of file DetectorResponse.h.

References UnitPerPE.

double DetectorResponse::Interpolate ( double *  x,
double *  y,
double  f 
)

Definition at line 838 of file DetectorResponse.cc.

bool DetectorResponse::IsHit ( double  ke,
double  theta,
int  itype,
double  f 
)
bool DetectorResponse::ReadCDFFile ( std::vector< PeCDF > *  fCDFs,
int  size 
)

Definition at line 725 of file DetectorResponse.cc.

References UNDEF.

bool DetectorResponse::ReadG4File ( PeCDF pCDF,
PeCDF pCDF_dec 
)
void DetectorResponse::SetUpCDFs ( PeCDF pCDF)
bool DetectorResponse::WriteCDFFile ( std::vector< PeCDF > *  fCDFs)

Definition at line 795 of file DetectorResponse.cc.

Member Data Documentation

std::string TabulatedTankSimulatorNS::DetectorResponse::fDataDir
private

Definition at line 83 of file DetectorResponse.h.

int TabulatedTankSimulatorNS::DetectorResponse::fDetectorType
private

Definition at line 84 of file DetectorResponse.h.

std::vector<PeCDF> TabulatedTankSimulatorNS::DetectorResponse::fElectronCDFs
private

Definition at line 81 of file DetectorResponse.h.

std::vector<PeCDF> TabulatedTankSimulatorNS::DetectorResponse::fGammaCDFs
private

Definition at line 81 of file DetectorResponse.h.

std::vector<PeCDF> TabulatedTankSimulatorNS::DetectorResponse::fMichelElectronCDFs
private

Definition at line 81 of file DetectorResponse.h.

std::vector<PeCDF> TabulatedTankSimulatorNS::DetectorResponse::fMichelElectronLowCDFs
private

Definition at line 81 of file DetectorResponse.h.

std::vector<PeCDF> TabulatedTankSimulatorNS::DetectorResponse::fMuonCDFs
private

Definition at line 81 of file DetectorResponse.h.

std::vector<PeCDF> TabulatedTankSimulatorNS::DetectorResponse::fMuonLowCDFs
private

Definition at line 81 of file DetectorResponse.h.

bool TabulatedTankSimulatorNS::DetectorResponse::fUseEnlargeArea
private

Definition at line 86 of file DetectorResponse.h.

int TabulatedTankSimulatorNS::DetectorResponse::iGrid
private

Definition at line 85 of file DetectorResponse.h.

Referenced by GetiGrid().

int TabulatedTankSimulatorNS::DetectorResponse::NPECUT
private

Definition at line 79 of file DetectorResponse.h.

double TabulatedTankSimulatorNS::DetectorResponse::UnitPerPE
private

Definition at line 78 of file DetectorResponse.h.

Referenced by GetUnitPerPE().


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

, generated on Tue Sep 26 2023.