BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
TofCaliSvc Class Reference

#include <TofCaliSvc.h>

+ Inheritance diagram for TofCaliSvc:

Public Member Functions

 TofCaliSvc (const std::string &name, ISvcLocator *svcloc)
 
 ~TofCaliSvc ()
 
virtual StatusCode queryInterface (const InterfaceID &riid, void **ppvUnknown)
 
virtual StatusCode initialize ()
 
virtual StatusCode finalize ()
 
void handle (const Incident &)
 
StatusCode chooseConstants (int run, int number)
 
BTofCalBTof (unsigned int id) const
 
BTofCommonCalBTofCommon () const
 
ETofCalETof (unsigned int id) const
 
EtfCalEtfTof (unsigned int id) const
 
TofInfoCalTofInfo () const
 
const double BTDelay1 (unsigned int id)
 
const double BTDelay2 (unsigned int id)
 
const double ETDelay (unsigned int id)
 
const double BTCorr1 (double ADC, double zHit, unsigned int id)
 
const double BTCorr2 (double ADC, double zHit, unsigned int id)
 
const double BTCorrOffset1 (double zHit, unsigned int id, double t0)
 
const double BTCorrOffset2 (double zHit, unsigned int id, double t0)
 
const double TOffset ()
 
const double BTime1 (double ADC, double TDC, double zHit, unsigned int id, double t0)
 
const double BTime2 (double ADC, double TDC, double zHit, unsigned int id, double t0)
 
const double ETime (double ADC, double TDC, double rHit, unsigned int id)
 
const double EtfTime (double ADC1, double ADC2, double TDC1, double TDC2, unsigned int id, unsigned int strip, double t0)
 
const double EtfTime1 (double ADC, double TDC, double zHit, unsigned int id, unsigned int strip, double t0)
 
const double EtfTime2 (double ADC, double TDC, double zHit, unsigned int id, unsigned int strip, double t0)
 
const double EtfTimeMC (double ADC1, double ADC2, double TDC1, double TDC2, unsigned int id, unsigned int strip, double t0)
 
const double EtfTimeMC1 (double ADC, double TDC, double zHit, unsigned int id, unsigned int strip, double t0)
 
const double EtfTimeMC2 (double ADC, double TDC, double zHit, unsigned int id, unsigned int strip, double t0)
 
const double EtfTime (double tleft, double tright)
 
const double EtfBunchP (int index)
 
const double BTimeCounter (double tleft, double tright, double z, unsigned int id)
 
const double BTimeCluster (double tlayer1, double tlayer2, double z1, double z2, unsigned int id1, unsigned int id2)
 
const double BSigma1 (double zHit, unsigned int id)
 
const double BSigma2 (double zHit, unsigned int id)
 
const double BSigmaCounter (double zHit, unsigned int id)
 
const double BSigmaCluster (double zHit1, double zHit2, unsigned int id1, unsigned int id2)
 
const double ESigma (double rHit, unsigned int id)
 
const double BPulseHeight1 (double ADC, double zHit, double sint, unsigned int id)
 
const double BPulseHeight2 (double ADC, double zHit, double sint, unsigned int id)
 
const double BPulseHeight (double ADC1, double ADC2, double zHit, double sint, unsigned int id)
 
const double BPh (double ADC1, double ADC2, double zHit, unsigned int id)
 
const double EPulseHeight (double ADC, double rHit, double cost, unsigned int id)
 
const double EPh (double ADC, double rHit, unsigned int id)
 
const double BVeff (unsigned int id)
 
const double BAtten (unsigned int id)
 
const double BGainForward (unsigned int id)
 
const double BGainBackward (unsigned int id)
 
const double getQ0 (unsigned int id)
 
const double EVeff (unsigned int id)
 
const double EAtten (unsigned int id)
 
const double EGain (unsigned int id)
 
const double EtfVeff (unsigned int id, unsigned int strip)
 
const double ZTDC (double tleft, double tright, unsigned int id)
 
const double ZTDC1 (double tright, unsigned int id, double z)
 
const double ZTDC2 (double tleft, unsigned int id, double z)
 
const double ZADC (double qleft, double qright, unsigned int id)
 
const double ZADC1 (double qright, unsigned int id, double z)
 
const double ZADC2 (double qleft, unsigned int id, double z)
 
const double EtfZTDC (double tleft, double tright, unsigned int id, unsigned int strip)
 
const int RunBegin ()
 
const int RunEnd ()
 
const int Version ()
 
const int QCorr ()
 
const int QElec ()
 
const int MisLable ()
 
const int BrEast (unsigned int No)
 
const int BrWest (unsigned int No)
 
const int Endcap (unsigned int No)
 
const int Etf (unsigned int No)
 
const int RunFrom ()
 
const int RunTo ()
 
const int EventFrom ()
 
const int EventTo ()
 
void Dump ()
 
 TofCaliSvc (const std::string &name, ISvcLocator *svcloc)
 
 ~TofCaliSvc ()
 
virtual StatusCode queryInterface (const InterfaceID &riid, void **ppvUnknown)
 
virtual StatusCode initialize ()
 
virtual StatusCode finalize ()
 
void handle (const Incident &)
 
StatusCode chooseConstants (int run, int number)
 
BTofCalBTof (unsigned int id) const
 
BTofCommonCalBTofCommon () const
 
ETofCalETof (unsigned int id) const
 
EtfCalEtfTof (unsigned int id) const
 
TofInfoCalTofInfo () const
 
const double BTDelay1 (unsigned int id)
 
const double BTDelay2 (unsigned int id)
 
const double ETDelay (unsigned int id)
 
const double BTCorr1 (double ADC, double zHit, unsigned int id)
 
const double BTCorr2 (double ADC, double zHit, unsigned int id)
 
const double BTCorrOffset1 (double zHit, unsigned int id, double t0)
 
const double BTCorrOffset2 (double zHit, unsigned int id, double t0)
 
const double TOffset ()
 
const double BTime1 (double ADC, double TDC, double zHit, unsigned int id, double t0)
 
const double BTime2 (double ADC, double TDC, double zHit, unsigned int id, double t0)
 
const double ETime (double ADC, double TDC, double rHit, unsigned int id)
 
const double EtfTime (double ADC1, double ADC2, double TDC1, double TDC2, unsigned int id, unsigned int strip, double t0)
 
const double EtfTime1 (double ADC, double TDC, double zHit, unsigned int id, unsigned int strip, double t0)
 
const double EtfTime2 (double ADC, double TDC, double zHit, unsigned int id, unsigned int strip, double t0)
 
const double EtfTimeMC (double ADC1, double ADC2, double TDC1, double TDC2, unsigned int id, unsigned int strip, double t0)
 
const double EtfTimeMC1 (double ADC, double TDC, double zHit, unsigned int id, unsigned int strip, double t0)
 
const double EtfTimeMC2 (double ADC, double TDC, double zHit, unsigned int id, unsigned int strip, double t0)
 
const double EtfTime (double tleft, double tright)
 
const double EtfBunchP (int index)
 
const double BTimeCounter (double tleft, double tright, double z, unsigned int id)
 
