SFrame 3.6
|
00001 // Dear emacs, this is -*- c++ -*- 00002 // $Id: SInputVariables.h 155 2010-04-08 17:05:09Z krasznaa $ 00003 /*************************************************************************** 00004 * @Project: SFrame - ROOT-based analysis framework for ATLAS 00005 * @Package: Plug-ins 00006 * 00007 * @author Stefan Ask <Stefan.Ask@cern.ch> - Manchester 00008 * @author David Berge <David.Berge@cern.ch> - CERN 00009 * @author Johannes Haller <Johannes.Haller@cern.ch> - Hamburg 00010 * @author A. Krasznahorkay <Attila.Krasznahorkay@cern.ch> - CERN/Debrecen 00011 * 00012 ***************************************************************************/ 00013 00014 #ifndef SFRAME_PLUGINS_SInputVariables_H 00015 #define SFRAME_PLUGINS_SInputVariables_H 00016 00017 // SFrame include(s): 00018 #include "core/include/SError.h" 00019 00030 template< class ParentType > 00031 class SInputVariables { 00032 00033 public: 00035 SInputVariables( ParentType* parent ); 00036 00037 protected: 00039 template< typename T > 00040 bool ConnectVariable( const char* treeName, const char* branchName, 00041 T& variable ) throw ( SError ); 00042 00043 private: 00044 ParentType* m_parent; 00045 00046 }; // class SInputVariables 00047 00048 // Include the template implementation: 00049 #ifndef __CINT__ 00050 #include "SInputVariables.icc" 00051 #endif // __CINT__ 00052 00053 #endif // SFRAME_PLUGINS_SInputVariables_H