Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:31:47

0001 /***********************************************************************************\
0002 * (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
0003 *                                                                                   *
0004 * This software is distributed under the terms of the Apache version 2 licence,     *
0005 * copied verbatim in the file "LICENSE".                                            *
0006 *                                                                                   *
0007 * In applying this licence, CERN does not waive the privileges and immunities       *
0008 * granted to it by virtue of its status as an Intergovernmental Organization        *
0009 * or submit itself to any jurisdiction.                                             *
0010 \***********************************************************************************/
0011 //====================================================================
0012 //  RootAddress.h
0013 //--------------------------------------------------------------------
0014 //
0015 //  Author     : M.Frank
0016 //====================================================================
0017 #ifndef GAUDIROOTCNV_ROOTADDRESS_H
0018 #define GAUDIROOTCNV_ROOTADDRESS_H
0019 
0020 // Framework include files
0021 #include <GaudiKernel/GenericAddress.h>
0022 #include <TTreeFormula.h>
0023 
0024 // Forward declaration
0025 class TTree;
0026 class TTreeFormula;
0027 
0028 /*
0029  * Gaudi namespace declaration
0030  */
0031 namespace Gaudi {
0032 
0033   // Forward declarations
0034   class RootDataConnection;
0035 
0036   /** @class RootAddress RootAddress.h GaudiRoot/RootAddress.h
0037    *
0038    * Description:
0039    *
0040    * Definition of a transient link which is capable of locating
0041    * an object in the persistent storage.
0042    *
0043    * @author  M.Frank
0044    * @version 1.0
0045    */
0046   class GAUDI_API RootAddress : virtual public GenericAddress {
0047   public:
0048     /// Pointer to ROOT select statement (filled for N-tuples only)
0049     TTreeFormula* select = nullptr;
0050     /// Pointer to ROOT TTree (filled for N-tuples only)
0051     TTree* section = nullptr;
0052 
0053   public:
0054     /// Full constructor
0055     RootAddress( long svc, const CLID& clid, const std::string& p1 = "", const std::string& p2 = "",
0056                  unsigned long ip1 = 0, unsigned long ip2 = 0 )
0057         : GenericAddress( svc, clid, p1, p2, ip1, ip2 ) {}
0058     /// Standard Destructor
0059     virtual ~RootAddress() { delete select; }
0060   };
0061 } // namespace Gaudi
0062 
0063 #endif // GAUDIROOTCNV_ROOTADDRESS_H