|
ATLAS Offline Software
|
Go to the documentation of this file.
21 #include "TDirectoryFile.h"
22 #include "TGraphErrors.h"
36 Calib (
int whichPart,
bool saveFile,
const std::string & moduleName =
"") {
41 m_wFile = std::make_unique<TFile>(
m_layers.at(whichPart)+
".HIST.root",
"RECREATE");
43 if( not moduleName.empty() ){
50 m_wFile->Write(0,TObject::kOverwrite);
54 bool fillThresholds(
const pix::PixelMapping &pm,
const std::string &inThrFile, std::map<
unsigned int , std::vector<std::unique_ptr<CalibFrontEndInfo>> > &map_info);
55 bool fillTiming (
const pix::PixelMapping &pm,
const std::string &inTimFile, std::map<
unsigned int , std::vector<std::unique_ptr<CalibFrontEndInfo>> > &map_info);
56 bool totFitting (
const pix::PixelMapping &pm,
const std::string &inTimFile, std::map<
unsigned int , std::vector<std::unique_ptr<CalibFrontEndInfo>> > &map_info);
71 const std::array<TString, 4>
m_layers{
"Blayer",
"L1",
"L2",
"Disk"};
94 static constexpr
int m_nFE = 16;
96 static constexpr std::array<float, m_ncharge>
m_chargeArr{ 3000, 3500, 4000, 4500, 5000, 5500, 6000, 6500, 7000, 7500, 8000, 8500, 9000, 9500, 10000, 12000, 14000, 16000, 18000, 20000, 25000};
97 static constexpr std::array<float, m_ncharge>
m_chargeErrArr{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
103 int chipId(
int iphi,
int ieta);
104 int pixelType(
int iphi,
int ieta,
bool isForTOT =
false);
111 bool reFit_normalPix(std::vector<float> &
params, std::vector<float> &
q, std::vector<float> &qerr, std::vector<float> &tot, std::vector<float> &toterr, std::vector<float> &
sig, std::vector<float> &sigerr,
const unsigned int fe);
112 void graphTitles(
const std::unique_ptr<TGraphErrors> &graph,
const std::string &
name,
const std::string &Yname);
static constexpr float m_chi_error
const std::array< TString, 4 > m_layers
static constexpr int m_phiBins
int chipId(int iphi, int ieta)
static constexpr int m_nFE
TIter getRodIterator(const TFile &inputFile)
static constexpr std::array< float, m_ncharge > m_chargeArr
int pixelType(int iphi, int ieta, bool isForTOT=false)
const std::array< TString, 4 > m_MODprefixes
static constexpr float m_sigLo
double operator()(double *x, double *par)
static constexpr float m_thrLo
static constexpr float m_totsigLo
static constexpr int m_timnbins
static constexpr float m_totHi
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
std::vector< float > getParams_quality(const TF1 *f)
static constexpr float m_thrHi
static constexpr float m_timHi
static constexpr float m_timLo
static constexpr std::array< float, m_ncharge > m_chargeErrArr
bool reFit_normalPix(std::vector< float > ¶ms, std::vector< float > &q, std::vector< float > &qerr, std::vector< float > &tot, std::vector< float > &toterr, std::vector< float > &sig, std::vector< float > &sigerr, const unsigned int fe)
std::unique_ptr< TFile > m_wFile
static constexpr float m_totsigHi
TIter getModuleIterator(TDirectoryFile *rodDir)
static constexpr int m_etaBins
Calib(int whichPart, bool saveFile, const std::string &moduleName="")
double operator()(double *x, double *par)
static constexpr int m_qthresh
double charge(const T &p)
static constexpr int m_thrnbins
static constexpr int m_totsigNBins
static constexpr float m_sigHi
void graphTitles(const std::unique_ptr< TGraphErrors > &graph, const std::string &name, const std::string &Yname)
static constexpr int m_totnbins
bool fillThresholds(const pix::PixelMapping &pm, const std::string &inThrFile, std::map< unsigned int, std::vector< std::unique_ptr< CalibFrontEndInfo >> > &map_info)
bool moduleInPart(const TString &modName)
static constexpr int m_ncharge
std::vector< float > getParams(const TF1 *f, unsigned int params)
TH2F * get2DHistogramFromPath(TDirectoryFile *rodDir, const TString &moduleName, const TString &histName, int charge=-1)
bool totFitting(const pix::PixelMapping &pm, const std::string &inTimFile, std::map< unsigned int, std::vector< std::unique_ptr< CalibFrontEndInfo >> > &map_info)
static constexpr float m_totLo
bool fillTiming(const pix::PixelMapping &pm, const std::string &inTimFile, std::map< unsigned int, std::vector< std::unique_ptr< CalibFrontEndInfo >> > &map_info)