1 #ifndef LA_FILLER_FITTER_H 2 #define LA_FILLER_FITTER_H 49 case WIDTH:
return "_width_prof";
55 default:
return "_UNKNOWN";
63 Result() : reco(1000,0), measured(1000,0), calMeasured(1000,0),
64 field(0), chi2(0), ndof(0), entries(0) {}
71 EnsembleSummary() : meanMeasured(0,0), sigmaMeasured(0,0), meanUncertainty(0,0), pull(0,0),
72 truth(0), samples(0) {}
79 const unsigned,
const float,
const float,
const float,
const float)
const;
86 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 );}
103 static std::pair<std::pair<float,float>, std::pair<float,float> >
offset_slope(
const std::vector<EnsembleSummary>&);
104 static float pull(
const std::vector<EnsembleSummary>&);
std::string layerLabel(const SiStripDetId) const
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
void summarize_ensembles(Book &) const
static Result result(Method, const std::string name, const Book &)
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.
LA_Filler_Fitter(int methods, int M, int N, double low, double up, unsigned max, const TrackerTopology *tTopo)
static std::map< std::string, std::vector< Result > > ensemble_results(const Book &, const Method)
static TH1 * rms_profile(const std::string, const TProfile *const)
const TrackerTopology * tTopo_
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_
LA_Filler_Fitter(int methods, bool layer, bool module, float localybin, unsigned stripbin, unsigned max, const TrackerTopology *tTopo)
poly< std::string > allAndOne(const unsigned width) const