const double BTimeCluster (double tlayer1, double tlayer2, double z1, double z2, unsigned int id1, unsigned int id2)
 
const double BSigma1 (double zHit, unsigned int id)
 
const double BSigma2 (double zHit, unsigned int id)
 
const double BSigmaCounter (double zHit, unsigned int id)
 
const double BSigmaCluster (double zHit1, double zHit2, unsigned int id1, unsigned int id2)
 
const double ESigma (double rHit, unsigned int id)
 
const double BPulseHeight1 (double ADC, double zHit, double sint, unsigned int id)
 
const double BPulseHeight2 (double ADC, double zHit, double sint, unsigned int id)
 
const double BPulseHeight (double ADC1, double ADC2, double zHit, double sint, unsigned int id)
 
const double BPh (double ADC1, double ADC2, double zHit, unsigned int id)
 
const double EPulseHeight (double ADC, double rHit, double cost, unsigned int id)
 
const double EPh (double ADC, double rHit, unsigned int id)
 
const double BVeff (unsigned int id)
 
const double BAtten (unsigned int id)
 
const double BGainForward (unsigned int id)
 
const double BGainBackward (unsigned int id)
 
const double getQ0 (unsigned int id)
 
const double EVeff (unsigned int id)
 
const double EAtten (unsigned int id)
 
const double EGain (unsigned int id)
 
const double EtfVeff (unsigned int id, unsigned int strip)
 
const double ZTDC (double tleft, double tright, unsigned int id)
 
const double ZTDC1 (double tright, unsigned int id, double z)
 
const double ZTDC2 (double tleft, unsigned int id, double z)
 
const double ZADC (double qleft, double qright, unsigned int id)
 
const double ZADC1 (double qright, unsigned int id, double z)
 
const double ZADC2 (double qleft, unsigned int id, double z)
 
const double EtfZTDC (double tleft, double tright, unsigned int id, unsigned int strip)
 
const int RunBegin ()
 
const int RunEnd ()
 
const int Version ()
 
const int QCorr ()
 
const int QElec ()
 
const int MisLable ()
 
const int BrEast (unsigned int No)
 
const int BrWest (unsigned int No)
 
const int Endcap (unsigned int No)
 
const int Etf (unsigned int No)
 
const int RunFrom ()
 
const int RunTo ()
 
const int EventFrom ()
 
const int EventTo ()
 
void Dump ()
 
- Public Member Functions inherited from ITofCaliSvc
virtual StatusCode chooseConstants (int run, int event)=0
 
virtual BTofCalBTof (unsigned id) const =0
 
virtual BTofCommonCalBTofCommon () const =0
 
virtual ETofCalETof (unsigned id) const =0
 
virtual EtfCalEtfTof (unsigned id) const =0
 
virtual TofInfoCalTofInfo () const =0
 
virtual const double BTDelay1 (unsigned id)=0
 
virtual const double BTDelay2 (unsigned id)=0
 
virtual const double ETDelay (unsigned id)=0
 
virtual const double BTCorr1 (double ADC, double zHit, unsigned int id)=0
 
virtual const double BTCorr2 (double ADC, double zHit, unsigned int id)=0
 
virtual const double BTCorrOffset1 (double zHit, unsigned int id, double t0)=0
 
virtual const double BTCorrOffset2 (double zHit, unsigned int id, double t0)=0
 
virtual const double TOffset ()=0
 
virtual const double BTime1 (double ADC, double TDC, double zHit, unsigned id, double t0)=0
 
virtual const double BTime2 (double ADC, double TDC, double zHit, unsigned id, double t0)=0
 
virtual const double ETime (double ADC, double TDC, double rHit, unsigned id)=0
 
virtual const double EtfTime (double ADC1, double ADC2, double TDC1, double TDC2, unsigned int id, unsigned int strip, double t0)=0
 
virtual const double EtfTime1 (double ADC, double TDC, double zHit, unsigned id, unsigned strip, double t0)=0
 
virtual const double EtfTime2 (double ADC, double TDC, double zHit, unsigned id, unsigned strip, double t0)=0
 
virtual const double EtfTimeMC (double ADC1, double ADC2, double TDC1, double TDC2, unsigned int id, unsigned int strip, double t0)=0
 
virtual const double EtfTimeMC1 (double ADC, double TDC, double zHit, unsigned id, unsigned strip, double t0)=0
 
virtual const double EtfTimeMC2 (double ADC, double TDC, double zHit, unsigned id, unsigned strip, double t0)=0
 
virtual const double EtfTime (double tleft, double tright)=0
 
virtual const double EtfBunchP (int index)=0
 
virtual const double BTimeCounter (double tleft, double tright, double z, unsigned id)=0
 
virtual const double BTimeCluster (double tlayer1, double tlayer2, double z1, double z2, unsigned id1, unsigned int id2)=0
 
virtual const double BSigma1 (double zHit, unsigned id)=0
 
virtual const double BSigma2 (double zHit, unsigned id)=0
 
virtual const double BSigmaCounter (double zHit, unsigned id)=0
 
virtual const double BSigmaCluster (double zHit1, double zHit2, unsigned id1, unsigned id2)=0
 
virtual const double ESigma (double rHit, unsigned id)=0
 
virtual const double BPulseHeight1 (double ADC, double zHit, double sint, unsigned int id)=0
 
virtual const double BPulseHeight2 (double ADC, double zHit, double sint, unsigned int id)=0
 
virtual const double BPulseHeight (double ADC1, double ADC2, double zHit, double sint, unsigned int id)=0
 
virtual const double BPh (double ADC1, double ADC2, double zHit, unsigned int id)=0
 
virtual const double EPulseHeight (double ADC, double rHit, double cost, unsigned int id)=0
 
virtual const double EPh (double ADC, double rHit, unsigned int id)=0
 
virtual const double BVeff (unsigned id)=0
 
virtual const double BAtten (unsigned id)=0
 
virtual const double BGainForward (unsigned id)=0
 
virtual const double BGainBackward (unsigned id)=0
 
virtual const double getQ0 (unsigned id)=0
 
virtual const double EVeff (unsigned id)=0
 
virtual const double EAtten (unsigned id)=0
 
virtual const double EGain (unsigned id)=0
 
virtual const double EtfVeff (unsigned int id, unsigned int strip)=0
 
virtual const double ZTDC (double tleft, double tright, unsigned id)=0
 
virtual const double ZTDC1 (double tright, unsigned id, double z)=0
 
virtual const double ZTDC2 (double tleft, unsigned id, double z)=0
 
virtual const double ZADC (double qleft, double qright, unsigned id)=0
 
virtual const double ZADC1 (double qright, unsigned id, double z)=0
 
virtual const double ZADC2 (double qleft, unsigned id, double z)=0
 
virtual const double EtfZTDC (double tleft, double tright, unsigned int id, unsigned int strip)=0
 
virtual const int RunBegin ()=0
 
virtual const int RunEnd ()=0
 
virtual const int Version ()=0
 
virtual const int QCorr ()=0
 
virtual const int QElec ()=0
 
virtual const int MisLable ()=0
 
virtual const int BrEast (unsigned int No)=0
 
