ATLAS Offline Software
MdtCalibFormatAlgTest.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MdtCalibFormatAlgTest_H
6 #define MdtCalibFormatAlgTest_H
7 
8 // STL
9 #include <stdio.h>
10 
11 #include <boost/date_time/posix_time/posix_time.hpp>
12 
13 #include <chrono>
14 #include <ctime>
15 #include <iostream>
16 #include <sstream>
17 #include <string>
18 
19 #include "vector"
20 
21 // Gaudi
22 #include "CoralBase/Blob.h"
23 #include "GaudiKernel/ICondSvc.h"
24 #include "GaudiKernel/ServiceHandle.h"
25 #include "GaudiKernel/StatusCode.h"
26 #include "GaudiKernel/ToolHandle.h"
27 
28 // Athena
35 
36 // Forward declarations
37 class ISvcLocator;
38 class StatusCode;
39 
40 namespace coral {
41  class Blob;
42 }
43 
45 public:
46  MdtCalibFormatAlgTest(const std::string &name, ISvcLocator *pSvcLocator);
47  virtual ~MdtCalibFormatAlgTest() override;
48 
49  virtual StatusCode initialize() override;
50  virtual StatusCode execute(const EventContext &) const override;
51  virtual StatusCode finalize() override;
52 
53 private:
54  StatusCode retrieve(const EventContext &, const std::string&, const std::string&, std::chrono::duration<double> &) const;
55  StatusCode processBlob(const std::string&, const std::string&, const std::string&) const;
56 
57  StatusCode extractString(std::string &input, std::string &output, const std::string& separator) const;
58 
59  static std::string timestamp() ;
60 
61  SG::ReadCondHandleKey<CondAttrListCollection> m_readKey_RT_old{this, "ReadKey_RT_old", "/MDT/RTBLOB",
62  "Key to old-style /MDT/RTBLOB folder"};
63  SG::ReadCondHandleKey<CondAttrListCollection> m_readKey_RT_new{this, "ReadKey_RT_new", "/MDT/RTBLOB",
64  "Key to new-style /MDT/RTBLOB folder"};
65  SG::ReadCondHandleKey<CondAttrListCollection> m_readKey_T0_old{this, "ReadKey_T0_old", "/MDT/RTBLOB",
66  "Key to old-style /MDT/T0BLOB folder"};
67  SG::ReadCondHandleKey<CondAttrListCollection> m_readKey_T0_new{this, "ReadKey_T0_new", "/MDT/RTBLOB",
68  "Key to new-style /MDT/T0BLOB folder"};
69 
70  // std::map<std::string, std::map<std::string, std::chrono::duration<double> > > m_retrieving;
71  // std::chrono::duration<double> m_retrieving_RT_old;
72  // std::chrono::duration<double> m_retrieving_RT_new;
73  // std::chrono::duration<double> m_retrieving_T0_old;
74  // std::chrono::duration<double> m_retrieving_T0_new;
75  // std::chrono::duration<double> m_retrieving ;
76  // std::chrono::duration<double> m_uncompressing;
77  // std::chrono::duration<double> m_unwrapping ;
78 
79 }; // end of class
80 
81 #endif
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
MdtCalibFormatAlgTest::m_readKey_RT_new
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey_RT_new
Definition: MdtCalibFormatAlgTest.h:63
MdtCalibFormatAlgTest::initialize
virtual StatusCode initialize() override
Definition: MdtCalibFormatAlgTest.cxx:15
MdtCalibFormatAlgTest::~MdtCalibFormatAlgTest
virtual ~MdtCalibFormatAlgTest() override
Definition: MdtCalibFormatAlgTest.cxx:12
MdtCalibFormatAlgTest::MdtCalibFormatAlgTest
MdtCalibFormatAlgTest(const std::string &name, ISvcLocator *pSvcLocator)
Definition: MdtCalibFormatAlgTest.cxx:8
python.subdetectors.tile.Blob
Blob
Definition: tile.py:17
MdtCalibFormatAlgTest::finalize
virtual StatusCode finalize() override
Definition: MdtCalibFormatAlgTest.cxx:55
MdtCalibFormatAlgTest::m_readKey_T0_new
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey_T0_new
Definition: MdtCalibFormatAlgTest.h:67
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
coral
Definition: ISecondaryEventSelector.h:19
MdtCalibFormatAlgTest::execute
virtual StatusCode execute(const EventContext &) const override
Definition: MdtCalibFormatAlgTest.cxx:25
MdtCalibFormatAlgTest::extractString
StatusCode extractString(std::string &input, std::string &output, const std::string &separator) const
Definition: MdtCalibFormatAlgTest.cxx:132
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
AthAlgTool.h
MdtCalibFormatAlgTest
Definition: MdtCalibFormatAlgTest.h:44
ReadCondHandleKey.h
AthReentrantAlgorithm.h
MdtCalibFormatAlgTest::processBlob
StatusCode processBlob(const std::string &, const std::string &, const std::string &) const
Definition: MdtCalibFormatAlgTest.cxx:123
merge.output
output
Definition: merge.py:17
IOVInfiniteRange.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
SG::ReadCondHandleKey< CondAttrListCollection >
blobaccess.h
MdtCalibFormatAlgTest::m_readKey_RT_old
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey_RT_old
Definition: MdtCalibFormatAlgTest.h:61
MdtCalibFormatAlgTest::m_readKey_T0_old
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey_T0_old
Definition: MdtCalibFormatAlgTest.h:65
MdtCalibFormatAlgTest::timestamp
static std::string timestamp()
Definition: MdtCalibFormatAlgTest.cxx:148
MdtCalibFormatAlgTest::retrieve
StatusCode retrieve(const EventContext &, const std::string &, const std::string &, std::chrono::duration< double > &) const
Definition: MdtCalibFormatAlgTest.cxx:61