|
ATLAS Offline Software
|
Go to the documentation of this file.
35 int ncsx = csx.size();
36 int ncsy = csy.size();
37 int neta = eta.size();
38 int nalpha = alpha.size();
54 int ncsx2 = csx2.size()-1;
55 int ncsy2 = csy2.size()-1;
56 int neta2 =
eta2.size()-1;
57 int nalpha2 = alpha2.size()-1;
65 int n3a = ncsx*nalpha;
66 int n3b = ncsx*ncsy*neta;
67 int n3c = ncsx_ibl*nalphaibl;
68 int n3d = ncsy_ibl*netaibl;
69 int n4 = 6*ncsx2*nalpha2;
70 int n5 = 6*ncsy2*neta2;
71 int n6 = ncsx2_ibl*nalphaibl2;
72 int n7 = ncsy2_ibl*netaibl2;
75 +ncsx+ncsy+neta+nalpha
77 +ncsx2+1+ncsy2+1+neta2+1+nalpha2+1
81 if(v1<-1||
v2<-1||v3<-1) {
83 datasize +=2*
n1 + netaibl+1 + nalphaibl+1 + n3c +n3d + netaibl2+1 + nalphaibl2+1 + n6 + n7;
116 for(
int i=0;
i<netaibl+1;
i++){
constants.push_back(etaibl[
i]); }
119 for(
int i=0;
i<nalphaibl+1;
i++){
constants.push_back(alphaibl[
i]); }
122 for(
int i=0;
i<nalpha;
i++){
constants.push_back(alpha[
i]); }
124 for(
int i=0;
i<ncsx2+1;
i++){
constants.push_back(csx2[
i]); }
125 for(
int i=0;
i<ncsy2+1;
i++){
constants.push_back(csy2[
i]); }
127 for(
int i=0;
i<netaibl2+1;
i++){
constants.push_back(etaibl2[
i]); }
130 for(
int i=0;
i<nalphaibl2+1;
i++){
constants.push_back(alphaibl2[
i]); }
133 for(
int i=0;
i<nalpha2+1;
i++){
constants.push_back(alpha2[
i]); }
182 offset += ncsx+ncsy+neta+nalpha;
183 for(
int i=0;
i<
n1;
i++){
188 for(
int i=0;
i<n2;
i++){
193 int n3a = ncsx*nalpha;
194 int n3b = ncsx*ncsy*neta;
195 for(
int i=0;
i<n3a;
i++){
199 for(
int i=0;
i<n3b;
i++){
203 for(
int i=0;
i<n4;
i++){
207 for(
int i=0;
i<n5;
i++){
211 if(ierr == 0) std::cout <<
"something went wrong!" << std::endl;
252 offset += ncsx+ncsy+neta+nalpha;
253 if(
v2<-1)
offset +=netaibl+1+nalphaibl+1;
262 offset += (ncsx2+1)+(ncsy2+1)+(neta2+1)+(nalpha2+1);
263 if(v3<-1)
offset += (netaibl2+1) + (nalphaibl2+1);
264 for(
int i=0;
i<
n1;
i++){
269 for(
int i=0;
i<n2;
i++){
275 for(
int i=0;
i<
n1;
i++){
281 int n3a = ncsx*nalpha;
282 int n3b = ncsx*ncsy*neta;
283 int n3c = ncsx_ibl*nalphaibl;
284 int n3d = ncsy_ibl*netaibl;
286 for(
int i=0;
i<n3c;
i++){
291 for(
int i=0;
i<n3a;
i++){
297 for(
int i=0;
i<n3d;
i++){
303 for(
int i=0;
i<n3b;
i++){
307 const int n4 = 6*ncsx2*nalpha2;
308 const int n5 = 6*ncsy2*neta2;
309 const int n6 = ncsx2_ibl*nalphaibl2;
310 const int n7 = ncsy2_ibl*netaibl2;
312 for(
int i=0;
i<n6+n4;
i++){
316 for(
int i=0;
i<n7+n5;
i++){
321 if(ierr == 0) std::cout <<
"something went wrong!" << std::endl;
int setPixelEndcapRError(int ibin, float error)
int getNumberOfBarrelBins() const
int setDeltaY(int ieta, int iclustersize, int ilayer, float value)
const std::vector< float > & getIBLAngleBins() const
void setPixelBarrelPhiError(int ibin, double error)
void setParameters(const int ncsx, const int ncsy, const int neta, const int nalpha, int offset, const std::vector< float > &constants)
int getIBLcsxbins() const
int getIBLetabins() const
static double getPixelBarrelPhiError(double ang, int phiClusterSize)
void setPixelIBLEtaError(int ibin, double error)
void setIBLetabins(int ieta)
float getPixelBarrelEtaError(int ibin) const
const std::vector< float > & getEtaIBLBins() const
const std::vector< float > & getClusterSizeBinsY() const
PixelClusterOnTrackErrorData * m_clusterontrackerrordata
float getDeltaY(int ieta, int iclustersize, int ilayer) const
int getIBLphibins() const
int setPixelBarrelEtaError(int ibin, float error)
int getIBLcsxbins() const
const std::vector< float > & getAngleBins() const
int setPixelIBLPhiError(int ibin, float error)
void Print(const std::string &file) const
const std::vector< float > & getIncidenceAngleBins() const
int getNumberOfEndcapBins() const
float getDeltaX(int iangle, int iclustersize, int ilayer) const
methods to get/set the calibration data as a function of the bin index for the various variables sepa...
float getPixelEndcapPhiError(int ibin) const
void setIBLcsxbins(int icsx)
int getVersion() const
Methods to access the calibration data.
const std::vector< float > & getEtaBins() const
int setPixelEndcapPhiError(int ibin, float error)
float getPixelBarrelPhiError(int ibin) const
PixelClusterErrorData * m_clustererrordata
int getIBLphibins() const
void setIBLcsybins(int icsy)
void setIBLphibins(int iphi)
const std::vector< float > & getClusterSizeYBins() const
void setParameters(const int ncsx, const int ncsy, const int neta, const int nalpha, int offset, const std::vector< float > &constants)
void setIBLcsybins(int icsy)
void setIBLphibins(int ialpha)
const std::vector< float > & getEtaBins() const
float getPixelIBLPhiError(int ibin) const
void setPixelBarrelEtaError(int ibin, double error)
float getPixelEndcapRError(int ibin) const
void setVersion(int version)
float getPixelIBLPhiError(int ibin) const
void setVersion(int version)
int setPixelIBLEtaError(int ibin, float error)
void setVersion(int version)
std::vector< float > GetConstants() const
float getPixelIBLEtaError(int ibin) const
void setIBLetabins(int ieta)
void Print(const std::string &filename) const
const std::vector< float > & getClusterSizeBinsX() const
const std::vector< float > & getClusterSizeXBins() const
float getPixelBarrelEtaError(int ibin) const
int getIBLcsybins() const
int getIBLetabins() const
void setPixelIBLPhiError(int ibin, double error)
int getVersion() const
Methods to access the calibration data.
int setDeltaX(int iangle, int iclustersize, int ilayer, float value)
void SetConstants(const std::vector< float > &constants)
PixelChargeInterpolationParameters * m_chargeinterpolationparameters
void setIBLcsxbins(int icsx)
void Print(const std::string &file) const
int setPixelBarrelPhiError(int ibin, float error)
int getIBLcsybins() const
const std::vector< float > & getIncidenceAngleIBLBins() const
const std::vector< float > & getIBLEtaBins() const
float getPixelIBLEtaError(int ibin) const