virtual const int BrWest (unsigned int No)=0
 
virtual const int Endcap (unsigned int No)=0
 
virtual const int Etf (unsigned int No)=0
 
virtual void Dump ()=0
 
virtual StatusCode chooseConstants (int run, int event)=0
 
virtual BTofCalBTof (unsigned id) const =0
 
virtual BTofCommonCalBTofCommon () const =0
 
virtual ETofCalETof (unsigned id) const =0
 
virtual EtfCalEtfTof (unsigned id) const =0
 
virtual TofInfoCalTofInfo () const =0
 
virtual const double BTDelay1 (unsigned id)=0
 
virtual const double BTDelay2 (unsigned id)=0
 
virtual const double ETDelay (unsigned id)=0
 
virtual const double BTCorr1 (double ADC, double zHit, unsigned int id)=0
 
virtual const double BTCorr2 (double ADC, double zHit, unsigned int id)=0
 
virtual const double BTCorrOffset1 (double zHit, unsigned int id, double t0)=0
 
virtual const double BTCorrOffset2 (double zHit, unsigned int id, double t0)=0
 
virtual const double TOffset ()=0
 
virtual const double BTime1 (double ADC, double TDC, double zHit, unsigned id, double t0)=0
 
virtual const double BTime2 (double ADC, double TDC, double zHit, unsigned id, double t0)=0
 
virtual const double ETime (double ADC, double TDC, double rHit, unsigned id)=0
 
virtual const double EtfTime (double ADC1, double ADC2, double TDC1, double TDC2, unsigned int id, unsigned int strip, double t0)=0
 
virtual const double EtfTime1 (double ADC, double TDC, double zHit, unsigned id, unsigned strip, double t0)=0
 
virtual const double EtfTime2 (double ADC, double TDC, double zHit, unsigned id, unsigned strip, double t0)=0
 
virtual const double EtfTimeMC (double ADC1, double ADC2, double TDC1, double TDC2, unsigned int id, unsigned int strip, double t0)=0
 
virtual const double EtfTimeMC1 (double ADC, double TDC, double zHit, unsigned id, unsigned strip, double t0)=0
 
virtual const double EtfTimeMC2 (double ADC, double TDC, double zHit, unsigned id, unsigned strip, double t0)=0
 
virtual const double EtfTime (double tleft, double tright)=0
 
virtual const double EtfBunchP (int index)=0
 
virtual const double BTimeCounter (double tleft, double tright, double z, unsigned id)=0
 
virtual const double BTimeCluster (double tlayer1, double tlayer2, double z1, double z2, unsigned id1, unsigned int id2)=0
 
virtual const double BSigma1 (double zHit, unsigned id)=0
 
virtual const double BSigma2 (double zHit, unsigned id)=0
 
virtual const double BSigmaCounter (double zHit, unsigned id)=0
 
virtual const double BSigmaCluster (double zHit1, double zHit2, unsigned id1, unsigned id2)=0
 
virtual const double ESigma (double rHit, unsigned id)=0
 
virtual const double BPulseHeight1 (double ADC, double zHit, double sint, unsigned int id)=0
 
virtual const double BPulseHeight2 (double ADC, double zHit, double sint, unsigned int id)=0
 
virtual const double BPulseHeight (double ADC1, double ADC2, double zHit, double sint, unsigned int id)=0
 
virtual const double BPh (double ADC1, double ADC2, double zHit, unsigned int id)=0
 
virtual const double EPulseHeight (double ADC, double rHit, double cost, unsigned int id)=0
 
virtual const double EPh (double ADC, double rHit, unsigned int id)=0
 
virtual const double BVeff (unsigned id)=0
 
virtual const double BAtten (unsigned id)=0
 
virtual const double BGainForward (unsigned id)=0
 
virtual const double BGainBackward (unsigned id)=0
 
virtual const double getQ0 (unsigned id)=0
 
virtual const double EVeff (unsigned id)=0
 
virtual const double EAtten (unsigned id)=0
 
virtual const double EGain (unsigned id)=0
 
virtual const double EtfVeff (unsigned int id, unsigned int strip)=0
 
virtual const double ZTDC (double tleft, double tright, unsigned id)=0
 
virtual const double ZTDC1 (double tright, unsigned id, double z)=0
 
virtual const double ZTDC2 (double tleft, unsigned id, double z)=0
 
virtual const double ZADC (double qleft, double qright, unsigned id)=0
 
virtual const double ZADC1 (double qright, unsigned id, double z)=0
 
virtual const double ZADC2 (double qleft, unsigned id, double z)=0
 
virtual const double EtfZTDC (double tleft, double tright, unsigned int id, unsigned int strip)=0
 
virtual const int RunBegin ()=0
 
virtual const int RunEnd ()=0
 
virtual const int Version ()=0
 
virtual const int QCorr ()=0
 
virtual const int QElec ()=0
 
virtual const int MisLable ()=0
 
virtual const int BrEast (unsigned int No)=0
 
virtual const int BrWest (unsigned int No)=0
 
virtual const int Endcap (unsigned int No)=0
 
virtual const int Etf (unsigned int No)=0
 
virtual void Dump ()=0
 

Additional Inherited Members

- Static Public Member Functions inherited from ITofCaliSvc
static const InterfaceID & interfaceID ()
 
static const InterfaceID & interfaceID ()
 

Detailed Description

Constructor & Destructor Documentation

◆ TofCaliSvc() [1/2]

TofCaliSvc::TofCaliSvc ( const std::string &  name,
ISvcLocator *  svcloc 
)

Definition at line 45 of file TofCaliSvc.cxx.

45 : Service(name, svcloc) {
46 declareProperty("Run",m_run=1);
47 m_sequence = 0;
48}

◆ ~TofCaliSvc() [1/2]

TofCaliSvc::~TofCaliSvc ( )

Definition at line 98 of file TofCaliSvc.cxx.

98 {
99 for(vector<BTofCal*>::iterator it1 = fBTofCal.begin(); it1 != fBTofCal.end(); it1++) { delete (*it1); }
100 fBTofCal.clear();
101 for(vector<ETofCal*>::iterator it2 = fETofCal.begin(); it2 != fETofCal.end(); it2++) { delete (*it2); }
102 fETofCal.clear();
103
104 if( fEtfCal.size()!=0 ) {
105 for(vector<EtfCal*>::iterator it5 = fEtfCal.begin(); it5 != fEtfCal.end(); it5++) { delete (*it5); }
106 fEtfCal.clear();
107 }
108 if( fEtfBunchCal.size()!=0 ) {
109 for(vector<EtfBunchCal*>::iterator it6 = fEtfBunchCal.begin(); it6 != fEtfBunchCal.end(); it6++) { delete (*it6); }
110 fEtfBunchCal.clear();
111 }
112 for(vector<BTofCommonCal*>::iterator it3 = fBTofCommonCal.begin(); it3 != fBTofCommonCal.end(); it3++) { delete (*it3); }
113 fBTofCommonCal.clear();
114 for(vector<TofInfoCal*>::iterator it4 = fTofInfoCal.begin(); it4 != fTofInfoCal.end(); it4++) { delete (*it4); }
115 fTofInfoCal.clear();
116 return;
117}

