Skip to content
Snippets Groups Projects
Commit 836fa4eb authored by Walter Lampl's avatar Walter Lampl
Browse files

streamline LArAutoCorrDecoderTool

parent a1960417
No related branches found
No related tags found
No related merge requests found
//Dear emacs, this is -*- C++ -*-
/*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
*/
......@@ -10,28 +10,23 @@
#include "LArElecCalib/ILArAutoCorrDecoderTool.h"
#include "GaudiKernel/ToolHandle.h"
#include "LArElecCalib/ILArAutoCorr.h"
#include <Eigen/Dense>
#include "LArIdentifier/LArOnlineID.h"
#include "LArIdentifier/LArOnline_SuperCellID.h"
#include "LArRawConditions/LArConditionsContainer.h"
#include "AthenaBaseComps/AthAlgTool.h"
class LArAutoCorrDecoderTool: public AthAlgTool,
virtual public ILArAutoCorrDecoderTool
class LArAutoCorrDecoderTool:
public extends<AthAlgTool,ILArAutoCorrDecoderTool>
{
public:
// constructor
LArAutoCorrDecoderTool(const std::string& type,
const std::string& name,
const IInterface* parent);
using base_class::base_class;
// destructor
virtual ~LArAutoCorrDecoderTool();
......@@ -48,19 +43,16 @@ class LArAutoCorrDecoderTool: public AthAlgTool,
private:
unsigned m_decodemode;
bool m_alwaysHighGain;
//Properties:
Gaudi::Property<unsigned> m_decodemode{"DecodeMode",0};
Gaudi::Property<bool> m_alwaysHighGain{"UseAlwaysHighGain",false};
Gaudi::Property<bool> m_isSC{"isSC",false};
Gaudi::Property<std::string> m_keyAutoCorr{"KeyAutoCorr","LArAutoCorr"};
const Eigen::MatrixXd ACDiagonal( const HWIdentifier& CellID, int gain, unsigned nSamples) const;
const Eigen::MatrixXd ACPhysics( const HWIdentifier& CellID, int gain, unsigned nSamples) const;
const LArOnlineID_Base* m_onlineID;
std::string m_keyAutoCorr;
// Running on cells or supercells?
bool m_isSC;
const LArOnlineID_Base* m_onlineID=nullptr;
};
#endif
/*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
*/
#include "LArCalibUtils/LArAutoCorrDecoderTool.h"
#include "GaudiKernel/MsgStream.h"
#include "AthenaKernel/errorcheck.h"
#include "LArElecCalib/LArConditionsException.h"
LArAutoCorrDecoderTool::LArAutoCorrDecoderTool(const std::string& type,
const std::string& name,
const IInterface* parent)
:
AthAlgTool(type, name, parent),
m_onlineID(0)
{
declareInterface<ILArAutoCorrDecoderTool>(this);
declareProperty("KeyAutoCorr",m_keyAutoCorr="LArAutoCorr");
declareProperty("DecodeMode", m_decodemode=0);
declareProperty("UseAlwaysHighGain", m_alwaysHighGain=false);
declareProperty("isSC", m_isSC=false);
}
LArAutoCorrDecoderTool::~LArAutoCorrDecoderTool()
{}
LArAutoCorrDecoderTool::~LArAutoCorrDecoderTool() {};
StatusCode LArAutoCorrDecoderTool::initialize()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment