Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-21 10:04:37

0001 /*
0002  * Copyright (c) 2014-2024 Key4hep-Project.
0003  *
0004  * This file is part of Key4hep.
0005  * See https://key4hep.github.io/key4hep-doc/ for further info.
0006  *
0007  * Licensed under the Apache License, Version 2.0 (the "License");
0008  * you may not use this file except in compliance with the License.
0009  * You may obtain a copy of the License at
0010  *
0011  *     http://www.apache.org/licenses/LICENSE-2.0
0012  *
0013  * Unless required by applicable law or agreed to in writing, software
0014  * distributed under the License is distributed on an "AS IS" BASIS,
0015  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0016  * See the License for the specific language governing permissions and
0017  * limitations under the License.
0018  */
0019 
0020 #ifndef K4FWCORE_FUNCTIONALUTILS_H
0021 #define K4FWCORE_FUNCTIONALUTILS_H
0022 
0023 #include "GaudiAlg/GaudiAlgorithm.h"
0024 #include "GaudiKernel/DataObjectHandle.h"
0025 #include "k4FWCore/DataWrapper.h"
0026 
0027 // Base class used for the Traits template argument of the
0028 // Gaudi::Functional algorithms
0029 struct BaseClass_t {
0030   template <typename T> using InputHandle  = DataObjectReadHandle<DataWrapper<T>>;
0031   template <typename T> using OutputHandle = DataObjectWriteHandle<DataWrapper<T>>;
0032 
0033   using BaseClass = Gaudi::Algorithm;
0034 };
0035 
0036 #endif