191 Calibrator(
int,
const std::string&,
int,
int,
const std::string&,
const std::string&,
float);
333 float oldt0(
const std::string& key) {
return data[key].sumt0/float(
data[key].ntres);}
334 float xmean(
const std::string& key) {
return data[key].sumx/float(
data.size());}
335 float ymean(
const std::string& key) {
return data[key].sumy/float(
data.size());}
336 float zmean(
const std::string& key) {
return data[key].sumz/float(
data.size());}
339 std::map<std::string,caldata>
data;
Define macros for attributes used to control the static checker.
float FitResidual ATLAS_NOT_THREAD_SAFE(const std::string &, TH1F *)
Makes the residual fit.
std::set< int > selection
TDirectory *Calibrate ATLAS_NOT_THREAD_SAFE(TDirectory *, std::string, const std::string &, caldata *)
Creates root histograms, performs the t0 and R-t calibration for a given sub-module and writes the re...
float ymean(const std::string &key)
std::map< std::string, TH2F * > m_rtHists
int Simple1dHist(float, float, int, float)
A 1D histograming function.
int AddHit(const std::string &, const databundle &, int *, bool)
Adds hits to a sub-module either in the form of a single straw hit or a histogram containing all the ...
std::string GetOptString() const
Creates a string summarizing what is being done at this sub-level.
std::map< std::string, caldata > data
float FitRt ATLAS_NOT_THREAD_SAFE(const std::string &, const std::string &, TH2F *, TDirectory *)
Makes the R-t fit.
Calibrator(const Calibrator &)=delete
std::string GetBinnedRt(const std::string &)
bool HasKey(const std::string &) const
...
int UpdateOldConstants()
...
Calibrator(int, const std::string &, int, int, const std::string &, const std::string &, float)
Constructor.
float AccumulativeMean(float, float, float)
Increments a single bin in all three histograms in a sub-module.
std::map< std::string, TDirectory * > m_hdirs
float zmean(const std::string &key)
int Simple2dHist(float, float, int, float, float, int, float, float)
A 2D histograming function.
std::string GetSelString()
Creates a string summarizing which modules are being calibrated at this sub-level.
void WriteStat(TDirectory *)
Creates an ntuple with entries containing data associated with the sub-modules in a sub level.
Calibrator & operator=(const Calibrator &)=delete
float xmean(const std::string &key)
std::map< std::string, TH1F * > m_resHists
float FitTimeResidual ATLAS_NOT_THREAD_SAFE(const std::string &, TH1F *)
Makes the time residual fit.
float oldt0(const std::string &key)
std::map< std::string, TH1F * > m_tresHists
std::string PrintStat()
Prints some sub-level statistics.
bool CheckSelection(int)
Checks if a given sub-module is selected for calibration.
A class for generating a r-t and t-r graphs by binning the 2D histograms in Calibrator::rtHists in r ...
TGraphErrors * trgr
the t(r) graph
std::string m_chname
the histogram name
TGraphErrors * rtgr
the r(t) graph
std::string m_chtit
the histogram title
RtGraph & operator=(const RtGraph &other)=delete
assignment
std::vector< double > rval
array of the histograms for all bins
RtGraph(TH2F *, int, const char *, bool, TDirectory *)
the constructor
RtGraph(const RtGraph &other)=delete
copy constructor
int npoints
the number of graph points
std::vector< double > tval
the r values
float mintime
the minimum t-value
A structure to contain data associated with the calibration of a certain sub-module.
int nrt
number of rt histogram entries
int stw
straw number (within the strawlayer)
std::vector< float > m_treshist
the 1D time residual histogram (100 bins)
float reft0
the reference t0 (offset from board mean)
int det
detector (barrel or end-cap)
int ntres
number of time residual histogram entries
float t0err
the new to error
float reserr
the residual error
float y
sub-module y position (average of all straws in the module)
float rtt0
the t0 fron the R-t fit
float tres
the time residual
float z
sub-module z position (average of all straws in the module)
std::vector< float > reshist
the 1D residual histogram (100 bins)
bool rtflag
flag indicating if an R-t calibration has been made
bool calflag
flag indicating if any calibration has been made
bool t0flag
flag indicating if a t0 calibration has been made
float x
sub-module x position (average of all straws in the module)
int nres
number of residual histogram entries
float tresMean
the time residual mean
RtGraph * rtgraph
the rt graph
std::array< float, 4 > oldrtpar
the rt-parameters used in the track reconstruction
float t0off
the t0 offset from the level below
float resMean
the residual mean
std::vector< float > rthist
the 2D rt histogram (20x32 bins)
std::array< float, 4 > rtpar
the new rt-parameters
int t0fittype
the type of time residual fit that was made
double oldt02
the old sub-module t0 (average of t0 for all straws in the module)
float nhits
the number of straws in the sub-module
A structure to contain hit data.
int det
detector (barrel -1 or 1, or end-cap -2 or 2)
float rt0
reference t0 (offset from board mean)
float r
drift radius from r(t) relation
std::array< float, 4 > rtpar
rt-parameters used in the reconstruction
float t0
t0 value used in reconstruction
int stw
straw number (within the strawlayer)
float weight
histogram weight (currently set to 1)
TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)