|
ATLAS Offline Software
|
#include <MuonCalibDefaultCalibrationSource.h>
|
| MuonCalibDefaultCalibrationSource (const std::string &t, const std::string &n, const IInterface *p) |
| constructor More...
|
|
virtual | ~MuonCalibDefaultCalibrationSource () |
|
StatusCode | initialize () |
| initialize 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 | sysInitialize () override |
| Perform system initialization for an algorithm. 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 |
|
bool | InstertCalibration (CoolInserter *inserter, bool store_t0, bool store_rt) |
| insert calibration More...
|
|
virtual void | SetIOV (int &, int &) const |
|
◆ StoreGateSvc_t
◆ MuonCalibDefaultCalibrationSource()
MuonCalib::MuonCalibDefaultCalibrationSource::MuonCalibDefaultCalibrationSource |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~MuonCalibDefaultCalibrationSource()
MuonCalib::MuonCalibDefaultCalibrationSource::~MuonCalibDefaultCalibrationSource |
( |
| ) |
|
|
virtualdefault |
◆ 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]
◆ 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
◆ initialize()
StatusCode MuonCalib::MuonCalibDefaultCalibrationSource::initialize |
( |
| ) |
|
initialize
Definition at line 38 of file MuonCalibDefaultCalibrationSource.cxx.
43 ATH_MSG_FATAL(
"Configuration error: T0Regions and T0 have different size!");
44 return StatusCode::FAILURE;
47 ATH_MSG_FATAL(
"Configuration error: RtRegions and RtFiles have different size!");
48 return StatusCode::FAILURE;
57 return StatusCode::SUCCESS;
◆ initialize_creation_flags()
void MuonCalib::MuonCalibDefaultCalibrationSource::initialize_creation_flags |
( |
const std::vector< bool > & |
ts_applied, |
|
|
const std::vector< bool > & |
bf_applied, |
|
|
unsigned int |
n_regions, |
|
|
std::vector< unsigned int > & |
flags |
|
) |
| |
|
private |
◆ initialize_regions()
StatusCode MuonCalib::MuonCalibDefaultCalibrationSource::initialize_regions |
( |
const std::vector< std::string > & |
reg_str, |
|
|
std::vector< std::unique_ptr< RegionSelectorBase > > & |
reg |
|
) |
| |
|
private |
Definition at line 66 of file MuonCalibDefaultCalibrationSource.cxx.
68 for (
const std::string ® : reg_str) {
72 return StatusCode::FAILURE;
74 reg_vec.emplace_back(std::move(
r));
76 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.
◆ insert_calibration()
bool MuonCalib::MuonCalibDefaultCalibrationSource::insert_calibration |
( |
bool |
store_t0, |
|
|
bool |
store_rt |
|
) |
| |
|
protectedvirtual |
◆ InstertCalibration()
bool MuonCalib::IMuonCalibConditionsSource::InstertCalibration |
( |
CoolInserter * |
inserter, |
|
|
bool |
store_t0, |
|
|
bool |
store_rt |
|
) |
| |
|
inlineinherited |
◆ interfaceID()
static const InterfaceID& MuonCalib::IMuonCalibConditionsSource::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ load_rt_files()
StatusCode MuonCalib::MuonCalibDefaultCalibrationSource::load_rt_files |
( |
| ) |
|
|
inlineprivate |
Definition at line 90 of file MuonCalibDefaultCalibrationSource.cxx.
93 std::ifstream rtf(
fname.c_str());
96 return StatusCode::FAILURE;
98 std::map<int, SamplePoint>
pts;
100 std::getline(rtf,
line);
103 std::getline(rtf,
line);
104 std::istringstream ln_str(
line);
109 if (rtf.eof())
break;
110 SamplePoint
pt(
t,
r,
s);
116 return StatusCode::SUCCESS;
◆ 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()
◆ SetIOV()
virtual void MuonCalib::IMuonCalibConditionsSource::SetIOV |
( |
int & |
, |
|
|
int & |
|
|
) |
| const |
|
inlinevirtualinherited |
◆ store_rt_fun()
bool MuonCalib::MuonCalibDefaultCalibrationSource::store_rt_fun |
( |
| ) |
|
|
inlineprivate |
◆ store_t0_fun()
bool MuonCalib::MuonCalibDefaultCalibrationSource::store_t0_fun |
( |
| ) |
|
|
inlineprivate |
◆ sysInitialize()
◆ 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_bfield_applied_rt
std::vector<bool> MuonCalib::MuonCalibDefaultCalibrationSource::m_bfield_applied_rt |
|
private |
◆ m_bfield_applied_t0
std::vector<bool> MuonCalib::MuonCalibDefaultCalibrationSource::m_bfield_applied_t0 |
|
private |
◆ m_creation_flags_rt
std::vector<unsigned int> MuonCalib::MuonCalibDefaultCalibrationSource::m_creation_flags_rt |
|
private |
◆ m_creation_flags_t0
std::vector<unsigned int> MuonCalib::MuonCalibDefaultCalibrationSource::m_creation_flags_t0 |
|
private |
◆ m_detStore
◆ m_evtStore
◆ m_inserter
CoolInserter* MuonCalib::IMuonCalibConditionsSource::m_inserter = nullptr |
|
protectedinherited |
◆ m_reg_sel_svc
◆ m_rt_files
std::vector<std::string> MuonCalib::MuonCalibDefaultCalibrationSource::m_rt_files |
|
private |
◆ m_rt_points
std::vector<std::map<int, SamplePoint> > MuonCalib::MuonCalibDefaultCalibrationSource::m_rt_points |
|
private |
◆ m_rt_region_str
std::vector<std::string> MuonCalib::MuonCalibDefaultCalibrationSource::m_rt_region_str |
|
private |
◆ m_rt_regions
std::vector<std::unique_ptr<RegionSelectorBase> > MuonCalib::MuonCalibDefaultCalibrationSource::m_rt_regions |
|
private |
◆ m_t0
std::vector<float> MuonCalib::MuonCalibDefaultCalibrationSource::m_t0 |
|
private |
◆ m_t0_region_str
std::vector<std::string> MuonCalib::MuonCalibDefaultCalibrationSource::m_t0_region_str |
|
private |
◆ m_t0_regions
std::vector<std::unique_ptr<RegionSelectorBase> > MuonCalib::MuonCalibDefaultCalibrationSource::m_t0_regions |
|
private |
◆ m_time_slewing_applied_rt
std::vector<bool> MuonCalib::MuonCalibDefaultCalibrationSource::m_time_slewing_applied_rt |
|
private |
◆ m_time_slewing_applied_t0
std::vector<bool> MuonCalib::MuonCalibDefaultCalibrationSource::m_time_slewing_applied_t0 |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
std::vector< unsigned int > m_creation_flags_t0
std::vector< bool > m_time_slewing_applied_rt
static std::unique_ptr< RegionSelectorBase > GetRegion(const std::string &input)
create a region from a string
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
CoolInserter * m_inserter
StatusCode load_rt_files()
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::vector< std::unique_ptr< RegionSelectorBase > > m_t0_regions
bool StoreT0Chamber(const NtupleStationId &id, const std::string &file, unsigned int creation_flags=0)
std::vector< unsigned int > m_creation_flags_rt
virtual void setOwner(IDataHandleHolder *o)=0
std::vector< std::map< int, SamplePoint > > m_rt_points
bool AppendT0(float t0, int validflag, float adc0)
virtual bool insert_calibration(bool store_t0, bool store_rt)=0
std::vector< bool > m_bfield_applied_rt
void initialize_creation_flags(const std::vector< bool > &ts_applied, const std::vector< bool > &bf_applied, unsigned int n_regions, std::vector< unsigned int > &flags)
ICscStripFitter::Result Result
std::vector< bool > m_time_slewing_applied_t0
ServiceHandle< RegionSelectionSvc > m_reg_sel_svc
@ B_FIELD_CORRECTIONS_APPLIED
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
std::vector< bool > m_bfield_applied_t0
std::vector< std::string > m_rt_files
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
@ TIME_SLEWING_CORRECTION_APPLIED
std::vector< std::string > m_rt_region_str
StatusCode initialize_regions(const std::vector< std::string > ®_str, std::vector< std::unique_ptr< RegionSelectorBase > > ®)
std::vector< std::string > m_t0_region_str
std::vector< float > m_t0
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
bool StoreRtChamber(const NtupleStationId &id, const std::map< int, SamplePoint > &points, const std::string &file, unsigned int creation_flags=0)
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
std::vector< std::unique_ptr< RegionSelectorBase > > m_rt_regions
bool StartT0Chamber(const NtupleStationId &sid)