Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:57:33

0001 /***********************************************************************************\
0002 * (c) Copyright 1998-2019 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 #ifndef GAUDIALG_FILL_H
0012 #define GAUDIALG_FILL_H 1
0013 // ============================================================================
0014 // Include files
0015 // ============================================================================
0016 #include <string>
0017 // ============================================================================
0018 // forward declarations from AIDA
0019 // ============================================================================
0020 namespace AIDA {
0021   class IBaseHistogram;
0022   class IHistogram;
0023   class IHistogram1D;
0024   class IHistogram2D;
0025   class IHistogram3D;
0026   class IProfile;
0027   class IProfile1D;
0028   class IProfile2D;
0029 } // namespace AIDA
0030 #include "GaudiKernel/Kernel.h"
0031 // ============================================================================
0032 namespace Gaudi {
0033   // ==========================================================================
0034   namespace Utils {
0035     // ========================================================================
0036     namespace Histos {
0037       // ======================================================================
0038       /** simple function to fill AIDA::IHistogram1D objects
0039        *  @see AIDA::IHistogram1D
0040        *  @param histo pointer to the histogram
0041        *  @param value value to be added to the histogram
0042        *  @param weight the "weight" assciated with this entry
0043        *  @author Vanya BELYAEV ibelyaev@physics.syr.edu
0044        *  @date 2007-10-02
0045        */
0046       GAUDI_API void fill( AIDA::IHistogram1D* histo, const double value, const double weight = 1.0 );
0047       // ======================================================================
0048       /** simple function to fill AIDA::IHistogram2D objects
0049        *  @see AIDA::IHistogram2D
0050        *  @param histo pointer to the histogram
0051        *  @param valueX value to be added to the histogram
0052        *  @param valueY value to be added to the histogram
0053        *  @param weight the "weight" assciated with this entry
0054        *  @author Vanya BELYAEV ibelyaev@physics.syr.edu
0055        *  @date 2007-10-02
0056        */
0057       GAUDI_API void fill( AIDA::IHistogram2D* histo, const double valueX, const double valueY,
0058                            const double weight = 1.0 );
0059       // ======================================================================
0060       /** simple function to fill AIDA::IHistogram3D objects
0061        *  @see AIDA::IHistogram3D
0062        *  @param histo pointer to the histogram
0063        *  @param valueX value to be added to the histogram
0064        *  @param valueY value to be added to the histogram
0065        *  @param valueZ value to be added to the histogram
0066        *  @param weight the "weight" assciated with this entry
0067        *  @author Vanya BELYAEV ibelyaev@physics.syr.edu
0068        *  @date 2007-10-02
0069        */
0070       GAUDI_API void fill( AIDA::IHistogram3D* histo, const double valueX, const double valueY, const double valueZ,
0071                            const double weight = 1.0 );
0072       // ======================================================================
0073       /** simple function to fill AIDA::IProfile1D objects
0074        *  @see AIDA::IProfile1D
0075        *  @param histo pointer to the histogram
0076        *  @param valueX value to be added to the histogram
0077        *  @param valueY value to be added to the histogram
0078        *  @param weight the "weight" assciated with this entry
0079        *  @author Vanya BELYAEV ibelyaev@physics.syr.edu
0080        *  @date 2007-10-02
0081        */
0082       GAUDI_API void fill( AIDA::IProfile1D* histo, const double valueX, const double valueY,
0083                            const double weight = 1.0 );
0084       // ======================================================================
0085       /** simple function to fill AIDA::IProfile2D objects
0086        *  @see AIDA::IProfile2D
0087        *  @param histo pointer to the histogram
0088        *  @param valueX value to be added to the histogram
0089        *  @param valueY value to be added to the histogram
0090        *  @param valueZ value to be added to the histogram
0091        *  @param weight the "weight" assciated with this entry
0092        *  @author Vanya BELYAEV ibelyaev@physics.syr.edu
0093        *  @date 2007-10-02
0094        */
0095       GAUDI_API void fill( AIDA::IProfile2D* histo, const double valueX, const double valueY, const double valueZ,
0096                            const double weight = 1.0 );
0097       // ======================================================================
0098       /// get the title
0099       GAUDI_API std::string htitle( const AIDA::IBaseHistogram* histo, const std::string& title = "" );
0100       // ======================================================================
0101       /// get the title
0102       GAUDI_API std::string htitle( const AIDA::IHistogram* histo, const std::string& title = "" );
0103       // ======================================================================
0104       /// get the title
0105       GAUDI_API std::string htitle( const AIDA::IHistogram1D* histo, const std::string& title = "" );
0106       // ======================================================================
0107       /// get the title
0108       GAUDI_API std::string htitle( const AIDA::IHistogram2D* histo, const std::string& title = "" );
0109       // ======================================================================
0110       /// get the title
0111       GAUDI_API std::string htitle( const AIDA::IHistogram3D* histo, const std::string& title = "" );
0112       // ======================================================================
0113       /// get the title
0114       GAUDI_API std::string htitle( const AIDA::IProfile* histo, const std::string& title = "" );
0115       // ======================================================================
0116       /// get the title
0117       GAUDI_API std::string htitle( const AIDA::IProfile1D* histo, const std::string& title = "" );
0118       // ======================================================================
0119       /// get the title
0120       GAUDI_API std::string htitle( const AIDA::IProfile2D* histo, const std::string& title = "" );
0121       // ======================================================================
0122       GAUDI_API AIDA::IBaseHistogram* toBase( AIDA::IHistogram1D* histo );
0123       // ======================================================================
0124       GAUDI_API AIDA::IBaseHistogram* toBase( AIDA::IHistogram2D* histo );
0125       // ======================================================================
0126       GAUDI_API AIDA::IBaseHistogram* toBase( AIDA::IHistogram3D* histo );
0127       // ======================================================================
0128       GAUDI_API AIDA::IBaseHistogram* toBase( AIDA::IProfile1D* histo );
0129       // ======================================================================
0130       GAUDI_API AIDA::IBaseHistogram* toBase( AIDA::IProfile2D* histo );
0131       // ======================================================================
0132     } // namespace Histos
0133   }   // namespace Utils
0134 } // end of namespace Gaudi
0135 // ============================================================================
0136 // The END
0137 // ============================================================================
0138 #endif // GAUDIALG_FILL_H