Go to the documentation of this file. 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];
139 if (fabs(
value) < truncate) {
147 if (fabs(
value) < truncate) {
161 if (fabs(
value) < truncate) {
162 double weight = 1. / (*r)[whichredchi2];
163 if (TMath::Prob(1. /
weight * 12, 12) < 0.99) {
172 if (fabs(
value) < truncate) {
173 double weight = 1. / (*r)[whichredchi2];
174 if (TMath::Prob(1. /
weight * 12, 12) < 0.99) {
190 if (fabs(
value) < truncate) {
199 if (fabs(
value) < truncate) {
271 #endif // Alignment_MuonAlignmentAlgorithms_MuonResidualsTwoBin_H
void fiducialCuts(double xMin=-80.0, double xMax=80.0, double yMin=-80.0, double yMax=80.0, bool fidcut1=false)
virtual void correctBField()=0
void setStrategy(int strategy)
double errorerror(int parNum)
double errorerror(int parNum)
std::vector< double * >::const_iterator residualsNeg_begin() const
MuonResidualsFitter * m_pos
void eraseNotSelectedResiduals()
void selectPeakResiduals(double nsigma, int nvar, int *vars)
long numResiduals() const
virtual double sumofweights()=0
void eraseNotSelectedResiduals()
long numResidualsNeg() const
int residualsModel() const
double stdev(int which, double truncate)
std::vector< bool >::const_iterator residualsPos_ok_end() const
virtual int type() const =0
double wmean(int which, int whichredchi2, double truncate)
void plotweighted(std::string name, TFileDirectory *dir, int which, int whichredchi2, double multiplier)
void setPrintLevel(int printLevel)
std::vector< bool >::const_iterator residualsNeg_ok_begin() const
std::vector< double * >::const_iterator residualsNeg_end() const
std::vector< bool >::const_iterator residualsPos_ok_begin() const
void plotweighted(std::string name, TFileDirectory *dir, int which, int whichredchi2, double multiplier)
void write(FILE *file, int which=0)
int useRes(int pattern=-1)
void write(FILE *file, int which=0)
virtual double plot(std::string name, TFileDirectory *dir, Alignable *ali)=0
std::vector< bool > & selectedResidualsFlags()
std::vector< double * >::const_iterator residualsPos_end() const
void setStrategy(int strategy) const
void plotsimple(std::string name, TFileDirectory *dir, int which, double multiplier)
MuonResidualsTwoBin(bool twoBin, MuonResidualsFitter *pos, MuonResidualsFitter *neg)
void plotsimple(std::string name, TFileDirectory *dir, int which, double multiplier)
std::vector< double * >::const_iterator residuals_end() const
void read(FILE *file, int which=0)
double plot(std::string name, TFileDirectory *dir, Alignable *ali)
void fill(char charge, double *residual)
void fill(double *residual)
void setPrintLevel(int printLevel) const
double antisym(int parNum)
std::vector< double * >::const_iterator residualsPos_begin() const
double mean(int which, double truncate)
void fix(int parNum, bool dofix=true)
void selectPeakResiduals(double nsigma, int nvar, int *vars)
void read(FILE *file, int which=0)
virtual bool fit(Alignable *ali)=0
void fix(int parNum, bool value=true)
long numResidualsPos() const
Power< A, B >::type pow(const A &a, const B &b)
int residualsModel() const
std::vector< double * >::const_iterator residuals_begin() const
MuonResidualsFitter * m_neg
std::vector< bool >::const_iterator residualsNeg_ok_end() const