5 #ifndef PixelChargeInterpolationCalibration_cxx
6 #define PixelChargeInterpolationCalibration_cxx
13 #include <TDirectory.h>
24 m_DigitalCalibration(0),
25 m_AnalogCalibration(0),
49 if(histofile != 0) globaldir = histofile;
51 globaldir->cd(
"ChargeInterpolation");
64 if(writedir != 0) globaldir = writedir;
66 globaldir->mkdir(
"ChargeInterpolation")->cd();
78 Double_t
alpha, Double_t DeltaRow, Double_t digresphi,
79 Double_t resphi, Double_t OmegaPhi,
80 Double_t TrkEta, Double_t DeltaCol, Double_t digreseta,
81 Double_t reseta, Double_t OmegaEta){
90 for(
int iLayer = 0; iLayer < totlayers; iLayer++){
93 TrkEta, DeltaCol, digreseta, OmegaEta,
94 alpha, DeltaRow, digresphi, OmegaPhi);
96 TrkEta, DeltaCol, reseta, OmegaEta,
97 alpha, DeltaRow, resphi, OmegaPhi);
105 std::vector<std::string> &reference_names){
112 logfile <<
"Log file for the pixel calibration fits." << std::endl;
119 std::string
name =
"PixelChargeInterpolationData-" +
output;
120 size_t pos =
output.find(
"PixelOfflineReco");
121 if(
pos != std::string::npos){
122 name =
"PixelChargeInterpolationData"
123 +
output.substr(
pos+16,std::string::npos);
131 std::string(
"Fit on analog residual (should give 0)").c_str(),3,std::string(
"P"));
133 for(
unsigned int i = 0 ;
i < reference_names.size() ;
i++ ){
135 std::ifstream
fin((reference_names[
i]).c_str());
140 RefParameters->
Load(reference_names[
i]);
144 delete RefParameters;