|
ATLAS Offline Software
|
#include <TRTCalibrationMgr.h>
|
| TRTCalibrationMgr (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~TRTCalibrationMgr (void) |
|
virtual StatusCode | initialize (void) override |
|
virtual StatusCode | execute (void) override |
|
virtual StatusCode | finalize (void) override |
|
StatusCode | streamOutCalibObjects () |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. 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 | 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 |
|
|
ToolHandleArray< IFillAlignTrkInfo > | m_TrackInfoTools {this, "AlignTrkTools", {}, ""} |
|
PublicToolHandleArray< ITRTCalibrator > | m_TRTCalibTools {this, "TRTCalibrator", {}, ""} |
|
ToolHandleArray< IFitTool > | m_FitTools {this, "FitTools", {}, ""} |
|
ToolHandle< Trk::ITrackFitter > | m_trackFitter {this, "TrackFitter", "Trk::GlobalChi2Fitter/InDetTrackFitter", ""} |
|
ToolHandle< Trk::ITrackSelectorTool > | m_trackSelector {this, "TrackSelectorTool", "InDet::InDetTrackSelectorTool/InDetTrackSelectorTool", "Tool for the selection of tracks"} |
|
ToolHandle< IAthenaOutputStreamTool > | m_streamer {this, "StreamTool", "AthenaOutputStreamTool/CondStream1", "OutputStreamTool"} |
|
Gaudi::Property< bool > | m_dorefit {this, "DoRefit" , true , "Does a Re-Fit"} |
|
Gaudi::Property< bool > | m_docalibrate {this, "DoCalibrate" , false, "Does the calibration"} |
|
Gaudi::Property< bool > | m_writeConstants {this, "WriteConstants", false, "Write out the calibration constants"} |
|
Gaudi::Property< unsigned int > | m_max_ntrk {this, "Max_ntrk", 100000, ""} |
|
Gaudi::Property< std::string > | m_par_rtcontainerkey {this, "Par_rtcontainer", "/TRT/Calib/RT", ""} |
|
Gaudi::Property< std::string > | m_par_t0containerkey {this, "par_t0container", "/TRT/Calib/T0", ""} |
|
int | m_ntrk = 0 |
|
SG::ReadHandleKey< xAOD::VertexContainer > | m_verticesKey {this, "VerticesKey" , "PrimaryVertices" , "RHK for primary vertices" } |
|
SG::ReadHandleKey< xAOD::EventInfo > | m_EventInfoKey {this, "EventInfoKey" , "EventInfo" , "RHK for xAOD::EventInfo" } |
|
SG::ReadHandleKey< TrackCollection > | m_TrkCollection {this, "TrkCollectionKey", "CombinedInDetTracks", "RHKs for track collections"} |
|
DataObjIDColl | m_extendedExtraObjects |
|
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 |
|
This algorithm controls the flow of the TRT calibration.
Documentation being updated (Jan 2009)
The calculation of t0 from the timeresidual histogram is made in the following way: First it is checked where the maximum bin is located. If its absolute value is bigger then 5 ns NO fit is made, but the histogram mean value is used for Dt0 instead (this was just taken from previous versions and I have never really questioned the reason for it). If the highest bin is lower than 5 ns a normal gaussian fit is made and Dt0 is set to the mean of that. The new t0 is then the old t0
@author Chafik, Johan, Alex
Definition at line 58 of file TRTCalibrationMgr.h.
◆ RtRelationContainer
◆ StoreGateSvc_t
◆ StrawT0Container
◆ TRTCalibrationMgr()
TRTCalibrationMgr::TRTCalibrationMgr |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~TRTCalibrationMgr()
TRTCalibrationMgr::~TRTCalibrationMgr |
( |
void |
| ) |
|
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
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.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
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.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
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.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
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.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode TRTCalibrationMgr::execute |
( |
void |
| ) |
|
|
overridevirtual |
Definition at line 100 of file TRTCalibrationMgr.cxx.
107 return StatusCode::SUCCESS;
111 return StatusCode::FAILURE;
124 if (not vertices.isValid())
126 ATH_MSG_DEBUG(
"Couldn't retrieve VertexContainer with key: PrimaryVertices");
127 return StatusCode::SUCCESS;
130 int countVertices(0);
135 if (vx->nTrackParticles() >= 3)
139 if (countVertices < 1)
142 return StatusCode::SUCCESS;
150 return StatusCode::FAILURE;
162 if (trks->size() < 3)
164 ATH_MSG_INFO(
"skipping event, it contains only " << trks->size() <<
" tracks (less than 3)");
165 return StatusCode::SUCCESS;
171 return StatusCode::SUCCESS;
209 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
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
◆ extraOutputDeps()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ finalize()
StatusCode TRTCalibrationMgr::finalize |
( |
void |
| ) |
|
|
overridevirtual |
Definition at line 214 of file TRTCalibrationMgr.cxx.
217 gROOT->SetMustClean(
false);
220 std::vector<IdentifierProfileHistogram*>
histograms;
224 return StatusCode::FAILURE;
227 return StatusCode::SUCCESS;
◆ initialize()
StatusCode TRTCalibrationMgr::initialize |
( |
void |
| ) |
|
|
overridevirtual |
Definition at line 38 of file TRTCalibrationMgr.cxx.
45 return StatusCode::FAILURE;
52 return StatusCode::FAILURE;
58 return StatusCode::FAILURE;
63 return StatusCode::FAILURE;
86 ATH_MSG_INFO(
"Set the ToolHandle to None if track selection is supposed to be disabled");
95 return StatusCode::SUCCESS;
◆ inputHandles()
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.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
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.
◆ renounce()
◆ renounceArray()
◆ streamOutCalibObjects()
StatusCode TRTCalibrationMgr::streamOutCalibObjects |
( |
| ) |
|
Definition at line 230 of file TRTCalibrationMgr.cxx.
234 if (
sc.isFailure()) {
236 return( StatusCode::FAILURE);
244 if (
sc.isFailure()) {
246 return( StatusCode::FAILURE);
250 if (
sc.isFailure()) {
252 return( StatusCode::FAILURE);
255 ATH_MSG_INFO(
" Streamed out and committed " << typeKeys.size() <<
" objects " );
256 return StatusCode::SUCCESS;
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_detStore
◆ m_docalibrate
Gaudi::Property<bool> TRTCalibrationMgr::m_docalibrate {this, "DoCalibrate" , false, "Does the calibration"} |
|
private |
◆ m_dorefit
Gaudi::Property<bool> TRTCalibrationMgr::m_dorefit {this, "DoRefit" , true , "Does a Re-Fit"} |
|
private |
◆ m_EventInfoKey
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_FitTools
ToolHandleArray<IFitTool> TRTCalibrationMgr::m_FitTools {this, "FitTools", {}, ""} |
|
private |
◆ m_max_ntrk
Gaudi::Property<unsigned int> TRTCalibrationMgr::m_max_ntrk {this, "Max_ntrk", 100000, ""} |
|
private |
◆ m_ntrk
int TRTCalibrationMgr::m_ntrk = 0 |
|
private |
◆ m_par_rtcontainerkey
Gaudi::Property<std::string> TRTCalibrationMgr::m_par_rtcontainerkey {this, "Par_rtcontainer", "/TRT/Calib/RT", ""} |
|
private |
◆ m_par_t0containerkey
Gaudi::Property<std::string> TRTCalibrationMgr::m_par_t0containerkey {this, "par_t0container", "/TRT/Calib/T0", ""} |
|
private |
◆ m_streamer
◆ m_trackFitter
◆ m_TrackInfoTools
ToolHandleArray<IFillAlignTrkInfo> TRTCalibrationMgr::m_TrackInfoTools {this, "AlignTrkTools", {}, ""} |
|
private |
◆ m_trackSelector
◆ m_TrkCollection
◆ m_TRTCalibTools
PublicToolHandleArray<ITRTCalibrator> TRTCalibrationMgr::m_TRTCalibTools {this, "TRTCalibrator", {}, ""} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_verticesKey
◆ m_vhka
◆ m_writeConstants
Gaudi::Property<bool> TRTCalibrationMgr::m_writeConstants {this, "WriteConstants", false, "Write out the calibration constants"} |
|
private |
The documentation for this class was generated from the following files:
Const iterator class for DataVector/DataList.
SG::ReadHandleKey< xAOD::VertexContainer > m_verticesKey
Gaudi::Property< unsigned int > m_max_ntrk
static const char * classname()
classname used to talk to iovservice
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Gaudi::Property< std::string > m_par_rtcontainerkey
const TrackInfo & info() const
Returns a const ref to info of a const tracks.
PublicToolHandleArray< ITRTCalibrator > m_TRTCalibTools
Gaudi::Property< bool > m_dorefit
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
ToolHandle< Trk::ITrackFitter > m_trackFitter
std::vector< SG::VarHandleKeyArray * > m_vhka
ToolHandleArray< IFillAlignTrkInfo > m_TrackInfoTools
Gaudi::Property< std::string > m_par_t0containerkey
Gaudi::Property< bool > m_writeConstants
bool RunOutlierRemoval
switch to toggle quality processing after fit
virtual void setOwner(IDataHandleHolder *o)=0
virtual StatusCode finalize(void) override
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
void fill(H5::Group &out_file, size_t iterations)
This class provides general information about an event. Event information is provided by the accessor...
static const char * classname()
classname used to talk to iovservice
StatusCode streamOutCalibObjects()
ToolHandle< Trk::ITrackSelectorTool > m_trackSelector
DataObjIDColl m_extendedExtraObjects
Class describing a Vertex.
#define ATH_MSG_WARNING(x)
SG::ReadHandleKey< xAOD::EventInfo > m_EventInfoKey
SG::ReadHandleKey< TrackCollection > m_TrkCollection
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
ToolHandleArray< IFitTool > m_FitTools
Gaudi::Property< bool > m_docalibrate
ParticleHypothesis particleHypothesis() const
Returns the particle hypothesis used for Track fitting.
ToolHandle< IAthenaOutputStreamTool > m_streamer