ATLAS Offline Software
|
The TRTCalibrator is called from TRTCalibrationMgr. More...
#include <TRTCalibrator.h>
Classes | |
class | BDboard |
dictionary class for a board More... | |
class | BDchip |
dictionary class for a chip More... | |
class | BDdetector |
dictionary class for a detector More... | |
class | BDlayer |
dictionary class for a layer More... | |
class | BDmodule |
dictionary class for a module More... | |
class | BDstraw |
dictionary class for a straw More... | |
class | BDTRT |
dictionary class for the full TRT More... | |
class | BDzero |
dummy dictionary class More... | |
struct | conf |
class | epdata |
Public Member Functions | |
TRTCalibrator (const std::string &type, const std::string &name, const IInterface *parent) | |
Constructor. More... | |
virtual | ~TRTCalibrator () |
Destructor. More... | |
virtual StatusCode | initialize () override |
Pre-define standard calibration configuration. More... | |
virtual StatusCode | finalize () override |
virtual bool | fill (const Trk::Track *aTrack, TRT::TrackInfo *output) override |
bool | IncludedLevels (std::string, int *) |
std::string | SubLev (std::string, int) |
return sub-level i from a selection string with the form _X_X_X_X_X_X_X More... | |
bool | IsSubLev (const std::string &, int, const std::string &) |
returns true if the ... More... | |
void | DumpStrawData (int) |
returns true if the ... More... | |
int | GetSubLevels (const std::string &, int, std::set< int > *) |
fills a set of integers with the indexes af the sub-modules that are conatined in a selection More... | |
void | MakeBDKeys (int, int, int, int, int, int) |
makes the key strings for a sub-module More... | |
virtual bool calibrate | ATLAS_NOT_THREAD_SAFE () override |
Method for doing the actual calibration. More... | |
ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More... | |
const ServiceHandle< StoreGateSvc > & | evtStore () const |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More... | |
const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More... | |
virtual StatusCode | sysInitialize () override |
Perform system initialization for an algorithm. More... | |
virtual StatusCode | sysStart () override |
Handle START transition. More... | |
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
Return this algorithm's input handles. More... | |
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
Return this algorithm's output handles. More... | |
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
Declare a new Gaudi property. More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
Declare a new Gaudi property. More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
Declare a new Gaudi property. More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
Declare a new Gaudi property. More... | |
void | updateVHKA (Gaudi::Details::PropertyBase &) |
MsgStream & | msg () const |
MsgStream & | msg (const MSG::Level lvl) const |
bool | msgLvl (const MSG::Level lvl) const |
Static Public Member Functions | |
static const InterfaceID & | interfaceID () |
Protected Member Functions | |
void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
remove all handles from I/O resolution More... | |
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
Add StoreName to extra input/output deps as needed. More... | |
Private Types | |
enum | { CALIB_ALL =-3, CALIB_NONE =-4 } |
typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &) |
specialization for handling Gaudi::Property<SG::VarHandleKey> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &) |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &) |
specialization for handling Gaudi::Property<SG::VarHandleBase> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &) |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More... | |
Private Attributes | |
ToolHandle< ITRT_CalDbTool > | m_trtcaldbTool {this, "TRTCalDbTool", "ITRT_CalDbTool", ""} |
ToolHandle< ITRT_StrawStatusSummaryTool > | m_TRTStrawSummaryTool {this, "TRTStrawSummaryTool", "ITRT_StrawStatusSummaryTool", ""} |
ServiceHandle< ITRT_StrawNeighbourSvc > | m_neighbourSvc {this,"NeighbourSvc","ITRT_StrawNeighbourSvc","retrieve barrel and end-cap straw number" } |
Gaudi::Property< float > | m_maxDistance {this, "maxDistance" , 2.8 , ""} |
Gaudi::Property< float > | m_maxTimeResidual {this, "maxTimeResidual" , 150.0 , ""} |
Gaudi::Property< float > | m_maxTrackChisquarePerDof {this, "maxTrackChisquarePerDof" , 10.0 , ""} |
Gaudi::Property< float > | m_t0offset {this, "T0Offset" , -0.3 , ""} |
Gaudi::Property< int > | m_minTimebinsOverThreshold {this, "minTimebinsOverThreshold" , 2 , ""} |
Gaudi::Property< int > | m_minrt {this, "MinRt" , 10000 , "minimum number of hits required to do R-t calibration" } |
Gaudi::Property< int > | m_mint0 {this, "MinT0" , 200 , "minimum number of hits required to do T0 calibration" } |
Gaudi::Property< int > | m_nevents {this, "Nevents" , -1 , "The number of hits or histograms read from the input file"} |
Gaudi::Property< bool > | m_SplitBarrel {this, "SplitBarrel" , true , ""} |
Gaudi::Property< bool > | m_useP0 {this, "UseP0" , true , ""} |
Gaudi::Property< bool > | m_floatP3 {this, "FloatP3" , true , ""} |
Gaudi::Property< bool > | m_DoArXenonSep {this, "DoArXenonSep" , false , ""} |
Gaudi::Property< bool > | m_DoShortStrawCorrection {this, "DoShortStrawCorrection" , true , ""} |
Gaudi::Property< std::string > | m_selstring {this, "Selstring" , "_*_-_-_-_-_-_-" , ""} |
Gaudi::Property< std::string > | m_calsub {this, "SubPart" , "user" , ""} |
Gaudi::Property< std::string > | m_options {this, "Options" , "" , ""} |
Gaudi::Property< std::string > | m_hittuple {this, "Hittuple" , "merged.root" , ""} |
Gaudi::Property< std::string > | m_rtrel {this, "RtRel" , "basic" , "the rt relation to use"} |
Gaudi::Property< std::string > | m_rtbinning {this, "RtBinning" , "t" , ""} |
Gaudi::Property< std::string > | m_ntrtmanager {this, "TrtManagerLocation" , "TRT" , ""} |
Gaudi::Property< std::vector< std::string > > | m_doRt {this, "CalibrateRt" , {} , ""} |
Gaudi::Property< std::vector< std::string > > | m_doT0 {this, "CalibrateT0" , {} , ""} |
Gaudi::Property< std::vector< std::string > > | m_doRes {this, "FitResidual" , {} , ""} |
Gaudi::Property< std::vector< std::string > > | m_beQuiet {this, "NoHistograms" , {} , ""} |
Gaudi::Property< std::vector< std::string > > | m_useBoardRef {this, "UseBoardRef" , {} , ""} |
Gaudi::Property< std::vector< std::string > > | m_doLogPrint {this, "PrintLog" , {} , ""} |
Gaudi::Property< std::vector< std::string > > | m_doOutPrint {this, "PrintT0Out" , {} , ""} |
Gaudi::Property< std::vector< std::string > > | m_doRtPrint {this, "PrintRtOut" , {} , ""} |
const AtlasDetectorID * | m_DetID {} |
const TRT_ID * | m_TRTID {} |
const InDetDD::TRT_DetectorManager * | m_trtmanager {} |
unsigned int | m_numOfHitsTotal {} |
unsigned int | m_numOfHitsAccepted {} |
unsigned int | m_numOfProcessedTracks {} |
std::string | m_comTimeName |
std::string | m_Tkey |
std::string | m_Dkey |
std::string | m_Lkey |
std::string | m_Mkey |
std::string | m_Bkey |
std::string | m_Ckey |
std::string | m_Skey |
std::string | m_Lkey_acc |
std::string | m_Dkey_acc |
BDTRT | m_trt |
instance if the dictionary class for the full TRT More... | |
BDTRT | m_trt_acc |
instance if the dictionary class for the full TRT More... | |
std::map< std::string, conf > | m_config |
StoreGateSvc_t | m_evtStore |
Pointer to StoreGate (event store by default) More... | |
StoreGateSvc_t | m_detStore |
Pointer to StoreGate (detector store by default) More... | |
std::vector< SG::VarHandleKeyArray * > | m_vhka |
bool | m_varHandleArraysDeclared |
The TRTCalibrator is called from TRTCalibrationMgr.
Definition at line 45 of file TRTCalibrator.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
|
private |
TRTCalibrator::TRTCalibrator | ( | const std::string & | type, |
const std::string & | name, | ||
const IInterface * | parent | ||
) |
|
inlinevirtual |
|
overridevirtual |
Method for doing the actual calibration.
Implements ITRTCalibrator.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>
Definition at line 199 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 259 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore
Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 95 of file AthCommonDataStore.h.
void TRTCalibrator::DumpStrawData | ( | int | isid | ) |
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 85 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 90 of file AthCommonDataStore.h.
|
protectedinherited |
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
|
overridevirtual |
Implements ITRTCalibrator.
Definition at line 978 of file TRTCalibrator.cxx.
|
overridevirtual |
Definition at line 197 of file TRTCalibrator.cxx.
int TRTCalibrator::GetSubLevels | ( | const std::string & | key, |
int | lev, | ||
std::set< int > * | levels | ||
) |
fills a set of integers with the indexes af the sub-modules that are conatined in a selection
Definition at line 247 of file TRTCalibrator.cxx.
bool TRTCalibrator::IncludedLevels | ( | std::string | , |
int * | |||
) |
|
overridevirtual |
Pre-define standard calibration configuration.
The string-vectors "CalibrateRt" ("CalibrateT0") contains the names of the levels for which R-t (T0) calibration should be performed
The string-vectors "PrintT0Out" and "PrintRtOut" contains the names of the levels for text files containing the calibration constants should be generated
The string-vector "PrintTxtOutput" contains the names of the levels for which a text file containing the calibration constants should be generated
This standard configuration divides the Barrel in 9 parts:
"all": a single calibration for all hits in the whole TRT "-1" & "1": calibration of the barrel C- & A-side "X_Y": calibration of layer Y in barrel X-side
Definition at line 54 of file TRTCalibrator.cxx.
|
overridevirtualinherited |
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
inlinestaticinherited |
Definition at line 40 of file ITRTCalibrator.h.
void TRTCalibrator::MakeBDKeys | ( | int | bec, |
int | low, | ||
int | mod, | ||
int | brd, | ||
int | chp, | ||
int | strawid | ||
) |
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 27 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
overridevirtualinherited |
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
std::string TRTCalibrator::SubLev | ( | std::string | pat, |
int | lev | ||
) |
return sub-level i from a selection string with the form _X_X_X_X_X_X_X
Definition at line 203 of file TRTCalibrator.cxx.
|
overridevirtualinherited |
Perform system initialization for an algorithm.
We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.
Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
private |
Definition at line 148 of file TRTCalibrator.h.
|
private |
Definition at line 162 of file TRTCalibrator.h.
|
private |
Definition at line 138 of file TRTCalibrator.h.
|
private |
Definition at line 162 of file TRTCalibrator.h.
|
private |
Definition at line 161 of file TRTCalibrator.h.
|
private |
Definition at line 187 of file TRTCalibrator.h.
|
private |
Definition at line 154 of file TRTCalibrator.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
private |
Definition at line 162 of file TRTCalibrator.h.
|
private |
Definition at line 162 of file TRTCalibrator.h.
|
private |
Definition at line 134 of file TRTCalibrator.h.
|
private |
Definition at line 150 of file TRTCalibrator.h.
|
private |
Definition at line 151 of file TRTCalibrator.h.
|
private |
Definition at line 147 of file TRTCalibrator.h.
|
private |
Definition at line 145 of file TRTCalibrator.h.
|
private |
Definition at line 152 of file TRTCalibrator.h.
|
private |
Definition at line 135 of file TRTCalibrator.h.
|
private |
Definition at line 146 of file TRTCalibrator.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
private |
Definition at line 133 of file TRTCalibrator.h.
|
private |
Definition at line 140 of file TRTCalibrator.h.
|
private |
Definition at line 162 of file TRTCalibrator.h.
|
private |
Definition at line 162 of file TRTCalibrator.h.
|
private |
Definition at line 121 of file TRTCalibrator.h.
|
private |
Definition at line 122 of file TRTCalibrator.h.
|
private |
Definition at line 123 of file TRTCalibrator.h.
|
private |
Definition at line 127 of file TRTCalibrator.h.
|
private |
Definition at line 128 of file TRTCalibrator.h.
|
private |
Definition at line 126 of file TRTCalibrator.h.
|
private |
Definition at line 162 of file TRTCalibrator.h.
|
private |
Definition at line 117 of file TRTCalibrator.h.
|
private |
Definition at line 129 of file TRTCalibrator.h.
|
private |
Definition at line 143 of file TRTCalibrator.h.
|
private |
Definition at line 158 of file TRTCalibrator.h.
|
private |
Definition at line 157 of file TRTCalibrator.h.
|
private |
Definition at line 159 of file TRTCalibrator.h.
|
private |
Definition at line 139 of file TRTCalibrator.h.
|
private |
Definition at line 142 of file TRTCalibrator.h.
|
private |
Definition at line 141 of file TRTCalibrator.h.
|
private |
Definition at line 137 of file TRTCalibrator.h.
|
private |
Definition at line 162 of file TRTCalibrator.h.
|
private |
Definition at line 131 of file TRTCalibrator.h.
|
private |
Definition at line 124 of file TRTCalibrator.h.
|
private |
Definition at line 162 of file TRTCalibrator.h.
|
private |
instance if the dictionary class for the full TRT
Definition at line 172 of file TRTCalibrator.h.
|
private |
instance if the dictionary class for the full TRT
Definition at line 174 of file TRTCalibrator.h.
|
private |
Definition at line 115 of file TRTCalibrator.h.
Definition at line 155 of file TRTCalibrator.h.
|
private |
Definition at line 156 of file TRTCalibrator.h.
|
private |
Definition at line 116 of file TRTCalibrator.h.
|
private |
Definition at line 149 of file TRTCalibrator.h.
|
private |
Definition at line 132 of file TRTCalibrator.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.