◆ TofCaliSvc() [2/2]

TofCaliSvc::TofCaliSvc ( const std::string &  name,
ISvcLocator *  svcloc 
)

◆ ~TofCaliSvc() [2/2]

TofCaliSvc::~TofCaliSvc ( )

Member Function Documentation

◆ BAtten() [1/2]

const double TofCaliSvc::BAtten ( unsigned int  id)

◆ BAtten() [2/2]

const double TofCaliSvc::BAtten ( unsigned int  id)

◆ BGainBackward() [1/2]

const double TofCaliSvc::BGainBackward ( unsigned int  id)

◆ BGainBackward() [2/2]

const double TofCaliSvc::BGainBackward ( unsigned int  id)

◆ BGainForward() [1/2]

const double TofCaliSvc::BGainForward ( unsigned int  id)

◆ BGainForward() [2/2]

const double TofCaliSvc::BGainForward ( unsigned int  id)

◆ BPh() [1/2]

const double TofCaliSvc::BPh ( double  ADC1,
double  ADC2,
double  zHit,
unsigned int  id 
)
virtual

Implements ITofCaliSvc.

Definition at line 895 of file TofCaliSvc.cxx.

895 {
896 double length = 230.0;
897 double Latten = fBTofCal[176*m_sequence+id]->getAtten(0);
898 double gainRatio = fBTofCal[176*m_sequence+id]->getAtten(1);
899 double q = ( ADC1*TMath::Exp((0.5*length-zHit)/Latten)+ADC2*TMath::Exp((0.5*length+zHit)/Latten) )/(1.0+TMath::Exp(gainRatio));
900 return q;
901}
****INTEGER imax DOUBLE PRECISION m_pi *DOUBLE PRECISION m_amfin DOUBLE PRECISION m_Chfin DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_sinw2 DOUBLE PRECISION m_GFermi DOUBLE PRECISION m_MfinMin DOUBLE PRECISION m_ta2 INTEGER m_out INTEGER m_KeyFSR INTEGER m_KeyQCD *COMMON c_Semalib $ !copy of input $ !CMS energy $ !beam mass $ !final mass $ !beam charge $ !final charge $ !smallest final mass $ !Z mass $ !Z width $ !EW mixing angle $ !Gmu Fermi $ alphaQED at q
Definition: KKsem.h:33

◆ BPh() [2/2]

const double TofCaliSvc::BPh ( double  ADC1,
double  ADC2,
double  zHit,
unsigned int  id 
)
virtual

Implements ITofCaliSvc.

◆ BPulseHeight() [1/2]

const double TofCaliSvc::BPulseHeight ( double  ADC1,
double  ADC2,
double  zHit,
double  sint,
unsigned int  id 
)
virtual

Implements ITofCaliSvc.

Definition at line 885 of file TofCaliSvc.cxx.

885 {
886 double length = 230.0;
887 double Latten = fBTofCal[176*m_sequence+id]->getAtten(0);
888 double gainRatio = fBTofCal[176*m_sequence+id]->getAtten(1);
889 double A2 = fBTofCal[176*m_sequence+id]->getAtten(2);
890 double q = ( ADC1*sint*TMath::Exp((0.5*length-zHit)/Latten)+ADC2*sint*TMath::Exp((0.5*length+zHit)/Latten) )/( A2*(1.0+TMath::Exp(gainRatio)) );
891 return q;
892}

◆ BPulseHeight() [2/2]

const double TofCaliSvc::BPulseHeight ( double  ADC1,
double  ADC2,
double  zHit,
double  sint,
unsigned int  id 
)
virtual

Implements ITofCaliSvc.

◆ BPulseHeight1() [1/2]

const double TofCaliSvc::BPulseHeight1 ( double  ADC,
double  zHit,
double  sint,
unsigned int  id 
)
virtual

Implements ITofCaliSvc.

Definition at line 867 of file TofCaliSvc.cxx.

867 {
868 double length = 230.0;
869 double A = 1.0;
870 double Latten = fBTofCal[176*m_sequence+id]->getAtten(0);
871 double q0 = ADC*sint*TMath::Exp((0.5*length-zHit)/Latten)/A;
872 return q0;
873}

◆ BPulseHeight1() [2/2]

const double TofCaliSvc::BPulseHeight1 ( double  ADC,
double  zHit,
double  sint,
unsigned int  id 
)
virtual

Implements ITofCaliSvc.

◆ BPulseHeight2() [1/2]

const double TofCaliSvc::BPulseHeight2 ( double  ADC,
double  zHit,
double  sint,
unsigned int  id 
)
virtual

Implements ITofCaliSvc.

Definition at line 876 of file TofCaliSvc.cxx.

876 {
877 double length = 230.0;
878 double A = 1.0;
879 double Latten = fBTofCal[176*m_sequence+id]->getAtten(0);
880 double q0 = ADC*sint*TMath::Exp((0.5*length+zHit)/Latten)/A;
881 return q0;
882}

◆ BPulseHeight2() [2/2]

const double TofCaliSvc::BPulseHeight2 ( double  ADC,
double  zHit,
double  sint,
unsigned int  id 
)
virtual

Implements ITofCaliSvc.

◆ BrEast() [1/2]

const int TofCaliSvc::BrEast ( unsigned int  No)
virtual

Implements ITofCaliSvc.

Definition at line 1080 of file TofCaliSvc.cxx.

1080 {
1081 return fTofInfoCal[m_sequence]->getBrEast(im);
1082}

◆ BrEast() [2/2]

const int TofCaliSvc::BrEast ( unsigned int  No)
virtual

Implements ITofCaliSvc.

◆ BrWest() [1/2]

const int TofCaliSvc::BrWest ( unsigned int  No)
virtual

Implements ITofCaliSvc.

Definition at line 1084 of file TofCaliSvc.cxx.

1084 {
1085 return fTofInfoCal[m_sequence]->getBrWest(im);
1086}

◆ BrWest() [2/2]

const int TofCaliSvc::BrWest ( unsigned int  No)
virtual

Implements ITofCaliSvc.

◆ BSigma1() [1/2]

const double TofCaliSvc::BSigma1 ( double  zHit,
unsigned int  id 
)

◆ BSigma1() [2/2]

const double TofCaliSvc::BSigma1 ( double  zHit,
unsigned int  id 
)

◆ BSigma2() [1/2]

const double TofCaliSvc::BSigma2 ( double  zHit,
unsigned int  id 
)

◆ BSigma2() [2/2]

const double TofCaliSvc::BSigma2 ( double  zHit,
unsigned int  id 
)

◆ BSigmaCluster() [1/2]

const double TofCaliSvc::BSigmaCluster ( double  zHit1,
double  zHit2,
unsigned int  id1,
unsigned int  id2 
)

◆ BSigmaCluster() [2/2]

const double TofCaliSvc::BSigmaCluster ( double  zHit1,
double  zHit2,
unsigned int  id1,
unsigned int  id2 
)

◆ BSigmaCounter() [1/2]

const double TofCaliSvc::BSigmaCounter ( double  zHit,
unsigned int  id 
)

◆ BSigmaCounter() [2/2]

const double TofCaliSvc::BSigmaCounter ( double  zHit,
unsigned int  id 
)

◆ BTCorr1() [1/2]

const double TofCaliSvc::BTCorr1 ( double  ADC,
double  zHit,
unsigned int  id 
)
virtual

Implements ITofCaliSvc.

◆ BTCorr1() [2/2]

const double TofCaliSvc::BTCorr1 ( double  ADC,
double  zHit,
unsigned int  id 
)
virtual

Implements ITofCaliSvc.

◆ BTCorr2() [1/2]

const double TofCaliSvc::BTCorr2 ( double  ADC,
double  zHit,
unsigned int  id 
)
virtual

Implements ITofCaliSvc.

◆ BTCorr2() [2/2]

const double TofCaliSvc::BTCorr2 ( double  ADC,
double  zHit,
unsigned int  id 
)
virtual

Implements ITofCaliSvc.

◆ BTCorrOffset1() [1/2]

const double TofCaliSvc::BTCorrOffset1 ( double  zHit,
unsigned int  id,
double  t0 
)
virtual

Implements ITofCaliSvc.

◆ BTCorrOffset1() [2/2]

const double TofCaliSvc::BTCorrOffset1 ( double  zHit,
unsigned int  id,
double  t0 
)
virtual

Implements ITofCaliSvc.

◆ BTCorrOffset2() [1/2]

const double TofCaliSvc::BTCorrOffset2 ( double  zHit,
unsigned int  id,
double  t0 
)
virtual

Implements ITofCaliSvc.

◆ BTCorrOffset2() [2/2]

const double TofCaliSvc::BTCorrOffset2 ( double  zHit,
unsigned int  id,
double  t0 
)
virtual

Implements ITofCaliSvc.

◆ BTDelay1() [1/2]

const double TofCaliSvc::BTDelay1 ( unsigned int  id)

◆ BTDelay1() [2/2]

const double TofCaliSvc::BTDelay1 ( unsigned int  id)

◆ BTDelay2() [1/2]

const double TofCaliSvc::BTDelay2 ( unsigned int  id)

◆ BTDelay2() [2/2]

const double TofCaliSvc::BTDelay2 ( unsigned int  id)

◆ BTime1() [1/2]

const double TofCaliSvc::BTime1 ( double  ADC,
double  TDC,
double  zHit,
unsigned int  id,
double  t0 
)

◆ BTime1() [2/2]

const double TofCaliSvc::BTime1 ( double  ADC,
double  TDC,
double  zHit,
unsigned int  id,
double  t0 
)

◆ BTime2() [1/2]

const double TofCaliSvc::BTime2 ( double  ADC,
double  TDC,
double  zHit,
unsigned int  id,
double  t0 
)

◆ BTime2() [2/2]

const double TofCaliSvc::BTime2 ( double  ADC,
double  TDC,
double  zHit,
unsigned int  id,
double  t0 
)

◆ BTimeCluster() [1/2]

const double TofCaliSvc::BTimeCluster ( double  tlayer1,
double  tlayer2,
double  z1,
double  z2,
unsigned int  id1,
unsigned int  id2 
)

◆ BTimeCluster() [2/2]

const double TofCaliSvc::BTimeCluster ( double  tlayer1,
double  tlayer2,
double  z1,
double  z2,
unsigned int  id1,
unsigned int  id2 
)

◆ BTimeCounter() [1/2]

const double TofCaliSvc::BTimeCounter ( double  tleft,
double  tright,
double  z,
unsigned int  id 
)

◆ BTimeCounter() [2/2]

const double TofCaliSvc::BTimeCounter ( double  tleft,
double  tright,
double  z,
unsigned int  id 
)

◆ BTof() [1/2]

BTofCal * TofCaliSvc::BTof ( unsigned int  id) const

Referenced by Dump().

◆ BTof() [2/2]

BTofCal * TofCaliSvc::BTof ( unsigned int  id) const

◆ BTofCommon() [1/2]

BTofCommonCal * TofCaliSvc::BTofCommon ( ) const
virtual

Implements ITofCaliSvc.

Definition at line 1108 of file TofCaliSvc.cxx.

1108 {
1109 return fBTofCommonCal[m_sequence];
1110}

◆ BTofCommon() [2/2]

BTofCommonCal * TofCaliSvc::BTofCommon ( ) const
virtual

Implements ITofCaliSvc.

◆ BVeff() [1/2]

const double TofCaliSvc::BVeff ( unsigned int  id)

◆ BVeff() [2/2]

const double TofCaliSvc::BVeff ( unsigned int  id)

◆ chooseConstants() [1/2]

StatusCode TofCaliSvc::chooseConstants ( int  run,
int  number 
)
virtual

Implements ITofCaliSvc.

Definition at line 270 of file TofCaliSvc.cxx.

270 {
271
272 MsgStream log(msgSvc(), name());
273
274 m_sequence = 0;
275 bool filled = false;
276 unsigned int inumber = 0;
277
278 std::vector<TofInfoCal*>::iterator it = fTofInfoCal.begin();
279 if( (*it)->getRunFrom() == -1 ) {
280 if( fTofInfoCal.size() == 1 ) {
281 log << MSG::INFO << "TofCaliSvc::chooseConstants() -- Run From is equal to -1! The ONLY TOF calibration constants are used!" << endreq;
282 return StatusCode::SUCCESS;
283 }
284 else {
285 log << MSG::ERROR << "TofCaliSvc::chooseConstants() -- Run From is equal to -1! The NUMBER of calibration constants are NOT equal to 1!" << endreq;
286 return StatusCode::FAILURE;
287 }
288 }
289
290 for( ; it!= fTofInfoCal.end(); it++, inumber++ ) {
291 if( ( (*it)->getRunTo() != -1 ) && ( (*it)->getRunTo() < (*it)->getRunFrom() ) ) {
292 log << MSG::ERROR << "TofCaliSvc::chooseConstants() -- The " << inumber << "th calibration constatns is ABNORMAL! Run From is LARGER than RUN To!" << endreq;
293 return StatusCode::FAILURE;
294 }
295 if( ( (*it)->getRunFrom() == (*it)->getRunTo() ) && ( (*it)->getEventFrom() != -1 ) && ( (*it)->getEventTo() != -1 ) && ( (*it)->getEventFrom() > (*it)->getEventTo() ) ) {
296 log << MSG::ERROR << "TofCaliSvc::chooseConstants() -- The " << inumber << "th calibration constatns is ABNORMAL! Event From is LARGER than Event To!" << endreq;
297 return StatusCode::FAILURE;
298 }
299 }
300
301 it = fTofInfoCal.begin();
302 inumber = 0;
303 for( ; it!= fTofInfoCal.end(); it++, inumber++ ) {
304 int runFrom = (*it)->getRunFrom();
305 int runTo = (*it)->getRunTo();
306 int eventFrom = (*it)->getEventFrom();
307 int eventTo = (*it)->getEventTo();
308 if( ( run == runFrom ) && ( ( eventFrom == -1 ) || ( event >= eventFrom ) ) ) {
309 if( ( run < runTo ) || ( ( run == runTo ) && ( ( eventTo == -1 ) || ( event <= eventTo ) ) ) ) {
310 filled = true;
311 break;
312 }
313 }
314 if( run > runFrom ) {
315 if( ( run < runTo ) || ( ( run == runTo ) && ( ( eventTo == -1 ) || ( event <= eventTo ) ) ) ) {
316 filled = true;
317 break;
318 }
319 }
320 }
321
322 if( filled ) {
323 m_sequence = inumber;
324 return StatusCode::SUCCESS;
325 }
326 else {
327 log << MSG::ERROR << "TofCaliSvc::chooseConstants() -- The event with run number " << run << " and event number " << event << " is NOT suitable for this group of calibration constants" << endreq;
328 return StatusCode::FAILURE;
329 }
330
331 return StatusCode::SUCCESS;
332}

