1 #ifndef LA_FILLER_FITTER_H 2 #define LA_FILLER_FITTER_H 47 case WIDTH:
return "_width_prof";
53 default:
return "_UNKNOWN";
61 Result() : reco(1000,0), measured(1000,0), calMeasured(1000,0),
62 field(0), chi2(0), ndof(0), entries(0) {}
69 EnsembleSummary() : meanMeasured(0,0), sigmaMeasured(0,0), meanUncertainty(0,0), pull(0,0),
70 truth(0), samples(0) {}
77 const unsigned,
const float,
const float,
const float,
const float)
const;
84 static unsigned layer_index(
bool TIB,
bool stereo,
unsigned layer) {
return layer + (TIB?0:6) +(stereo?1:0) + ( (layer>2)?1:(layer==1)?-1:0 );}
101 static std::pair<std::pair<float,float>, std::pair<float,float> >
offset_slope(
const std::vector<EnsembleSummary>&);
102 static float pull(
const std::vector<EnsembleSummary>&);
LA_Filler_Fitter(int methods, int M, int N, double low, double up, unsigned max)
static std::map< std::string, Result > layer_results(const Book &, const Method)
static unsigned layer_index(bool TIB, bool stereo, unsigned layer)
static void fit(Book &book)
static std::string name(std::string base)
static TH1 * subset_probability(const std::string name, const TH1 *const , const TH1 *const )
std::pair< float, float > sigmaMeasured
static void fit_width_profile(Book &)
const Long64_t maxEvents_
poly< std::string > granularity(const SiStripDetId, const float, const Long64_t, const float, const unsigned) const
static std::pair< std::pair< float, float >, std::pair< float, float > > offset_slope(const std::vector< EnsembleSummary > &)
static std::map< std::string, std::vector< EnsembleSummary > > ensemble_summary(const Book &)
void fill(TTree *, Book &) const
static std::string moduleLabel(const SiStripDetId)
std::pair< float, float > measured
LA_Filler_Fitter(int methods, bool layer, bool module, float localybin, unsigned stripbin, unsigned max)
void summarize_ensembles(Book &) const
static Result result(Method, const std::string name, const Book &)
static std::string layerLabel(const SiStripDetId)
poly< std::string > varWidth(const unsigned width) const
std::ostream & operator<<(std::ostream &, const LA_Filler_Fitter::Result &)
static std::string method(Method m, bool fit=true)
static unsigned find_rebin(const TH1 *const)
Detector identifier class for the strip tracker.
static std::map< std::string, std::vector< Result > > ensemble_results(const Book &, const Method)
static TH1 * rms_profile(const std::string, const TProfile *const)
static std::map< uint32_t, Result > module_results(const Book &, const Method)
static void make_and_fit_symmchi2(Book &)
static std::string subdetLabel(const SiStripDetId)
std::pair< float, float > reco
static float pull(const std::vector< EnsembleSummary > &)
const unsigned stripsPerBin_
void fill_one_cluster(Book &, const poly< std::string > &, const unsigned, const float, const float, const float, const float) const
std::pair< float, float > calMeasured
const double ensembleLow_
poly< std::string > allAndOne(const unsigned width) const