|
ATLAS Offline Software
|
Go to the documentation of this file.
191 Calibrator(
int,
const std::string&,
int,
int,
const std::string&,
const std::string&,
float);
223 int Simple2dHist(
float,
float,
int,
float,
float,
int,
float,
float);
297 bool HasKey(
const std::string&)
const;
339 std::map<std::string,caldata>
data;
std::string m_name
The name of the Calibrator instance.
float ymean(const std::string &key)
bool printt0
if true a t0 entry in the calibration output file is prined for each sub-module in this sub-level
int det
detector (barrel -1 or 1, or end-cap -2 or 2)
bool dort
if true an rt fit is made, if false the value from the level above is used
float m_maxres
upper limit of 1D residual histogram
bool nort
if true the old rt parameters are copied to the new ones
int m_nbinsr
number of r-bins in the 2D rt histogram
std::vector< float > rthist
the 2D rt histogram (20x32 bins)
int t0fittype
the type of time residual fit that was made
bool printlog
if true a log entry is prined for each sub-modile in this sub-level
float nhits
the number of straws in the sub-module
float oldt0(const std::string &key)
int ntres
number of time residual histogram entries
float m_maxtres
upper limit of 1D time residual histogram
float m_mintres
lower limit of 1D time residual histogram
int UpdateOldConstants()
...
A structure to contain data associated with the calibration of a certain sub-module.
bool HasKey(const std::string &) const
...
std::map< std::string, TDirectory * > m_hdirs
...
float m_t0shift
the t0 shift
float zmean(const std::string &key)
float m_maxt
upper limit of t in 2D rt histogram
A structure to contain data associated with the calibration of a certain sub-module.
bool CheckSelection(int)
Checks if a given sub-module is selected for calibration.
bool printrt
if true an rt entry in the calibration output file is prined for each sub-module in this sub-level
float x
sub-module x position (average of all straws in the module)
int det
detector (barrel or end-cap)
float FitResidual ATLAS_NOT_THREAD_SAFE(const std::string &, TH1F *)
Makes the residual fit.
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...
bool dot0
if true a time residual fit is made, if false the value from the level above is used
float resMean
the residual mean
double oldt02
the old sub-module t0 (average of t0 for all straws in the module)
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
int m_nbinst
number of t-bins in the 2D rt histogram
float FitTimeResidual ATLAS_NOT_THREAD_SAFE(const std::string &, TH1F *)
Makes the time residual fit.
bool usebref
if true chip reference t0 values (offset from board mean) are used
bool floatp3
if true the 3rd order coeficcient of the rt fit function is not fixed to 0
float y
sub-module y position (average of all straws in the module)
bool rtflag
flag indicating if an R-t calibration has been made
int stw
straw number (within the strawlayer)
bool dores
if true a residual fit is made
std::map< std::string, TH1F * > m_tresHists
...
bool usep0
if true the 0th order coeficcient of the rt fit function is not set to 0 in the calibration output fi...
float t0off
the t0 offset from the level below
std::string m_rtbinning
The direction to do the R-t binning.
bool t0flag
flag indicating if a t0 calibration has been made
float m_minr
lower limit of r in 2D rt histogram
std::string GetOptString() const
Creates a string summarizing what is being done at this sub-level.
float FitRt ATLAS_NOT_THREAD_SAFE(const std::string &, const std::string &, TH2F *, TDirectory *)
Makes the R-t fit.
std::map< std::string, TH2F * > m_rtHists
...
RtGraph * rtgraph
the rt graph
std::array< float, 4 > rtpar
the new rt-parameters
int nrt
number of rt histogram entries
std::string m_chname
the histogram name
Calibrator & operator=(const Calibrator &)=delete
float m_mint
lower limit of t in 2D rt histogram
int Simple2dHist(float, float, int, float, float, int, float, float)
A 2D histograming function.
float weight
histogram weight (currently set to 1)
std::set< int > selection
a set containing the sub-modules to be calibrated
float t0err
the new to error
float tres
the time residual
float tresMean
the time residual mean
void WriteStat(TDirectory *)
Creates an ntuple with entries containing data associated with the sub-modules in a sub level.
int Simple1dHist(float, float, int, float)
A 1D histograming function.
int m_mint0stat
minimum number of hits in a sub-module required to do a t0 calibration
std::array< float, 4 > rtpar
rt-parameters used in the reconstruction
bool useshortstraws
if true a shift of -0.75 ns is applied for straws in layer ==0, strawlayer < 9, and when doing calibr...
float m_maxr
upper limit of r in 2D rt histogram
float reserr
the residual error
std::string PrintStat()
Prints some sub-level statistics.
bool not0
if true the old t0 valus is copied to the new one
std::map< std::string, TH1F * > m_resHists
...
A structure to contain hit data.
RtGraph(TH2F *, int, const char *, bool, TDirectory *)
the constructor
std::string m_chtit
the histogram title
bool calflag
flag indicating if any calibration has been made
float AccumulativeMean(float, float, float)
Increments a single bin in all three histograms in a sub-module.
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 GetSelString()
Creates a string summarizing which modules are being calibrated at this sub-level.
float rt0
reference t0 (offset from board mean)
float m_minres
lower limit of 1D residual histogram
std::vector< float > m_treshist
the 1D time residual histogram (100 bins)
int nres
number of residual histogram entries
int stw
straw number (within the strawlayer)
std::vector< float > reshist
the 1D residual histogram (100 bins)
int m_nbinsres
number of bins in the 1D residual histogram
Calibrator(const Calibrator &)=delete
float r
drift radius from r(t) relation
float rtt0
the t0 fron the R-t fit
float xmean(const std::string &key)
float reft0
the reference t0 (offset from board mean)
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
A class for generating a r-t and t-r graphs by binning the 2D histograms in Calibrator::rtHists in r ...
bool m_isdines
true if the rt relation is Dines'
bool bequiet
if true no histograms are written to the root file
float t0
t0 value used in reconstruction
int m_nbinstres
number of bins in the 1D time residual histogram
Define macros for attributes used to control the static checker.
int level
the sub-level of the Calibrator instance
int m_minrtstat
minimum number of hits in a sub-module required to do an R-t calibration
std::array< float, 4 > oldrtpar
the rt-parameters used in the track reconstruction
float z
sub-module z position (average of all straws in the module)
std::string GetBinnedRt(const std::string &)
std::map< std::string, caldata > data
A map between the sub-module identifier string and the calibration data structure (caldata)