Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-21 09:58:04

0001 //==========================================================================
0002 //  AIDA Detector description implementation 
0003 //--------------------------------------------------------------------------
0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 // All rights reserved.
0006 //
0007 // For the licensing terms see $DD4hepINSTALL/LICENSE.
0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0009 //
0010 // Author     : M.Frank
0011 //
0012 //==========================================================================
0013 #ifndef DDCOND_CONDITIONSCLEANUP_H
0014 #define DDCOND_CONDITIONSCLEANUP_H
0015 
0016 // Framework include files
0017 #include "DDCond/ConditionsPool.h"
0018 
0019 /// Namespace for the AIDA detector description toolkit
0020 namespace dd4hep {
0021 
0022   /// Namespace for implementation details of the AIDA detector description toolkit
0023   namespace cond {
0024 
0025     /// Base class to handle conditions cleanups
0026     /**
0027      *
0028      *  \author  M.Frank
0029      *  \version 1.0
0030      *  \ingroup DD4HEP_CONDITIONS
0031      */
0032     class ConditionsCleanup  {
0033     public:
0034       /// Default constructor
0035       ConditionsCleanup() = default;
0036       /// Copy constructor
0037       ConditionsCleanup(const ConditionsCleanup& c) = default;
0038       /// Default destructor
0039       virtual ~ConditionsCleanup() = default;
0040       /// Assignment operator
0041       ConditionsCleanup& operator=(const ConditionsCleanup& c) = default;
0042       /// Request cleanup operation of IOV POOL
0043       virtual bool operator()(const ConditionsIOVPool& iov_pool)  const;
0044       /// Request cleanup operation of regular conditiions pool
0045       virtual bool operator()(const ConditionsPool& pool)  const;
0046     };
0047 
0048    /// Base class to handle conditions cleanups
0049     /**
0050      *
0051      *  \author  M.Frank
0052      *  \version 1.0
0053      *  \ingroup DD4HEP_CONDITIONS
0054      */
0055     class ConditionsFullCleanup : public ConditionsCleanup {
0056     public:
0057       /// Default constructor
0058       ConditionsFullCleanup() = default;
0059       /// Copy constructor
0060       ConditionsFullCleanup(const ConditionsFullCleanup& c) = default;
0061       /// Default destructor
0062       virtual ~ConditionsFullCleanup() = default;
0063       /// Assignment operator
0064       ConditionsFullCleanup& operator=(const ConditionsFullCleanup& c) = default;
0065       /// Request cleanup operation of IOV POOL
0066       virtual bool operator()(const ConditionsIOVPool& iov_pool)  const  override;
0067       /// Request cleanup operation of regular conditiions pool
0068       virtual bool operator()(const ConditionsPool& pool)  const  override;
0069     };
0070   } /* End namespace cond                   */
0071 } /* End namespace dd4hep                   */
0072 
0073 #endif // DDCOND_CONDITIONSCLEANUP_H