CGEM BOSS 6.6.5.f
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 &)
 
BTofCalBTof (unsigned int id) const
 
BTofCommonCalBTofCommon () const
 
ETofCalETof (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 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 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 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)
 
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 &)
 
BTofCalBTof (unsigned int id) const
 
BTofCommonCalBTofCommon () const
 
ETofCalETof (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 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 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 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)
 
void Dump ()
 
- Public Member Functions inherited from ITofCaliSvc
virtual BTofCalBTof (unsigned id) const =0
 
virtual BTofCommonCalBTofCommon () const =0
 
virtual ETofCalETof (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 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 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 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 void Dump ()=0
 
virtual BTofCalBTof (unsigned id) const =0
 
virtual BTofCommonCalBTofCommon () const =0
 
virtual ETofCalETof (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 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 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 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 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 44 of file TofCaliSvc.cxx.

44 : Service(name, svcloc) {
45 declareProperty("Run",m_run=1);
46}

◆ ~TofCaliSvc() [1/2]

TofCaliSvc::~TofCaliSvc ( )

Definition at line 95 of file TofCaliSvc.cxx.

95 {
96 for(vector<BTofCal*>::iterator it1 = fBTofCal.begin(); it1 != fBTofCal.end(); it1++) { delete (*it1); }
97 fBTofCal.clear();
98 for(vector<ETofCal*>::iterator it2 = fETofCal.begin(); it2 != fETofCal.end(); it2++) { delete (*it2); }
99 fETofCal.clear();
100 for(vector<BTofCommonCal*>::iterator it3 = fBTofCommonCal.begin(); it3 != fBTofCommonCal.end(); it3++) { delete (*it3); }
101 fBTofCommonCal.clear();
102 for(vector<TofInfoCal*>::iterator it4 = fTofInfoCal.begin(); it4 != fTofInfoCal.end(); it4++) { delete (*it4); }
103 fTofInfoCal.clear();
104 return;
105}

◆ 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 586 of file TofCaliSvc.cxx.

586 {
587 double length = 230.0;
588 double Latten = fBTofCal[id]->getAtten(0);
589 double gainRatio = fBTofCal[id]->getAtten(1);
590 double q = ( ADC1*TMath::Exp((0.5*length-zHit)/Latten)+ADC2*TMath::Exp((0.5*length+zHit)/Latten) )/(1.0+TMath::Exp(gainRatio));
591 return q;
592}
****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 576 of file TofCaliSvc.cxx.

576 {
577 double length = 230.0;
578 double Latten = fBTofCal[id]->getAtten(0);
579 double gainRatio = fBTofCal[id]->getAtten(1);
580 double A2 = fBTofCal[id]->getAtten(2);
581 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)) );
582 return q;
583}

◆ 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 558 of file TofCaliSvc.cxx.

558 {
559 double length = 230.0;
560 double A = 1.0;
561 double Latten = fBTofCal[id]->getAtten(0);
562 double q0 = ADC*sint*TMath::Exp((0.5*length-zHit)/Latten)/A;
563 return q0;
564}

◆ 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 567 of file TofCaliSvc.cxx.

567 {
568 double length = 230.0;
569 double A = 1.0;
570 double Latten = fBTofCal[id]->getAtten(0);
571 double q0 = ADC*sint*TMath::Exp((0.5*length+zHit)/Latten)/A;
572 return q0;
573}

◆ 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 751 of file TofCaliSvc.cxx.

751 {
752 return fTofInfoCal[0]->getBrEast(im);
753}

◆ 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 755 of file TofCaliSvc.cxx.

755 {
756 return fTofInfoCal[0]->getBrWest(im);
757}

◆ 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 771 of file TofCaliSvc.cxx.

771 {
772 return fBTofCommonCal[0];
773}

◆ 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)

◆ Dump() [1/2]

void TofCaliSvc::Dump ( )
virtual

Implements ITofCaliSvc.

Definition at line 779 of file TofCaliSvc.cxx.

779 {
780 std::cout<<"Now We can get the TOF Calibtration Service"<<std::endl;
781 std::cout<<"Barrel TOF Counter Number = "<<fBTofCal.size()<<std::endl;
782 std::cout<<"Endcap TOF Counter Number = "<<fETofCal.size()<<std::endl;
783
784 cout<<"The O Barrel TOF PMT1 p1[0] is"<<" "<<BTof(0)->getP1(0)<<endl;
785 cout<<"The 0 Barrel TOF PMT1 p1[1] is"<<" "<<BTof(0)->getP1(1)<<endl;
786 cout<<"The 0 Barrel TOF veff is"<<" "<<BTof(0)->getVeff(0)<<endl;
787 // cout<<"The 22rd Endcap TOF PMT veff is"<<" "<<ETof(22)->getVeff()<<endl;
788}
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 759 of file TofCaliSvc.cxx.

759 {
760 return fTofInfoCal[0]->getEndcap(im);
761}

