|
ATLAS Offline Software
|
Go to the documentation of this file.
21 return StatusCode::SUCCESS;
29 std::chrono::duration<double> retrieving_RT_old{};
30 std::chrono::duration<double> retrieving_RT_new{};
31 std::chrono::duration<double> retrieving_T0_old{};
32 std::chrono::duration<double> retrieving_T0_new{};
35 if (!
retrieve(ctx,
"RT",
"old", retrieving_RT_old).isSuccess())
return StatusCode::FAILURE;
36 if (!
retrieve(ctx,
"RT",
"new", retrieving_RT_new).isSuccess())
return StatusCode::FAILURE;
37 if (!
retrieve(ctx,
"T0",
"old", retrieving_T0_old).isSuccess())
return StatusCode::FAILURE;
38 if (!
retrieve(ctx,
"T0",
"new", retrieving_T0_new).isSuccess())
return StatusCode::FAILURE;
42 << (std::chrono::duration_cast<std::chrono::microseconds>(retrieving_RT_old).
count() * 1.0) <<
"s ");
44 << (std::chrono::duration_cast<std::chrono::microseconds>(retrieving_RT_new).
count() * 1.0) <<
"s ");
46 << (std::chrono::duration_cast<std::chrono::microseconds>(retrieving_T0_old).
count() * 1.0) <<
"s ");
48 << (std::chrono::duration_cast<std::chrono::microseconds>(retrieving_T0_new).
count() * 1.0) <<
"s ");
51 return StatusCode::SUCCESS;
57 return StatusCode::SUCCESS;
62 std::chrono::duration<double>&
timer)
const {
78 if (readCdo ==
nullptr) {
80 return StatusCode::FAILURE;
84 if (!readHandle.range(
range)) {
85 ATH_MSG_ERROR(
"Failed to retrieve validity range for " << readHandle.key());
86 return StatusCode::FAILURE;
92 ATH_MSG_DEBUG(
"Size of CondAttrListCollection " << readHandle.fullKey() <<
" readCdo->size()= " << readCdo->size());
96 for (itr = readCdo->begin(); itr != readCdo->end(); ++itr) {
100 timer += end1 - start1;
108 return StatusCode::FAILURE;
112 data = *(
static_cast<const std::string*
>((atr[
"data"]).addressOfData()));
119 return StatusCode::SUCCESS;
128 return StatusCode::SUCCESS;
134 unsigned long int pos = 0;
135 std::string::size_type
start =
input.find_first_not_of(separator.c_str(),
pos);
136 if (
start == std::string::npos) {
138 return StatusCode::FAILURE;
140 std::string::size_type
stop =
input.find_first_of(separator.c_str(),
start + 1);
145 return StatusCode::SUCCESS;
149 const boost::posix_time::ptime
now = boost::posix_time::microsec_clock::local_time();
150 const boost::posix_time::time_duration td =
now.time_of_day();
151 const long hours = td.hours();
152 const long minutes = td.minutes();
153 const long seconds = td.seconds();
154 const long milliseconds = td.total_milliseconds() - ((
hours * 3600 + minutes * 60 +
seconds) * 1000);
156 sprintf(buf,
"%02ld:%02ld:%02ld.%03ld",
hours, minutes,
seconds, milliseconds);
char data[hepevt_bytes_allocation_ATLAS]
bool setup(asg::AnaToolHandle< Interface > &tool, const std::string &type, const std::vector< std::string > &config, const std::string &progressFile="")
mostly useful for athena, which will otherwise re-use the previous tool
static EventIDRange infiniteMixed()
Produces an mixed EventIDRange that is infinite in Time and RunLumi.
#define ATH_MSG_VERBOSE(x)
This class is a collection of AttributeLists where each one is associated with a channel number....
def timer(name, disabled=False)
An algorithm that can be simultaneously executed in multiple threads.
bool readBlobAsString(const coral::Blob &, std::string &)
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
std::optional< double > intersect(const AmgVector(N)&posA, const AmgVector(N)&dirA, const AmgVector(N)&posB, const AmgVector(N)&dirB)
Calculates the point B' along the line B that's closest to a second line A.
ChanAttrListMap::const_iterator const_iterator