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_CONDITIONSENTRY_H
0014 #define DDCOND_CONDITIONSENTRY_H
0015 
0016 // Framework include files
0017 #include "DD4hep/NamedObject.h"
0018 #include "DD4hep/DetElement.h"
0019 
0020 /// Namespace for the AIDA detector description toolkit
0021 namespace dd4hep {
0022 
0023   /// Namespace for implementation details of the AIDA detector description toolkit
0024   namespace cond {
0025 
0026     // Forward declarations
0027     class Entry;
0028 
0029     /// The intermediate conditions data used to populate the DetElement conditions
0030     /**
0031      *
0032      *  \author  M.Frank
0033      *  \version 1.0
0034      *  \ingroup DD4HEP_CONDITIONS
0035      */
0036     class Entry : public NamedObject  {
0037     public:
0038       /// Reference to the detector element
0039       DetElement detector;
0040       /// The actual conditions data
0041       std::string value;
0042       /// The validity string to be interpreted by the updating engine
0043       std::string validity;
0044       /// Hash value of the name for fast identification
0045       int hash = 0;
0046       /// Default constructor
0047       Entry();
0048       /// Initializing constructor
0049       Entry(const DetElement& det, const std::string& nam, const std::string& typ, const std::string& valid, int hash);
0050       /// Copy constructor
0051       Entry(const Entry& c);
0052       /// Default destructor
0053       virtual ~Entry();
0054       /// Assignment operator
0055       Entry& operator=(const Entry& c);
0056     };
0057 
0058 
0059   } /* End namespace cond             */
0060 } /* End namespace dd4hep                   */
0061 
0062 #endif // DDCOND_CONDITIONSENTRY_H