◆ 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 608 of file TofCaliSvc.cxx.

608 {
609 double length = 44.5;
610 double a0 = fETofCal[id]->getAtten(0);
611 double a1 = fETofCal[id]->getAtten(1);
612 double a2 = fETofCal[id]->getAtten(2);
613 double q0 = ADC*TMath::Exp(-(a0+a1*(rHit-length)+a2*(rHit-length)*(rHit-length)));
614 return q0;
615}

◆ 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 595 of file TofCaliSvc.cxx.

595 {
596 double length = 44.5;
597 double a0 = fETofCal[id]->getAtten(0);
598 double a1 = fETofCal[id]->getAtten(1);
599 double a2 = fETofCal[id]->getAtten(2);
600 double a3 = fETofCal[id]->getAtten(3);
601
602 double q0 = ADC*fabs(cost)*TMath::Exp(-(a1*(rHit-length)+a2*(rHit-length)*(rHit-length)))/a3;
603
604 return q0;
605}

◆ 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)

◆ 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)

◆ finalize() [1/2]

StatusCode TofCaliSvc::finalize ( )
virtual

Definition at line 89 of file TofCaliSvc.cxx.

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

◆ 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 790 of file TofCaliSvc.cxx.

790 {
791 MsgStream log( messageService(), name() );
792 log << MSG::DEBUG << "handle: " << inc.type() << endreq;
793
794 if ( inc.type() == "NewRun" ){
795 log << MSG::DEBUG << "New Run" << endreq;
796 // if(!m_hasbeeninitialized){
797 StatusCode sc= FillfromDatabase();
798 if(sc.isSuccess()){
799 m_hasbeeninitialized=true;
800 }
801 // }
802 }
803}

◆ handle() [2/2]

void TofCaliSvc::handle ( const Incident &  )

◆ initialize() [1/2]

StatusCode TofCaliSvc::initialize ( )
virtual

Definition at line 57 of file TofCaliSvc.cxx.

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

Referenced by main().

◆ initialize() [2/2]

virtual StatusCode TofCaliSvc::initialize ( )
virtual

◆ MisLable() [1/2]

const int TofCaliSvc::MisLable ( )
virtual

Implements ITofCaliSvc.

Definition at line 747 of file TofCaliSvc.cxx.

747 {
748 return fTofInfoCal[0]->getMisLable();
749}

◆ MisLable() [2/2]

const int TofCaliSvc::MisLable ( )
virtual

Implements ITofCaliSvc.

◆ QCorr() [1/2]

const int TofCaliSvc::QCorr ( )
virtual

Implements ITofCaliSvc.

Definition at line 739 of file TofCaliSvc.cxx.

739 {
740 return fTofInfoCal[0]->getQCorr();
741}

◆ QCorr() [2/2]

const int TofCaliSvc::QCorr ( )
virtual

Implements ITofCaliSvc.

◆ QElec() [1/2]

const int TofCaliSvc::QElec ( )
virtual

Implements ITofCaliSvc.

Definition at line 743 of file TofCaliSvc.cxx.

743 {
744 return fTofInfoCal[0]->getQElec();
745}

◆ 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 48 of file TofCaliSvc.cxx.

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

◆ 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 727 of file TofCaliSvc.cxx.

727 {
728 return fTofInfoCal[0]->getRunBegin();
729}

◆ RunBegin() [2/2]

const int TofCaliSvc::RunBegin ( )
virtual

Implements ITofCaliSvc.

◆ RunEnd() [1/2]

const int TofCaliSvc::RunEnd ( )
virtual

Implements ITofCaliSvc.

Definition at line 731 of file TofCaliSvc.cxx.

731 {
732 return fTofInfoCal[0]->getRunEnd();
733}

◆ RunEnd() [2/2]

const int TofCaliSvc::RunEnd ( )
virtual

Implements ITofCaliSvc.

◆ TOffset() [1/2]

const double TofCaliSvc::TOffset ( )
virtual

Implements ITofCaliSvc.

Definition at line 359 of file TofCaliSvc.cxx.

359 {
360 double toffset = fBTofCommonCal[0]->getOffset(0);
361 return toffset;
362}

◆ TOffset() [2/2]

const double TofCaliSvc::TOffset ( )
virtual

Implements ITofCaliSvc.

◆ TofInfo() [1/2]

TofInfoCal * TofCaliSvc::TofInfo ( ) const
virtual

Implements ITofCaliSvc.

Definition at line 775 of file TofCaliSvc.cxx.

775 {
776 return fTofInfoCal[0];
777}

◆ TofInfo() [2/2]

TofInfoCal * TofCaliSvc::TofInfo ( ) const
virtual

Implements ITofCaliSvc.

◆ Version() [1/2]

const int TofCaliSvc::Version ( )
virtual

Implements ITofCaliSvc.

Definition at line 735 of file TofCaliSvc.cxx.

735 {
736 return fTofInfoCal[0]->getVersion();
737}

◆ 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: