1 #ifndef Alignment_MuonAlignmentAlgorithms_MuonResidualsTwoBin_H 2 #define Alignment_MuonAlignmentAlgorithms_MuonResidualsTwoBin_H 120 std::vector<double> residuals;
122 residuals.push_back((*
r)[
which]);
126 residuals.push_back((*
r)[
which]);
129 std::sort(residuals.begin(), residuals.end());
130 int length = residuals.size();
131 return residuals[length / 2];
162 double weight = 1. / (*r)[whichredchi2];
163 if (TMath::Prob(1. /
weight * 12, 12) < 0.99) {
173 double weight = 1. / (*r)[whichredchi2];
174 if (TMath::Prob(1. /
weight * 12, 12) < 0.99) {
271 #endif // Alignment_MuonAlignmentAlgorithms_MuonResidualsTwoBin_H int residualsModel() const
double wmean(int which, int whichredchi2, double truncate)
MuonResidualsFitter * m_neg
MuonResidualsFitter * m_pos
void selectPeakResiduals(double nsigma, int nvar, int *vars)
void fill(char charge, double *residual)
long numResidualsNeg() const
void write(FILE *file, int which=0)
void eraseNotSelectedResiduals()
int residualsModel() const
void read(FILE *file, int which=0)
double stdev(int which, double truncate)
std::vector< double * >::const_iterator residuals_begin() const
virtual bool fit(Alignable *ali)=0
void fill(double *residual)
std::vector< bool >::const_iterator residualsPos_ok_begin() const
long numResiduals() const
std::vector< bool >::const_iterator residualsNeg_ok_end() const
std::vector< double * >::const_iterator residuals_end() const
std::vector< double * >::const_iterator residualsNeg_begin() const
void setStrategy(int strategy) const
void plotweighted(std::string name, TFileDirectory *dir, int which, int whichredchi2, double multiplier)
void fix(int parNum, bool dofix=true)
void write(FILE *file, int which=0)
double mean(int which, double truncate)
virtual void correctBField()=0
virtual double plot(std::string name, TFileDirectory *dir, Alignable *ali)=0
std::vector< bool >::const_iterator residualsPos_ok_end() const
double antisym(int parNum)
MuonResidualsTwoBin(bool twoBin, MuonResidualsFitter *pos, MuonResidualsFitter *neg)
void plotsimple(std::string name, TFileDirectory *dir, int which, double multiplier)
void setStrategy(int strategy)
virtual double sumofweights()=0
std::vector< double * >::const_iterator residualsNeg_end() const
std::vector< double * >::const_iterator residualsPos_begin() const
void eraseNotSelectedResiduals()
double errorerror(int parNum)
void read(FILE *file, int which=0)
void fiducialCuts(double xMin=-80.0, double xMax=80.0, double yMin=-80.0, double yMax=80.0, bool fidcut1=false)
int useRes(int pattern=-1)
std::vector< bool > & selectedResidualsFlags()
void setPrintLevel(int printLevel) const
long numResidualsPos() const
std::vector< double * >::const_iterator residualsPos_end() const
void plotweighted(std::string name, TFileDirectory *dir, int which, int whichredchi2, double multiplier)
double errorerror(int parNum)
std::vector< bool >::const_iterator residualsNeg_ok_begin() const
void plotsimple(std::string name, TFileDirectory *dir, int which, double multiplier)
void setPrintLevel(int printLevel)
void selectPeakResiduals(double nsigma, int nvar, int *vars)
virtual int type() const =0
double plot(std::string name, TFileDirectory *dir, Alignable *ali)
void fix(int parNum, bool value=true)