5#ifndef MUONCHAMBERT0S_CHAMBERT0S_H
6#define MUONCHAMBERT0S_CHAMBERT0S_H
8#include "Identifier/Identifier.h"
24 ChamberT0s(
const std::vector< std::pair < Identifier, float > >& t0s ) ;
25 ChamberT0s( std::vector< std::pair < Identifier, float > >&& t0s ) ;
47 const std::vector< std::pair < Identifier, float > >&
getAllT0s()
const;
50 std::vector< std::pair < Identifier, float > >
m_t0s;
56 [&] (
const auto& p) { return p.first == id; });
57 return (it!=
m_t0s.end());
63 [&] (
const auto& p) { return p.first == id; });
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Stores links between chambers and the reconstructed T0.
std::vector< std::pair< Identifier, float > > m_t0s
bool haveChamber(const Identifier &id) const
Returns true if we have the T0 for this chamber?
static constexpr float ChamberUnknown
Value returned by ChamberT0s::getT0(...) when chamber is not known to ChamberT0s.
const std::vector< std::pair< Identifier, float > > & getAllT0s() const
Returns entire list of T0s.
float getT0(const Identifier &id) const
Returns the T0 for this chamber (or ChamberT0s::ChamberUnknown if the chamber is not in list)
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.