Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:14:49

0001 //==============================================================================
0002 //  AIDA Detector description implementation for LHCb
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   Markus Frank
0011 //  \date     2018-03-08
0012 //  \version  1.0
0013 //
0014 //==============================================================================
0015 #ifndef DETECTOR_DEALIGNMENTCALL_H
0016 #define DETECTOR_DEALIGNMENTCALL_H 1
0017 
0018 // Framework include files
0019 #include "DD4hep/Conditions.h"
0020 #include "DD4hep/ConditionDerived.h"
0021 
0022 /// Gaudi namespace declaration
0023 namespace gaudi   {
0024 
0025   /// Callback, which triggers the alignment computation once the delta-parameters are loaded
0026   /**
0027    *
0028    *  \author  Markus Frank
0029    *  \date    2018-03-08
0030    *  \version  1.0
0031    */
0032   class DeAlignmentCall : public dd4hep::cond::ConditionUpdateCall  {
0033   public:
0034     dd4hep::DetElement  top;
0035     /// Initializing constructor
0036     DeAlignmentCall(dd4hep::DetElement t) : top(t) {}
0037     /// Default destructor
0038     virtual ~DeAlignmentCall() = default;
0039     /// Interface to client Callback in order to update the condition
0040     virtual dd4hep::Condition operator()(const dd4hep::ConditionKey& /* key */,
0041                                          dd4hep::cond::ConditionUpdateContext& ctxt) override final;
0042   };
0043   
0044 }      // End namespace gaudi
0045 #endif // DETECTOR_DEALIGNMENTCALL_H