 |
ATLAS Offline Software
|
#include <MdtCalibDbAlg.h>
|
virtual | ~MdtCalibDbAlg ()=default |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | execute (const EventContext &ctx) const override |
|
virtual bool | isReEntrant () const override |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual bool | isClonable () const override |
| Specify if the algorithm is clonable. More...
|
|
virtual unsigned int | cardinality () const override |
| Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
|
|
virtual StatusCode | sysExecute (const EventContext &ctx) override |
| Execute an algorithm. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
virtual bool | filterPassed (const EventContext &ctx) const |
|
virtual void | setFilterPassed (bool state, const EventContext &ctx) const |
|
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, V, H > &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 |
|
|
StatusCode | parseRtPayload (const nlohmann::json &rtBlob, MuonCalib::MdtCalibDataContainer &outContainer) const |
|
StatusCode | parseRtPayload (TTree &rtTree, MuonCalib::MdtCalibDataContainer &outContainer) const |
| Reads a r-t ROOT tree and stores its content in the calibration constant container. More...
|
|
MuonCalib::IRtRelationPtr | makeRt (const std::string &rtType, const std::vector< double > &pars) const |
| Creates a new rt function from the typeName & the list of parameters. More...
|
|
MuonCalib::ITrRelationPtr | makeTr (const std::string &trType, const std::vector< double > &pars) const |
| Creates a new tr function from the typeName & the list of parameters. More...
|
|
MuonCalib::IRtResolutionPtr | makeReso (const std::string &resoType, const std::vector< double > &pars, MuonCalib::IRtRelationPtr rt) const |
| Creates a new resoltuion function from the typeName & the list of parameters. More...
|
|
StatusCode | parseT0Payload (const nlohmann::json &t0Blob, MuonCalib::MdtCalibDataContainer &outContainer) const |
| Trnaslates a t0 - JSON payload into transient memory. More...
|
|
StatusCode | parseT0Payload (TTree &t0Tree, MuonCalib::MdtCalibDataContainer &outContainer) const |
| Translates a T0 TTree payload into transient memory. More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
|
ServiceHandle< Muon::IMuonIdHelperSvc > | m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"} |
|
SG::WriteCondHandleKey< MuonCalib::MdtCalibDataContainer > | m_writeKey |
|
Gaudi::Property< std::string > | m_rtJSON {this, "RtJSON", ""} |
| External Rt & T0 JSON files. More...
|
|
Gaudi::Property< std::string > | m_t0JSON {this, "TubeT0JSON", ""} |
|
Gaudi::Property< std::string > | m_rtRootFile |
|
Gaudi::Property< std::string > | m_t0RootFile |
|
Gaudi::Property< std::string > | m_rtTreeName {this, "RtTreeName", "RtCalibConstants"} |
|
Gaudi::Property< std::string > | m_t0TreeName {this, "T0TreeName", "T0CalibConstants"} |
|
SG::ReadCondHandleKey< CondAttrListCollection > | m_readKeyRt {this, "ReadKeyRt", "/MDT/RTJSON", "DB folder containing the RT calibrations"} |
|
SG::ReadCondHandleKey< CondAttrListCollection > | m_readKeyTube {this, "ReadKeyTube", "/MDT/T0JSON", "DB folder containing the tube constants"} |
|
Gaudi::Property< std::string > | m_dbPayloadType {this, "dbPayloadType","TTree", "specify the format of the payload in the database. Can be TTree or JSON"} |
|
Gaudi::Property< double > | m_prop_beta {this, "PropagationSpeedBeta", 1., "Speed of the signal propagation"} |
|
Gaudi::Property< unsigned > | m_t0CalibPrec {this, "T0CalibPrecision", 4} |
| Precision cut off to treat 2 t0 constants as equivalent. More...
|
|
Gaudi::Property< bool > | m_create_b_field_function |
|
Gaudi::Property< bool > | m_createSlewingFunction |
|
DataObjIDColl | m_extendedExtraObjects |
| Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
|
|
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 |
|
◆ CorrectionPtr
◆ RtRelationPtr
◆ StoreGateSvc_t
◆ TubeContainerPtr
◆ ~MdtCalibDbAlg()
virtual MuonCalibR4::MdtCalibDbAlg::~MdtCalibDbAlg |
( |
| ) |
|
|
virtualdefault |
◆ cardinality()
Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
Override this to return 0 for reentrant algorithms.
Override this to return 0 for reentrant algorithms.
Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.
◆ 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);
◆ 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.
◆ 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.
◆ 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 MdtCalibDbAlg::execute |
( |
const EventContext & |
ctx | ) |
const |
|
overridevirtual |
Load the t0 blob
Parse the constants from the database
Definition at line 91 of file MuonPhaseII/MuonConditions/MuonCondAlgR4/src/MdtCalibDbAlg.cxx.
94 if(writeHandle.isValid()) {
95 ATH_MSG_DEBUG(
"CondHandle " << writeHandle.fullKey() <<
" is already valid.");
96 return StatusCode::SUCCESS;
99 auto writeCdo = std::make_unique<MdtCalibDataContainer>(
m_idHelperSvc.get(), RegionGranularity::OnePerMultiLayer);
107 writeHandle.addDependency(readHandle);
109 itr != readHandle->end(); ++itr) {
113 return StatusCode::FAILURE;
119 std::unique_ptr<TTree>
tree;
122 return StatusCode::FAILURE;
130 return StatusCode::FAILURE;
136 return StatusCode::FAILURE;
144 return StatusCode::FAILURE;
146 TTree*
tree{
nullptr};
150 return StatusCode::FAILURE;
153 }
else if (!
m_rtJSON.value().empty()) {
157 return StatusCode::FAILURE;
166 writeHandle.addDependency(readHandle);
168 itr != readHandle->end(); ++itr) {
172 return StatusCode::FAILURE;
178 std::unique_ptr<TTree>
tree;
181 return StatusCode::FAILURE;
189 return StatusCode::FAILURE;
195 return StatusCode::FAILURE;
203 return StatusCode::FAILURE;
205 TTree*
tree{
nullptr};
209 return StatusCode::FAILURE;
216 return StatusCode::FAILURE;
223 ATH_CHECK(writeHandle.record(std::move(writeCdo)));
225 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()
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.
◆ filterPassed()
◆ initialize()
StatusCode MdtCalibDbAlg::initialize |
( |
| ) |
|
|
overridevirtual |
◆ 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.
◆ isClonable()
◆ isReEntrant()
virtual bool MuonCalibR4::MdtCalibDbAlg::isReEntrant |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ makeReso()
Creates a new resoltuion function from the typeName & the list of parameters.
- Parameters
-
trType | Tr-relation type to create |
pars | Parameter vector to parse to the Tr-relation |
rt | Point to the rt relation created before. |
Definition at line 317 of file MuonPhaseII/MuonConditions/MuonCondAlgR4/src/MdtCalibDbAlg.cxx.
320 if (resoType ==
"RtResolutionLookUp") {
321 rtReso = std::make_unique<RtResolutionLookUp>(resoParams);
322 }
else if (resoType ==
"RtResolutionChebyshev") {
323 rtReso = std::make_unique<RtResolutionChebyshev>(resoParams);
324 }
else if (resoType ==
"RadiusResolutionChebyshev") {
325 rtReso = std::make_unique<RadiusResolutionChebyshev>(resoParams, rt);
327 ATH_MSG_FATAL(
"The rt resolution type <"<<resoType<<
"> is not yet supported.");
◆ makeRt()
Creates a new rt function from the typeName & the list of parameters.
- Parameters
-
rtType | Rt-relation type to create |
pars | Parameter vector to parse to the Rt-relation |
Definition at line 283 of file MuonPhaseII/MuonConditions/MuonCondAlgR4/src/MdtCalibDbAlg.cxx.
285 if (rtType ==
"RtRelationLookUp") {
286 rtRel = std::make_unique<RtRelationLookUp>(rtParams);
287 }
else if (rtType ==
"RtLegendre"){
288 rtRel = std::make_unique<RtLegendre>(rtParams);
289 }
else if (rtType ==
"RtChebyshev") {
290 rtRel = std::make_unique<RtChebyshev>(rtParams);
293 ATH_MSG_VERBOSE(
"Fetched new rt-relation <"<<rtType<<
"> valid for drift times ranging from "
294 <<rtRel->tLower()<<
"-"<<rtRel->tUpper()<<
".");
296 ATH_MSG_FATAL(
"The rt-relation function type <"<<rtType<<
"> is not yet supported.");
◆ makeTr()
Creates a new tr function from the typeName & the list of parameters.
- Parameters
-
trType | Tr-relation type to create |
pars | Parameter vector to parse to the Tr-relation |
Definition at line 301 of file MuonPhaseII/MuonConditions/MuonCondAlgR4/src/MdtCalibDbAlg.cxx.
303 if (trType ==
"TrChebyshev") {
304 trRel = std::make_unique<TrChebyshev>(trParams);
305 }
else if(trType ==
"TrLegendre") {
306 trRel = std::make_unique<TrLegendre>(trParams);
309 ATH_MSG_VERBOSE(
"Fetched new tr-relation <"<<trType<<
"> valid for drift radii ranging from "
310 <<trRel->minRadius()<<
"-"<<trRel->maxRadius()<<
".");
312 ATH_MSG_FATAL(
"The rt-relation function type <"<<trType<<
"> is not yet supported.");
◆ 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.
◆ parseRtPayload() [1/2]
Loop over the R-T blob payload
Fetch the associated detector elements
Defining constants of the rt-relation
Defining constants of the rt-resolution
Load the rt constants to the assigned detector elements
Definition at line 331 of file MuonPhaseII/MuonConditions/MuonCondAlgR4/src/MdtCalibDbAlg.cxx.
336 for (
auto&
payload : rtBlob.items()) {
337 std::vector<Identifier> detIds{};
341 for (
auto& chambList : calibConstants[
"chambers"].
items()) {
343 const std::string station = chambPayload[
"station"];
344 const int eta = chambPayload[
"eta"];
345 const int phi = chambPayload[
"phi"];
346 const int ml = chambPayload[
"ml"];
347 const Identifier mlId{idHelper.channelID(station, eta, phi, ml, 1, 1)};
348 detIds.emplace_back(mlId);
356 return StatusCode::FAILURE;
358 if (calibConstants.find(
"trRelation") != calibConstants.end()) {
360 trRel =
makeTr(trPayload[
"type"], trPayload[
"params"]);
362 return StatusCode::FAILURE;
369 return StatusCode::FAILURE;
372 std::make_unique<MdtRtRelation>(std::move(rtRel), std::move(rtReso), std::move(trRel));
378 outContainer.
getCalibData(mlId, msgStream())->rtRelation) {
381 if (!outContainer.
storeData(mlId, mdtRel, msgStream())) {
382 return StatusCode::FAILURE;
386 return StatusCode::SUCCESS;
◆ parseRtPayload() [2/2]
Reads a r-t ROOT tree and stores its content in the calibration constant container.
- Parameters
-
rtTree | TTree to read the data from |
outContainer | Output container append the Rt relations |
Definition at line 229 of file MuonPhaseII/MuonConditions/MuonCondAlgR4/src/MdtCalibDbAlg.cxx.
233 std::string* rtType{
nullptr}, *trType{
nullptr}, *resoType{
nullptr};
235 std::vector<double>* rtParams{
nullptr}, *trParams{
nullptr}, *resoParams{
nullptr};
252 for (Long64_t
e = 0;
e< rtTree.GetEntries(); ++
e) {
255 std::vector<Identifier> detIds{};
259 detIds.emplace_back(detElId);
263 return StatusCode::FAILURE;
266 if ((*trType).size() && !trRel) {
267 return StatusCode::FAILURE;
271 return StatusCode::FAILURE;
274 std::make_unique<MdtRtRelation>(std::move(rtRel), std::move(rtReso), std::move(trRel));
276 if (!outContainer.
storeData(detId, mdtRel, msgStream())){
277 return StatusCode::FAILURE;
281 return StatusCode::SUCCESS;
◆ parseT0Payload() [1/2]
Trnaslates a t0 - JSON payload into transient memory.
- Parameters
-
t0Blob | JSON payload to be translated |
outContainer | Container into which the t0 constants are stored |
Loop over the R-T blob payload
Definition at line 444 of file MuonPhaseII/MuonConditions/MuonCondAlgR4/src/MdtCalibDbAlg.cxx.
450 for (
auto& dbEntry : t0Blob.items()) {
452 const std::string station =
payload[
"station"];
458 ATH_MSG_FATAL(
"Failed to create a valid identifier from "<<station<<
", "<<eta<<
", "<<phi);
459 return StatusCode::FAILURE;
466 calibConstant.
t0 = calibPayload[
"t0"];
467 calibConstant.adcCal = calibPayload[
"adc"];
468 calibConstant.statusCode = calibPayload[
"code"];
469 for (
auto& tubeEntry : calibPayload[
"tubes"].
items()) {
471 const int ml = tubePayload[
"ml"];
472 const int tubeLayer = tubePayload[
"tl"];
473 const std::string tubeStr = tubePayload[
"no"];
475 std::vector<int> tubes{};
476 for (
const std::string& token: tubeTokens) {
477 if (token.find(
"-") == std::string::npos) {
481 if (rangeToken.size() != 2) {
483 return StatusCode::FAILURE;
486 if (tubeLow >= tubeHigh){
488 <<
". The lower end must be strictly smaller than the upper one");
489 return StatusCode::FAILURE;
492 tubes.push_back(
tube);
496 for (
const int tube : tubes) {
500 <<
", layer: "<<tubeLayer<<
", tube: "<<
tube);
501 return StatusCode::FAILURE;
503 if (!calibChannels->
setCalib(calibConstant, tubeId, msgStream())){
504 return StatusCode::FAILURE;
509 if (!outContainer.
storeData(detId, std::move(calibChannels), msgStream())) {
510 return StatusCode::FAILURE;
514 return StatusCode::SUCCESS;
◆ parseT0Payload() [2/2]
Translates a T0 TTree payload into transient memory.
- Parameters
-
t0Tree | Reference to the TTree to translate |
outContainer | Container into which the t0 constants are stored |
Definition at line 389 of file MuonPhaseII/MuonConditions/MuonCondAlgR4/src/MdtCalibDbAlg.cxx.
395 float t0{0.f},
adc{0.f};
396 std::vector<unsigned short>*
multiLayer{
nullptr}, *tubeLayer{
nullptr}, *
tube{
nullptr};
411 for (Long64_t
e = 0 ;
e <t0Tree.GetEntries(); ++
e) {
418 return StatusCode::FAILURE;
424 t0Calib.statusCode =
code;
432 return StatusCode::FAILURE;
434 if (!calibChannels->
setCalib(t0Calib, tubeId, msgStream())) {
435 return StatusCode::FAILURE;
438 if (!outContainer.
storeData(detId, calibChannels, msgStream())){
439 return StatusCode::FAILURE;
442 return StatusCode::SUCCESS;
◆ renounce()
◆ renounceArray()
◆ setFilterPassed()
◆ sysExecute()
Execute an algorithm.
We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.
Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.
◆ sysInitialize()
Override sysInitialize.
Override sysInitialize from the base class.
Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc
Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc
Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.
Reimplemented in InputMakerBase, and HypoBase.
Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.
110 if (
sc.isFailure()) {
118 if ( cs.retrieve().isFailure() ) {
120 return StatusCode::SUCCESS;
122 if (cs->regHandle(
this,*
h).isFailure()) {
123 sc = StatusCode::FAILURE;
124 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
◆ 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_create_b_field_function
Gaudi::Property<bool> MuonCalibR4::MdtCalibDbAlg::m_create_b_field_function |
|
private |
◆ m_createSlewingFunction
Gaudi::Property<bool> MuonCalibR4::MdtCalibDbAlg::m_createSlewingFunction |
|
private |
◆ m_dbPayloadType
Gaudi::Property<std::string> MuonCalibR4::MdtCalibDbAlg::m_dbPayloadType {this, "dbPayloadType","TTree", "specify the format of the payload in the database. Can be TTree or JSON"} |
|
private |
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 114 of file AthCommonReentrantAlgorithm.h.
◆ m_idHelperSvc
◆ m_prop_beta
Gaudi::Property<double> MuonCalibR4::MdtCalibDbAlg::m_prop_beta {this, "PropagationSpeedBeta", 1., "Speed of the signal propagation"} |
|
private |
◆ m_readKeyRt
◆ m_readKeyTube
◆ m_rtJSON
Gaudi::Property<std::string> MuonCalibR4::MdtCalibDbAlg::m_rtJSON {this, "RtJSON", ""} |
|
private |
◆ m_rtRootFile
Gaudi::Property<std::string> MuonCalibR4::MdtCalibDbAlg::m_rtRootFile |
|
private |
◆ m_rtTreeName
Gaudi::Property<std::string> MuonCalibR4::MdtCalibDbAlg::m_rtTreeName {this, "RtTreeName", "RtCalibConstants"} |
|
private |
◆ m_t0CalibPrec
Gaudi::Property<unsigned> MuonCalibR4::MdtCalibDbAlg::m_t0CalibPrec {this, "T0CalibPrecision", 4} |
|
private |
◆ m_t0JSON
Gaudi::Property<std::string> MuonCalibR4::MdtCalibDbAlg::m_t0JSON {this, "TubeT0JSON", ""} |
|
private |
◆ m_t0RootFile
Gaudi::Property<std::string> MuonCalibR4::MdtCalibDbAlg::m_t0RootFile |
|
private |
◆ m_t0TreeName
Gaudi::Property<std::string> MuonCalibR4::MdtCalibDbAlg::m_t0TreeName {this, "T0TreeName", "T0CalibConstants"} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_writeKey
The documentation for this class was generated from the following files:
float t0
< relative t0 in chamber (ns)
char data[hepevt_bytes_allocation_ATLAS]
constexpr uint8_t stationPhi
station Phi 1 to 8
Gaudi::Property< std::string > m_rtTreeName
StatusCode parseT0Payload(const nlohmann::json &t0Blob, MuonCalib::MdtCalibDataContainer &outContainer) const
Trnaslates a t0 - JSON payload into transient memory.
StatusCode parseRtPayload(const nlohmann::json &rtBlob, MuonCalib::MdtCalibDataContainer &outContainer) const
Gaudi::Property< std::string > m_t0TreeName
Gaudi::Property< std::string > m_t0RootFile
bool storeData(const Identifier &mlID, CorrectionPtr corrFuncSet, MsgStream &msg)
std::vector< std::string > tokenize(const std::string &the_str, std::string_view delimiters)
Splits the string into smaller substrings.
std::vector< ALFA_RawData_p1 > t0
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)
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyTube
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
#define ATH_MSG_VERBOSE(x)
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
bool empty() const
Test if the key is blank.
Gaudi::Property< std::string > m_t0JSON
virtual void setOwner(IDataHandleHolder *o)=0
Gaudi::Property< std::string > m_dbPayloadType
MuonCalib::IRtResolutionPtr makeReso(const std::string &resoType, const std::vector< double > &pars, MuonCalib::IRtRelationPtr rt) const
Creates a new resoltuion function from the typeName & the list of parameters.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
bool readBlobAsString(const coral::Blob &, std::string &)
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
static EventIDRange infiniteRunLB()
Produces an EventIDRange that is infinite in RunLumi and invalid in Time.
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyRt
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
float adcCal
quality flag for the SingleTubeCalib constants: 0 all ok, 1 no hits found, 2 too few hits,...
Gaudi::Property< std::string > m_rtRootFile
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
StatusCode initialize(bool used=true)
const MdtFullCalibData * getCalibData(const Identifier &measId, MsgStream &msg) const
Returns the calibration data associated with this station
bool setCalib(SingleTubeCalib val, const Identifier &tubeId, MsgStream &msg)
set the calibration constants of a single tube
Gaudi::Property< double > m_prop_beta
MuonCalib::IRtRelationPtr makeRt(const std::string &rtType, const std::vector< double > &pars) const
Creates a new rt function from the typeName & the list of parameters.
#define ATH_MSG_WARNING(x)
ChanAttrListMap::const_iterator const_iterator
SG::WriteCondHandleKey< MuonCalib::MdtCalibDataContainer > m_writeKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
MuonCalib::ITrRelationPtr makeTr(const std::string &trType, const std::vector< double > &pars) const
Creates a new tr function from the typeName & the list of parameters.
virtual StatusCode sysInitialize() override
Override sysInitialize.
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...
bool hasDataForChannel(const Identifier &measId, MsgStream &msg) const
Checks whether a calibration data object is already present.
#define SET_BRANCHADDRESS(tree, branchName)
constexpr uint8_t stationEta
1 to 3
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Gaudi::Property< std::string > m_rtJSON
External Rt & T0 JSON files.
bool readBlobAsTTree(const coral::Blob &blob, std::unique_ptr< TTree > &tree, const std::string_view name="tree")
Interprets the coral::Blob as a TTree instance.