#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< PeCDF > | fElectronCDFs |
std::vector< PeCDF > | fGammaCDFs |
std::vector< PeCDF > | fMichelElectronCDFs |
std::vector< PeCDF > | fMichelElectronLowCDFs |
std::vector< PeCDF > | fMuonCDFs |
std::vector< PeCDF > | fMuonLowCDFs |
bool | fUseEnlargeArea |
int | iGrid |
int | NPECUT |
double | UnitPerPE |
Definition at line 74 of file DetectorResponse.h.
DetectorResponse::DetectorResponse | ( | bool | flag = false , |
int | DetectorType = 0 , |
||
bool | UseEnlargeArea = false |
||
) |
Definition at line 185 of file DetectorResponse.cc.
References exit, TabulatedTankSimulatorNS::PeCDF::itype, TabulatedTankSimulatorNS::PeCDF::lke, TabulatedTankSimulatorNS::lKE_Electron, TabulatedTankSimulatorNS::lKE_Gamma, TabulatedTankSimulatorNS::lKE_Muon, TabulatedTankSimulatorNS::lKE_MuonLow, TabulatedTankSimulatorNS::PeCDF::mean, TabulatedTankSimulatorNS::PeCDF::median, TabulatedTankSimulatorNS::PeCDF::nentries, TabulatedTankSimulatorNS::PeCDF::nentriesCut, TabulatedTankSimulatorNS::nKE_Electron, TabulatedTankSimulatorNS::nKE_Gamma, TabulatedTankSimulatorNS::nKE_Muon, TabulatedTankSimulatorNS::nKE_MuonLow, TabulatedTankSimulatorNS::nTo_Grid, NTYPES, ok(), TabulatedTankSimulatorNS::PeCDF::PeCut, TabulatedTankSimulatorNS::PeCDF::probCut, TabulatedTankSimulatorNS::PeCDF::probDecay, TabulatedTankSimulatorNS::PeCDF::probHit, TabulatedTankSimulatorNS::PeCDF::probZero, TabulatedTankSimulatorNS::PeCDF::rms, TabulatedTankSimulatorNS::PeCDF::theta, TabulatedTankSimulatorNS::PeCDF::theta_deg, TabulatedTankSimulatorNS::Theta_Grid, UNDEF, TabulatedTankSimulatorNS::UnitPerPE_md, TabulatedTankSimulatorNS::UnitPerPE_scin, and TabulatedTankSimulatorNS::UnitPerPE_wcd.
|
inline |
Definition at line 90 of file DetectorResponse.h.
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 | ||
) |
Definition at line 145 of file DetectorResponse.cc.
References TabulatedTankSimulatorNS::lKE_MuonLow, UnivRecNS::MDlength, UnivRecNS::MDwidth, un2::Mean(), TabulatedTankSimulatorNS::nKE_MuonLow, UnivRecNS::nMD, UnivRecNS::scinheight, UnivRecNS::scinlength, UnivRecNS::scinwidth, UnivRecNS::tankh, and UnivRecNS::tankr.
int DetectorResponse::GetBin | ( | double | lkeo, |
double | to, | ||
int | itype, | ||
int * | ibins, | ||
bool & | flag | ||
) |
Definition at line 330 of file DetectorResponse.cc.
References DEBUG_RESP, TabulatedTankSimulatorNS::lKE_Electron, TabulatedTankSimulatorNS::lKE_Gamma, TabulatedTankSimulatorNS::lKE_Muon, TabulatedTankSimulatorNS::lKE_MuonLow, TabulatedTankSimulatorNS::nKE_Electron, TabulatedTankSimulatorNS::nKE_Gamma, TabulatedTankSimulatorNS::nKE_Muon, TabulatedTankSimulatorNS::nKE_MuonLow, TabulatedTankSimulatorNS::nTo_Grid, and TabulatedTankSimulatorNS::Theta_Grid.
PeCDF DetectorResponse::GetCDF | ( | int | itype, |
int | ibin | ||
) |
Definition at line 458 of file DetectorResponse.cc.
References TabulatedTankSimulatorNS::PeCDF::cdf, TabulatedTankSimulatorNS::PeCDF::itype, TabulatedTankSimulatorNS::PeCDF::lke, TabulatedTankSimulatorNS::PeCDF::mean, TabulatedTankSimulatorNS::PeCDF::nentries, TabulatedTankSimulatorNS::PeCDF::probCut, TabulatedTankSimulatorNS::PeCDF::probDecay, TabulatedTankSimulatorNS::PeCDF::probZero, TabulatedTankSimulatorNS::PeCDF::rms, and TabulatedTankSimulatorNS::PeCDF::theta_deg.
|
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 | ||
) |
Definition at line 966 of file DetectorResponse.cc.
References un2::Interpolate(), TabulatedTankSimulatorNS::lKE_MuonLow, TabulatedTankSimulatorNS::nKE_Electron, TabulatedTankSimulatorNS::nKE_Gamma, TabulatedTankSimulatorNS::nKE_Muon, TabulatedTankSimulatorNS::nKE_MuonLow, TabulatedTankSimulatorNS::nTo_Grid, std::pow(), and UNDEF.
Referenced by TabulatedTankSimulatorNS::TabulatedTankSimulator::SimulateStation().
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 | ||
) |
Definition at line 848 of file DetectorResponse.cc.
References TabulatedTankSimulatorNS::PeCDF::cdf, un2::Interpolate(), TabulatedTankSimulatorNS::PeCDF::mean, TabulatedTankSimulatorNS::PeCDF::PeCut, and UNDEF.
|
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 | ||
) |
Definition at line 894 of file DetectorResponse.cc.
References un2::Interpolate(), TabulatedTankSimulatorNS::nKE_Muon, and TabulatedTankSimulatorNS::nTo_Grid.
bool DetectorResponse::ReadCDFFile | ( | std::vector< PeCDF > * | fCDFs, |
int | size | ||
) |
Definition at line 725 of file DetectorResponse.cc.
References UNDEF.
Definition at line 510 of file DetectorResponse.cc.
References TabulatedTankSimulatorNS::PeCDF::itype, TabulatedTankSimulatorNS::PeCDF::lke, TabulatedTankSimulatorNS::MDAreaRatio, TabulatedTankSimulatorNS::MDlength, TabulatedTankSimulatorNS::MDwidth, TabulatedTankSimulatorNS::PeCDF::mean, TabulatedTankSimulatorNS::PeCDF::nentries, TabulatedTankSimulatorNS::PeCDF::nentriesCut, std::pow(), TabulatedTankSimulatorNS::PeCDF::prob, TabulatedTankSimulatorNS::PeCDF::probCut, TabulatedTankSimulatorNS::PeCDF::probDecay, TabulatedTankSimulatorNS::PeCDF::probHit, TabulatedTankSimulatorNS::PeCDF::probZero, TabulatedTankSimulatorNS::PeCDF::rms, sqrt(), TabulatedTankSimulatorNS::PeCDF::theta_deg, and UNDEF.
void DetectorResponse::SetUpCDFs | ( | PeCDF * | pCDF | ) |
Definition at line 658 of file DetectorResponse.cc.
References TabulatedTankSimulatorNS::PeCDF::cdf, TabulatedTankSimulatorNS::PeCDF::median, NCDFMAX, TabulatedTankSimulatorNS::PeCDF::nentries, TabulatedTankSimulatorNS::PeCDF::nentriesCut, TabulatedTankSimulatorNS::PeCDF::PeCut, TabulatedTankSimulatorNS::peordering(), TabulatedTankSimulatorNS::PeCDF::prob, and UNDEF.
bool DetectorResponse::WriteCDFFile | ( | std::vector< PeCDF > * | fCDFs | ) |
Definition at line 795 of file DetectorResponse.cc.
|
private |
Definition at line 83 of file DetectorResponse.h.
|
private |
Definition at line 84 of file DetectorResponse.h.
|
private |
Definition at line 81 of file DetectorResponse.h.
|
private |
Definition at line 81 of file DetectorResponse.h.
|
private |
Definition at line 81 of file DetectorResponse.h.
|
private |
Definition at line 81 of file DetectorResponse.h.
|
private |
Definition at line 81 of file DetectorResponse.h.
|
private |
Definition at line 81 of file DetectorResponse.h.
|
private |
Definition at line 86 of file DetectorResponse.h.
|
private |
Definition at line 85 of file DetectorResponse.h.
Referenced by GetiGrid().
|
private |
Definition at line 79 of file DetectorResponse.h.
|
private |
Definition at line 78 of file DetectorResponse.h.
Referenced by GetUnitPerPE().