ATLAS Offline Software
Loading...
Searching...
No Matches
TrackParticleCompressorTool.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id: TrackParticleCompressorTool.h 789457 2016-12-13 12:00:43Z krasznaa $
8#ifndef XAODTRACKINGCNV_TRACKPARTICLECOMPRESSORTOOL_H
9#define XAODTRACKINGCNV_TRACKPARTICLECOMPRESSORTOOL_H
10
11// System include(s):
12#include <memory>
13
14// Gaudi/Athena include(s):
16
17// CxxUtils include(s):
19
20// Local include(s):
22
23namespace xAODMaker {
24
37 public virtual ITrackParticleCompressorTool {
38
39 public:
41 TrackParticleCompressorTool( const std::string& type,
42 const std::string& name,
43 const IInterface* parent );
44
46 StatusCode initialize() override;
47
49 StatusCode compress( xAOD::TrackParticle& tp ) const override;
50
51 private:
58 // Flag to control compression scheme of off-diagonal elements
60
63 std::unique_ptr< CxxUtils::FloatCompressor > m_diagCovMatrixCompressor;
64
65 }; // class TrackParticleCompressorTool
66
67} // namespace xAODMaker
68
69#endif // XAODTRACKINGCNV_TRACKPARTICLECOMPRESSORTOOL_H
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Interface for the tool(s) compressing xAOD::TrackParticle objects.
TrackParticleCompressorTool(const std::string &type, const std::string &name, const IInterface *parent)
Regular AlgTool constructor.
StatusCode initialize() override
Function initialising the tool.
StatusCode compress(xAOD::TrackParticle &tp) const override
The function doing the heavy lifting.
std::unique_ptr< CxxUtils::FloatCompressor > m_diagCovMatrixCompressor
Helper object for compressing the on-diagonal covariance matrix elements.
int m_offDiagCovMatrixBits
The number of mantissa bits to keep for off-diagonal covariance matrix elements.
int m_diagCovMatrixBits
The number of mantissa bits to keep for the diagonal covariance matrix elements.
TrackParticle_v1 TrackParticle
Reference the current persistent version: