15 #include "StringUtils.h"
17 #include "MessageMgr.h"
32 double GetNativePOTD()
const;
33 double GetPOTD()
const;
34 float GetPOT()
const {
return fPOT;}
35 float GetNativePOT()
const {
return fPOTnative;}
36 float GetNativePOTPower()
const {
return fPOTnative_pow;}
37 float GetPOTPower()
const {
return fPOTpower;}
38 float GetPOTScaling()
const {
return fPOTscaling;}
39 TString GetPOTLabel()
const {
return fPOTlabel;}
40 TString GetNativePOTLabel()
const {
return fPOTNativeLabel;}
45 void SetPOT(
float POT,
float Power=20);
57 TString fPOTNativeLabel;
59 inline void fBuildPOTNames();
64 inline double TSPOTMgr::GetPOTD()
const
67 double P = fPOT*TMath::Power(10,fPOTpower);
73 inline double TSPOTMgr::GetNativePOTD()
const
76 double P = fPOTnative*TMath::Power(10,fPOTnative_pow);
81 inline void TSPOTMgr::Init()
98 if(POT <= 0 || Power<=0 ){
99 MSG::ERROR(__FILE__,
"::",__FUNCTION__,
" Invalid inputs ");
100 MSG::ERROR(
"POT: ",POT,
"e^",Power);
110 fPOTnative_pow = fPOTpower;
118 inline void TSPOTMgr::Restore(){
125 inline void TSPOTMgr::SetPOT(
float POT,
float Power)
129 if(POT <= 0 || Power <= 0 ){
130 MSG::ERROR(__FILE__,
"::",__FUNCTION__,
" Invalid inputs");
136 fPOTscaling = (POT/fPOT)*TMath::Power(10,Power-fPOTpower);
147 inline void TSPOTMgr::fBuildPOTNames()
151 fPOTNativeLabel =
"Native POT: ";
152 fPOTNativeLabel += StringUtils::ToString(fPOTnative);
153 fPOTNativeLabel +=
"x10^{"; fPOTNativeLabel+=fPOTpower; fPOTNativeLabel+=
"}";
157 fPOTlabel += StringUtils::ToString(fPOT);
158 fPOTlabel +=
"x10^{"; fPOTlabel+=fPOTpower; fPOTlabel+=
"}";
void SetNativePOT(float POT, float Power=20)
Definition: TSPOTMgr.h:90
Definition: TSPOTMgr.h:26