DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AlignmentUpdateCall.h
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation for LCD
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
13 #ifndef DD4HEP_ALIGMENTS_ALIGNMENTUPDATECALL_H
14 #define DD4HEP_ALIGMENTS_ALIGNMENTUPDATECALL_H
15 
16 // Framework include files
18 #include "DD4hep/AlignmentData.h"
19 #include "DD4hep/Alignments.h"
20 
22 namespace DD4hep {
23 
25  namespace Alignments {
26 
28 
46  public:
52 
53  public:
56 
58  virtual ~AlignmentUpdateCall();
59 
61  virtual Condition operator()(const ConditionKey& key, const UpdateContext& context) = 0;
62 
64 
75  virtual Condition handle(const ConditionKey& key, const UpdateContext& context, const Delta& delta);
76 
78  virtual Condition invalidDataType(const ConditionKey& key, const UpdateContext& context);
79  };
80  } /* End namespace Aligments */
81 } /* End namespace DD4hep */
82 #endif /* DD4HEP_ALIGMENTS_ALIGNMENTUPDATECALL_H */
Conditions::ConditionUpdateContext UpdateContext
virtual ~AlignmentUpdateCall()
Default destructor.
Main condition object handle.
Definition: Conditions.h:70
Specialized conditions update callback for alignment condition objects.
virtual Condition operator()(const ConditionKey &key, const UpdateContext &context)=0
Interface to client Callback in order to update the condition. To be overloaded by sub-class...
Key definition to optimize ans simplyfy the access to conditions entities.
Definition: Conditions.h:273
Alignments::AlignmentData::Delta Delta
ConditionUpdateContext class used by the derived conditions calculation mechanism.
Class describing an condition to re-adjust an alignment.
Definition: AlignmentData.h:49
virtual Condition handle(const ConditionKey &key, const UpdateContext &context, const Delta &delta)
Callback to build the alignment conditions object and assign the delta.
virtual Condition invalidDataType(const ConditionKey &key, const UpdateContext &context)
Handler to be called if the Alignment cannot be created due to a bad underlying data type...
Derived condition data-object definition.