From dccba3dd01b3ae69a787ba26f4c78d02c70e1de4 Mon Sep 17 00:00:00 2001 From: Xiaofan Hu <xiaofan.hu@cern.ch> Date: Sun, 16 Jul 2023 11:05:02 +0200 Subject: [PATCH] remove header file --- Bcm/BcmDigi/src/BcmDigitization.cpp | 21 +++++++++++++++- Bcm/BcmDigi/src/BcmDigitization.h | 38 ----------------------------- 2 files changed, 20 insertions(+), 39 deletions(-) delete mode 100755 Bcm/BcmDigi/src/BcmDigitization.h diff --git a/Bcm/BcmDigi/src/BcmDigitization.cpp b/Bcm/BcmDigi/src/BcmDigitization.cpp index 6dfda085d..d669231af 100755 --- a/Bcm/BcmDigi/src/BcmDigitization.cpp +++ b/Bcm/BcmDigi/src/BcmDigitization.cpp @@ -8,11 +8,30 @@ * granted to it by virtue of its status as an Intergovernmental Organization * * or submit itself to any jurisdiction. * \*****************************************************************************/ +#include <string> #include <vector> -#include "BcmDigitization.h" #include "Event/BcmDigit.h" #include "Event/MCBcmDigit.h" +#include "Event/MCHit.h" +#include "GaudiAlg/GaudiAlgorithm.h" + +class BcmDigitization : public GaudiAlgorithm { +public: + // Constructor: A constructor of this form must be provided. + using GaudiAlgorithm::GaudiAlgorithm; + + // StatusCode initialize() override; + StatusCode execute() override; + +private: + Gaudi::Property<std::string> m_bcmHitsLocation{this, "BcmHitsLocation", "MC/Bcm/Hits", "BcmHitsLocation"}; + Gaudi::Property<std::string> m_bcmDigitLocation{this, "BcmDigitLocation", LHCb::BcmDigitLocation::Default, + "BcmDigitLocation"}; + Gaudi::Property<std::string> m_bcmMCDigitLocation{this, "BcmMCDigitLocation", LHCb::MCBcmDigitLocation::Default, + "BcmMCDigitLocation"}; + Gaudi::Property<bool> m_bcmMCDigits{this, "MakeMCBcmDigits", true, "MakeMCBcmDigits"}; +}; DECLARE_COMPONENT( BcmDigitization ) diff --git a/Bcm/BcmDigi/src/BcmDigitization.h b/Bcm/BcmDigi/src/BcmDigitization.h deleted file mode 100755 index 948011d68..000000000 --- a/Bcm/BcmDigi/src/BcmDigitization.h +++ /dev/null @@ -1,38 +0,0 @@ -/*****************************************************************************\ -* (c) Copyright 2000-2021 CERN for the benefit of the LHCb Collaboration * -* * -* This software is distributed under the terms of the GNU General Public * -* Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING". * -* * -* In applying this licence, CERN does not waive the privileges and immunities * -* granted to it by virtue of its status as an Intergovernmental Organization * -* or submit itself to any jurisdiction. * -\*****************************************************************************/ -#ifndef BCMDIGI_BCMDIGITIZATION_H -#define BCMDIGI_BCMDIGITIZATION_H 1 - -#include <string> - -// From Gaudi -#include "Event/BcmDigit.h" -#include "Event/MCBcmDigit.h" -#include "Event/MCHit.h" -#include "GaudiAlg/GaudiAlgorithm.h" - -class BcmDigitization : public GaudiAlgorithm { -public: - // Constructor: A constructor of this form must be provided. - using GaudiAlgorithm::GaudiAlgorithm; - - StatusCode execute() override; - -private: - Gaudi::Property<std::string> m_bcmHitsLocation{this, "BcmHitsLocation", "MC/Bcm/Hits", "BcmHitsLocation"}; - Gaudi::Property<std::string> m_bcmDigitLocation{this, "BcmDigitLocation", LHCb::BcmDigitLocation::Default, - "BcmDigitLocation"}; - Gaudi::Property<std::string> m_bcmMCDigitLocation{this, "BcmMCDigitLocation", LHCb::MCBcmDigitLocation::Default, - "BcmMCDigitLocation"}; - Gaudi::Property<bool> m_bcmMCDigits{this, "MakeMCBcmDigits", true, "MakeMCBcmDigits"}; -}; - -#endif -- GitLab