◆ chooseConstants() [2/2]

StatusCode TofCaliSvc::chooseConstants ( int  run,
int  number 
)
virtual

Implements ITofCaliSvc.

◆ Dump() [1/2]

void TofCaliSvc::Dump ( )
virtual

Implements ITofCaliSvc.

Definition at line 1116 of file TofCaliSvc.cxx.

1116 {
1117 std::cout<<"Now We can get the TOF Calibtration Service"<<std::endl;
1118 std::cout<<"Barrel TOF Counter Number = "<<fBTofCal.size()<<std::endl;
1119 std::cout<<"Endcap TOF Counter Number = "<<fETofCal.size()<<std::endl;
1120
1121 cout<<"The O Barrel TOF PMT1 p1[0] is"<<" "<<BTof(0)->getP1(0)<<endl;
1122 cout<<"The 0 Barrel TOF PMT1 p1[1] is"<<" "<<BTof(0)->getP1(1)<<endl;
1123 cout<<"The 0 Barrel TOF veff is"<<" "<<BTof(0)->getVeff(0)<<endl;
1124 // cout<<"The 22rd Endcap TOF PMT veff is"<<" "<<ETof(22)->getVeff()<<endl;
1125}
BTofCal * BTof(unsigned int id) const

Referenced by main().

◆ Dump() [2/2]

void TofCaliSvc::Dump ( )
virtual

Implements ITofCaliSvc.

◆ EAtten() [1/2]

const double TofCaliSvc::EAtten ( unsigned int  id)

◆ EAtten() [2/2]

const double TofCaliSvc::EAtten ( unsigned int  id)

◆ EGain() [1/2]

const double TofCaliSvc::EGain ( unsigned int  id)

◆ EGain() [2/2]

const double TofCaliSvc::EGain ( unsigned int  id)

◆ Endcap() [1/2]

const int TofCaliSvc::Endcap ( unsigned int  No)
virtual

Implements ITofCaliSvc.

Definition at line 1088 of file TofCaliSvc.cxx.

1088 {
1089 return fTofInfoCal[m_sequence]->getEndcap(im);
1090}

◆ Endcap() [2/2]

const int TofCaliSvc::Endcap ( unsigned int  No)
virtual

Implements ITofCaliSvc.

◆ EPh() [1/2]

const double TofCaliSvc::EPh ( double  ADC,
double  rHit,
unsigned int  id 
)
virtual

Implements ITofCaliSvc.

Definition at line 917 of file TofCaliSvc.cxx.

917 {
918 double length = 44.5;
919 double a0 = fETofCal[96*m_sequence+id]->getAtten(0);
920 double a1 = fETofCal[96*m_sequence+id]->getAtten(1);
921 double a2 = fETofCal[96*m_sequence+id]->getAtten(2);
922 double q0 = ADC*TMath::Exp(-(a0+a1*(rHit-length)+a2*(rHit-length)*(rHit-length)));
923 return q0;
924}

◆ EPh() [2/2]

const double TofCaliSvc::EPh ( double  ADC,
double  rHit,
unsigned int  id 
)
virtual

Implements ITofCaliSvc.

◆ EPulseHeight() [1/2]

const double TofCaliSvc::EPulseHeight ( double  ADC,
double  rHit,
double  cost,
unsigned int  id 
)
virtual

Implements ITofCaliSvc.

Definition at line 904 of file TofCaliSvc.cxx.

904 {
905 double length = 44.5;
906 double a0 = fETofCal[96*m_sequence+id]->getAtten(0);
907 double a1 = fETofCal[96*m_sequence+id]->getAtten(1);
908 double a2 = fETofCal[96*m_sequence+id]->getAtten(2);
909 double a3 = fETofCal[96*m_sequence+id]->getAtten(3);
910
911 double q0 = ADC*fabs(cost)*TMath::Exp(-(a1*(rHit-length)+a2*(rHit-length)*(rHit-length)))/a3;
912
913 return q0;
914}

◆ EPulseHeight() [2/2]

const double TofCaliSvc::EPulseHeight ( double  ADC,
double  rHit,
double  cost,
unsigned int  id 
)
virtual

Implements ITofCaliSvc.

◆ ESigma() [1/2]

const double TofCaliSvc::ESigma ( double  rHit,
unsigned int  id 
)

◆ ESigma() [2/2]

const double TofCaliSvc::ESigma ( double  rHit,
unsigned int  id 
)

◆ ETDelay() [1/2]

const double TofCaliSvc::ETDelay ( unsigned int  id)

◆ ETDelay() [2/2]

const double TofCaliSvc::ETDelay ( unsigned int  id)

◆ Etf() [1/2]

const int TofCaliSvc::Etf ( unsigned int  No)
virtual

Implements ITofCaliSvc.

Definition at line 1092 of file TofCaliSvc.cxx.

1092 {
1093 return fTofInfoCal[m_sequence]->getEndcap(im);
1094}

◆ Etf() [2/2]

const int TofCaliSvc::Etf ( unsigned int  No)
virtual

Implements ITofCaliSvc.

◆ EtfBunchP() [1/2]

const double TofCaliSvc::EtfBunchP ( int  index)
virtual

Implements ITofCaliSvc.

Definition at line 855 of file TofCaliSvc.cxx.

855 {
856 MsgStream log(msgSvc(), name());
857
858 double pbunch = 0.0;
859 if( fEtfBunchCal.size()>0 && index>=0 && index<4 ) {
860 pbunch=fEtfBunchCal[m_sequence]->getBunchP(index);
861 }
862
863 return pbunch;
864}

◆ EtfBunchP() [2/2]

const double TofCaliSvc::EtfBunchP ( int  index)
virtual

Implements ITofCaliSvc.

◆ EtfTime() [1/4]

const double TofCaliSvc::EtfTime ( double  ADC1,
double  ADC2,
double  TDC1,
double  TDC2,
unsigned int  id,
unsigned int  strip,
double  t0 
)
virtual

Implements ITofCaliSvc.

◆ EtfTime() [2/4]

const double TofCaliSvc::EtfTime ( double  ADC1,
double  ADC2,
double  TDC1,
double  TDC2,
unsigned int  id,
unsigned int  strip,
double  t0 
)
virtual

Implements ITofCaliSvc.

◆ EtfTime() [3/4]

const double TofCaliSvc::EtfTime ( double  tleft,
double  tright 
)
virtual

Implements ITofCaliSvc.

Definition at line 845 of file TofCaliSvc.cxx.

845 {
846 MsgStream log(msgSvc(), name());
847
848 double time = (tleft+tright)/2.0;
849 log << MSG::DEBUG << "EtfTime tleft=" << tleft << " tright=" << tright << " time=" << time << endreq;
850
851 return time;
852}
Double_t time

◆ EtfTime() [4/4]

const double TofCaliSvc::EtfTime ( double  tleft,
double  tright 
)
virtual

Implements ITofCaliSvc.

◆ EtfTime1() [1/2]

const double TofCaliSvc::EtfTime1 ( double  ADC,
double  TDC,
double  zHit,
unsigned int  id,
unsigned int  strip,
double  t0 
)

◆ EtfTime1() [2/2]

const double TofCaliSvc::EtfTime1 ( double  ADC,
double  TDC,
double  zHit,
unsigned int  id,
unsigned int  strip,
double  t0 
)

◆ EtfTime2() [1/2]

const double TofCaliSvc::EtfTime2 ( double  ADC,
double  TDC,
double  zHit,
unsigned int  id,
unsigned int  strip,
double  t0 
)

◆ EtfTime2() [2/2]

const double TofCaliSvc::EtfTime2 ( double  ADC,
double  TDC,
double  zHit,
unsigned int  id,
unsigned int  strip,
double  t0 
)

◆ EtfTimeMC() [1/2]

const double TofCaliSvc::EtfTimeMC ( double  ADC1,
double  ADC2,
double  TDC1,
double  TDC2,
unsigned int  id,
unsigned int  strip,
double  t0 
)
virtual

Implements ITofCaliSvc.

◆ EtfTimeMC() [2/2]

const double TofCaliSvc::EtfTimeMC ( double  ADC1,
double  ADC2,
double  TDC1,
double  TDC2,
unsigned int  id,
unsigned int  strip,
double  t0 
)
virtual

Implements ITofCaliSvc.

◆ EtfTimeMC1() [1/2]

const double TofCaliSvc::EtfTimeMC1 ( double  ADC,
double  TDC,
double  zHit,
unsigned int  id,
unsigned int  strip,
double  t0 
)

◆ EtfTimeMC1() [2/2]

const double TofCaliSvc::EtfTimeMC1 ( double  ADC,
double  TDC,
double  zHit,
unsigned int  id,
unsigned int  strip,
double  t0 
)

◆ EtfTimeMC2() [1/2]

const double TofCaliSvc::EtfTimeMC2 ( double  ADC,
double  TDC,
double  zHit,
unsigned int  id,
unsigned int  strip,
double  t0 
)

◆ EtfTimeMC2() [2/2]

const double TofCaliSvc::EtfTimeMC2 ( double  ADC,
double  TDC,
double  zHit,
unsigned int  id,
unsigned int  strip,
double  t0 
)

◆ EtfTof() [1/2]

EtfCal * TofCaliSvc::EtfTof ( unsigned int  id) const

◆ EtfTof() [2/2]

EtfCal * TofCaliSvc::EtfTof ( unsigned int  id) const

◆ EtfVeff() [1/2]

const double TofCaliSvc::EtfVeff ( unsigned int  id,
unsigned int  strip 
)
virtual

Implements ITofCaliSvc.

Definition at line 964 of file TofCaliSvc.cxx.

964 {
965 if(id<72 && strip<12){
966 return fEtfCal[72*12*m_sequence+12*id+strip]->getVeff(0);
967 }else{
968 std::cout<<"bad id="<<id<<" strip="<<strip<<std::endl;
969 return 0.;
970 }
971}

◆ EtfVeff() [2/2]

const double TofCaliSvc::EtfVeff ( unsigned int  id,
unsigned int  strip 
)
virtual

Implements ITofCaliSvc.

◆ EtfZTDC() [1/2]

const double TofCaliSvc::EtfZTDC ( double  tleft,
double  tright,
unsigned int  id,
unsigned int  strip 
)
virtual

Implements ITofCaliSvc.

◆ EtfZTDC() [2/2]

const double TofCaliSvc::EtfZTDC ( double  tleft,
double  tright,
unsigned int  id,
unsigned int  strip 
)
virtual

Implements ITofCaliSvc.

◆ ETime() [1/2]

const double TofCaliSvc::ETime ( double  ADC,
double  TDC,
double  rHit,
unsigned int  id 
)

◆ ETime() [2/2]

const double TofCaliSvc::ETime ( double  ADC,
double  TDC,
double  rHit,
unsigned int  id 
)

◆ ETof() [1/2]

ETofCal * TofCaliSvc::ETof ( unsigned int  id) const

◆ ETof() [2/2]

ETofCal * TofCaliSvc::ETof ( unsigned int  id) const

◆ EVeff() [1/2]

const double TofCaliSvc::EVeff ( unsigned int  id)

◆ EVeff() [2/2]

const double TofCaliSvc::EVeff ( unsigned int  id)

◆ EventFrom() [1/2]

const int TofCaliSvc::EventFrom ( )

◆ EventFrom() [2/2]

const int TofCaliSvc::EventFrom ( )

◆ EventTo() [1/2]

const int TofCaliSvc::EventTo ( )

◆ EventTo() [2/2]

const int TofCaliSvc::EventTo ( )

◆ finalize() [1/2]

StatusCode TofCaliSvc::finalize ( )
virtual

Definition at line 92 of file TofCaliSvc.cxx.

92 {
93 MsgStream log(msgSvc(), name());
94 log << MSG::INFO << name() << ": End of Run" << endreq;
95 return StatusCode::SUCCESS;
96}

◆ finalize() [2/2]

virtual StatusCode TofCaliSvc::finalize ( )
virtual

◆ getQ0() [1/2]

const double TofCaliSvc::getQ0 ( unsigned int  id)

◆ getQ0() [2/2]

const double TofCaliSvc::getQ0 ( unsigned int  id)

◆ handle() [1/2]

void TofCaliSvc::handle ( const Incident &  inc)

Definition at line 1127 of file TofCaliSvc.cxx.

1127 {
1128 MsgStream log( messageService(), name() );
1129 log << MSG::DEBUG << "handle: " << inc.type() << endreq;
1130
1131 if ( inc.type() == "NewRun" ){
1132 log << MSG::DEBUG << "New Run" << endreq;
1133 // if(!m_hasbeeninitialized){
1134
1135 StatusCode sc= FillfromDatabase();
1136 if(sc.isSuccess()){
1137 m_hasbeeninitialized=true;
1138 }
1139 // }
1140 }
1141}

◆ handle() [2/2]

void TofCaliSvc::handle ( const Incident &  )

◆ initialize() [1/2]

StatusCode TofCaliSvc::initialize ( )
virtual

Definition at line 59 of file TofCaliSvc.cxx.

59 {
60 m_hasbeeninitialized=false;
61 m_sequence = 0;
62
63 MsgStream log(msgSvc(), name());
64 log << MSG::INFO << name() << ": Start of run initialisation" << endreq;
65
66 StatusCode sc = Service::initialize();
67 if ( sc.isFailure() ) return sc;
68
69 IIncidentSvc* incsvc;
70 sc = service("IncidentSvc", incsvc);
71 int priority = 100;
72 if( sc.isSuccess() ){
73 incsvc -> addListener(this, "NewRun", priority);
74 }
75
76 StatusCode scc;
77
78 log<<MSG::INFO << "setProperties()" << endreq;
79 scc = service("CalibDataSvc", m_pCalibDataSvc, true);
80 if ( !scc.isSuccess() ) {
81 log<<MSG::ERROR<<"Could not get IDataProviderSvc interface of CalibXmlCnvSvc"<<endreq;
82 return scc;
83 } else {
84 log << MSG::DEBUG<< "Retrieved IDataProviderSvc interface of CalibXmlCnvSvc"<<endreq;
85 }
86 // Get properties from the JobOptionsSvc
87 scc = setProperties();
88
89 return sc;
90}

Referenced by main().

◆ initialize() [2/2]

virtual StatusCode TofCaliSvc::initialize ( )
virtual

◆ MisLable() [1/2]

const int TofCaliSvc::MisLable ( )
virtual

Implements ITofCaliSvc.

Definition at line 1076 of file TofCaliSvc.cxx.

1076 {
1077 return fTofInfoCal[m_sequence]->getMisLable();
1078}

◆ MisLable() [2/2]

const int TofCaliSvc::MisLable ( )
virtual

Implements ITofCaliSvc.

◆ QCorr() [1/2]

const int TofCaliSvc::QCorr ( )
virtual

Implements ITofCaliSvc.

Definition at line 1068 of file TofCaliSvc.cxx.

1068 {
1069 return fTofInfoCal[m_sequence]->getQCorr();
1070}

◆ QCorr() [2/2]

const int TofCaliSvc::QCorr ( )
virtual

Implements ITofCaliSvc.

◆ QElec() [1/2]

const int TofCaliSvc::QElec ( )
virtual

Implements ITofCaliSvc.

Definition at line 1072 of file TofCaliSvc.cxx.

1072 {
1073 return fTofInfoCal[m_sequence]->getQElec();
1074}

◆ QElec() [2/2]

const int TofCaliSvc::QElec ( )
virtual

Implements ITofCaliSvc.

◆ queryInterface() [1/2]

StatusCode TofCaliSvc::queryInterface ( const InterfaceID &  riid,
void **  ppvUnknown 
)
virtual

Definition at line 50 of file TofCaliSvc.cxx.

50 {
51 if ( IID_ITofCaliSvc.versionMatch(riid) ) {
52 *ppvInterface = static_cast<ITofCaliSvc*> (this);
53 } else {
54 return Service::queryInterface(riid, ppvInterface) ;
55 }
56 return StatusCode::SUCCESS;
57}

◆ queryInterface() [2/2]

virtual StatusCode TofCaliSvc::queryInterface ( const InterfaceID &  riid,
void **  ppvUnknown 
)
virtual

◆ RunBegin() [1/2]

const int TofCaliSvc::RunBegin ( )
virtual

Implements ITofCaliSvc.

Definition at line 1056 of file TofCaliSvc.cxx.

1056 {
1057 return fTofInfoCal[m_sequence]->getRunBegin();
1058}

◆ RunBegin() [2/2]

const int TofCaliSvc::RunBegin ( )
virtual

Implements ITofCaliSvc.

◆ RunEnd() [1/2]

const int TofCaliSvc::RunEnd ( )
virtual

Implements ITofCaliSvc.

Definition at line 1060 of file TofCaliSvc.cxx.

1060 {
1061 return fTofInfoCal[m_sequence]->getRunEnd();
1062}

◆ RunEnd() [2/2]

const int TofCaliSvc::RunEnd ( )
virtual

Implements ITofCaliSvc.

◆ RunFrom() [1/2]

const int TofCaliSvc::RunFrom ( )

◆ RunFrom() [2/2]

const int TofCaliSvc::RunFrom ( )

◆ RunTo() [1/2]

const int TofCaliSvc::RunTo ( )

◆ RunTo() [2/2]

const int TofCaliSvc::RunTo ( )

◆ TOffset() [1/2]

const double TofCaliSvc::TOffset ( )
virtual

Implements ITofCaliSvc.

Definition at line 490 of file TofCaliSvc.cxx.

490 {
491 double toffset = fBTofCommonCal[m_sequence]->getOffset(0);
492 return toffset;
493}

◆ TOffset() [2/2]

const double TofCaliSvc::TOffset ( )
virtual

Implements ITofCaliSvc.

◆ TofInfo() [1/2]

TofInfoCal * TofCaliSvc::TofInfo ( ) const
virtual

Implements ITofCaliSvc.

Definition at line 1112 of file TofCaliSvc.cxx.

1112 {
1113 return fTofInfoCal[m_sequence];
1114}

◆ TofInfo() [2/2]

TofInfoCal * TofCaliSvc::TofInfo ( ) const
virtual

Implements ITofCaliSvc.

◆ Version() [1/2]

const int TofCaliSvc::Version ( )
virtual

Implements ITofCaliSvc.

Definition at line 1064 of file TofCaliSvc.cxx.

1064 {
1065 return fTofInfoCal[m_sequence]->getVersion();
1066}

◆ Version() [2/2]

const int TofCaliSvc::Version ( )
virtual

Implements ITofCaliSvc.

◆ ZADC() [1/2]

const double TofCaliSvc::ZADC ( double  qleft,
double  qright,
unsigned int  id 
)

◆ ZADC() [2/2]

const double TofCaliSvc::ZADC ( double  qleft,
double  qright,
unsigned int  id 
)

◆ ZADC1() [1/2]

const double TofCaliSvc::ZADC1 ( double  qright,
unsigned int  id,
double  z 
)

◆ ZADC1() [2/2]

const double TofCaliSvc::ZADC1 ( double  qright,
unsigned int  id,
double  z 
)

◆ ZADC2() [1/2]

const double TofCaliSvc::ZADC2 ( double  qleft,
unsigned int  id,
double  z 
)

◆ ZADC2() [2/2]

const double TofCaliSvc::ZADC2 ( double  qleft,
unsigned int  id,
double  z 
)

◆ ZTDC() [1/2]

const double TofCaliSvc::ZTDC ( double  tleft,
double  tright,
unsigned int  id 
)

◆ ZTDC() [2/2]

const double TofCaliSvc::ZTDC ( double  tleft,
double  tright,
unsigned int  id 
)

◆ ZTDC1() [1/2]

const double TofCaliSvc::ZTDC1 ( double  tright,
unsigned int  id,
double  z 
)

◆ ZTDC1() [2/2]

const double TofCaliSvc::ZTDC1 ( double  tright,
unsigned int  id,
double  z 
)

◆ ZTDC2() [1/2]

const double TofCaliSvc::ZTDC2 ( double  tleft,
unsigned int  id,
double  z 
)

◆ ZTDC2() [2/2]

const double TofCaliSvc::ZTDC2 ( double  tleft,
unsigned int  id,
double  z 
)

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