cal->CalibrateRawSpectra("clb03_0001.root","SQ22",22,"AnalysisxTree",100,800,500);//takes data from raw file and calibrates it with obtained calibration parameters
cal->CalibrateRawSpectra("clb09_0001.root","SQ22",22,"AnalysisxTree",100,800,500);//takes data from raw file and calibrates it with obtained calibration parameters
cout<<"dead layer 1 is: "<<deltaL1/(TMath::Sqrt(2)-1)<<" mcm"<<endl;//MeV, microns
cout<<"dead layer 2 is: "<<deltaL2/(TMath::Sqrt(2)-1)<<" mcm"<<endl;//MeV, microns
cout<<"dead layer 3 is: "<<deltaL3/(TMath::Sqrt(2)-1)<<" mcm"<<endl;//MeV, microns
cout<<"dead layer 4 is: "<<deltaL4/(TMath::Sqrt(2)-1)<<" mcm"<<endl<<endl;//MeV, microns
cout<<"Back dead layer for detector 1-11 is : "<<(deltaL1/(TMath::Sqrt(2)-1)+deltaL2/(TMath::Sqrt(2)-1)+deltaL3/(TMath::Sqrt(2)-1)+deltaL4/(TMath::Sqrt(2)-1))/4.<<" mcm"<<endl;//dead layer width