#include <DedxCalib.h>
Inheritance diagram for DedxCalib:
Public Member Functions | |
virtual void | AnalyseHists ()=0 |
virtual void | AnalyseHists ()=0 |
virtual void | BookHists ()=0 |
virtual void | BookHists ()=0 |
void | checkSelections () |
void | checkSelections () |
DedxCalib (const std::string &name, ISvcLocator *pSvcLocator) | |
DedxCalib (const std::string &name, ISvcLocator *pSvcLocator) | |
virtual StatusCode | execute () |
virtual StatusCode | execute () |
virtual void | FillHists ()=0 |
virtual void | FillHists ()=0 |
virtual void | FillHistsFromTree ()=0 |
virtual void | FillHistsFromTree ()=0 |
void | FillTestHists () |
void | FillTestHists () |
void | FillTree () |
void | FillTree () |
virtual StatusCode | finalize () |
virtual StatusCode | finalize () |
virtual Float_t | GetChargeOffCorr (Int_t il, Int_t iw, Float_t ChargeIn, Float_t path, Float_t doca, Float_t EAngle, Float_t dipAngle, Float_t z)=0 |
virtual Float_t | GetChargeOffCorr (Int_t il, Int_t iw, Float_t ChargeIn, Float_t path, Float_t doca, Float_t EAngle, Float_t dipAngle, Float_t z)=0 |
Float_t | GetChargeOnCorr (Int_t il, Int_t iw, Float_t ChargeIn, Float_t path, Float_t doca, Float_t EAngle, Float_t dipAngle, Float_t z) |
Float_t | GetChargeOnCorr (Int_t il, Int_t iw, Float_t ChargeIn, Float_t path, Float_t doca, Float_t EAngle, Float_t dipAngle, Float_t z) |
virtual StatusCode | initialize () |
virtual StatusCode | initialize () |
void | ReadBetheBlochParameters () |
void | ReadBetheBlochParameters () |
void | ReadCalibdEdxParameters () |
void | ReadCalibdEdxParameters () |
virtual void | WriteCalibdEdxParameters () |
virtual void | WriteCalibdEdxParameters () |
virtual void | WriteHists ()=0 |
virtual void | WriteHists ()=0 |
~DedxCalib () | |
~DedxCalib () | |
Protected Attributes | |
int | calib_flag |
bool | ddgflag |
IDedxCorrecSvc * | exsvc |
IDedxCorrecSvc * | exsvc |
IMdcGeomSvc * | geosvc |
IMdcGeomSvc * | geosvc |
bool | ggsflag |
bool | layergflag |
MsgStream | log |
std::string | m_constrootfile |
int | m_correc_flag |
std::string | m_inputfile |
int | m_par_flag |
int | m_phshape_flag |
std::string | m_rootfile |
bool | wiregflag |
bool | zdepflag |
|
00013 : 00014 Algorithm(name, pSvcLocator), 00015 log( msgSvc(), name ) 00016 { 00017 //calib_flag = 0; 00018 // declare properties 00019 declareProperty("phshape_flag",m_phshape_flag=0); 00020 declareProperty("par_flag",m_par_flag=0); 00021 declareProperty("CalibFlag",calib_flag=0); 00022 declareProperty("InputFile", m_inputfile= std::string("no rootfile")); 00023 declareProperty("DedxRootfile", m_rootfile= std::string("no rootfile")); 00024 declareProperty("DedxConstRootfile", m_constrootfile= std::string("no rootfile")); 00025 //declareProperty("RecFlag",rec_flag=0); 00026 wiregflag = false; 00027 ggsflag = false; 00028 ddgflag = false; 00029 zdepflag = false; 00030 layergflag = false; 00031 //cout<<m_phshape_flag<<endl; 00032 }
|
|
00101 {
00102 // destructor
00103 }
|
|
|
|
|
|
|
|
|
|
|
|
00121 { 00122 log<<MSG::INFO<<"DedxCalib::checkSelections()...."<<endreq; 00123 }
|
|
|
|
00075 { 00076 00077 this->FillTree(); 00078 00079 this->FillHists(); 00080 return StatusCode::SUCCESS; 00081 }
|
|
|
|
|
|
|
|
00117 { 00118 log<<MSG::INFO<<"DedxCalib::FillTestHists()...."<<endreq; 00119 }
|
|
|
|
00105 { 00106 log<<MSG::INFO<<"DedxCalib::FillTree()...."<<endreq; 00107 }
|
|
|
|
00084 { 00085 00086 log << MSG::INFO << "DedxCalib finalize() ..." << endreq; 00087 this->AnalyseHists(); 00088 00089 this->WriteCalibdEdxParameters(); 00090 this->WriteHists(); 00091 00092 this->FillTestHists(); 00093 00094 00095 00096 return StatusCode::SUCCESS; 00097 }
|
|
|
|
|
|
00127 { 00128 00129 }
|
|
|
|
00035 { 00036 log << MSG::INFO << "DedxCalib initialze() ..." << endreq; 00037 /*StatusCode scint = Service::initialize(); 00038 if( scint.isFailure() ) return scint; 00039 IIncidentSvc* incsvc; 00040 scint = service("IncidentSvc", incsvc); 00041 int priority = 100; 00042 if( sc.isSuccess() ){ 00043 incsvc -> addListener(this, "BeginEvent", priority); 00044 //incsvc -> addListener(this, "NewRun", priority); 00045 }*/ 00046 00047 StatusCode sc = service("MdcGeomSvc", geosvc); 00048 if (sc == StatusCode::SUCCESS) { 00049 log << MSG::INFO <<"MdcGeomSvc is running"<<endl; 00050 } else { 00051 log << MSG::ERROR <<"MdcGeomSvc is failed"<<endl; 00052 return StatusCode::SUCCESS; 00053 } 00054 00055 StatusCode scex = service("DedxCorrecSvc", exsvc); 00056 if (scex == StatusCode::SUCCESS) { 00057 log << MSG::INFO <<"Hi, DedxCorrectSvc is running"<<endl; 00058 } else { 00059 log << MSG::ERROR <<"DedxCorrectSvc is failed"<<endl; 00060 return StatusCode::SUCCESS; 00061 } 00062 00063 exsvc->set_flag( calib_flag ); 00064 this->checkSelections(); 00065 log << MSG::INFO <<"DedxCalib: read correction parameters"<<endreq; 00066 this->ReadCalibdEdxParameters(); 00067 this->FillHistsFromTree(); 00068 00069 this->BookHists(); 00070 00071 return StatusCode::SUCCESS; 00072 }
|
|
|
|
|
|
|
|
00109 { 00110 log<<MSG::INFO<<"DedxCalib::ReadCalibdEdxParameters()...."<<endreq; 00111 }
|
|
|
Reimplemented in DedxCalibCostheta, DedxCalibDipAngle, DedxCalibDocaEAng, DedxCalibDocaEAngOver, DedxCalibDocaEAngOverKal, DedxCalibDriftDist, DedxCalibEntra, DedxCalibHadron, DedxCalibLayerGain, DedxCalibRunByRun, DedxCalibRunConst, DedxCalibSaturation, DedxCalibSpaCharge, DedxCalibTzero, DedxCalibWireGain, DedxCalibWWLL, DedxCalibZpos, DedxCalibCostheta, DedxCalibDipAngle, DedxCalibDocaEAng, DedxCalibDocaEAngOver, DedxCalibDocaEAngOverKal, DedxCalibDriftDist, DedxCalibEntra, DedxCalibHadron, DedxCalibLayerGain, DedxCalibRunByRun, DedxCalibRunConst, DedxCalibSaturation, DedxCalibSpaCharge, DedxCalibTzero, DedxCalibWireGain, DedxCalibWWLL, and DedxCalibZpos. 00113 { 00114 log<<MSG::INFO<<"DedxCalib::WriteCalibdEdxParameters()...."<<endreq; 00115 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|