ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/UHHAnalysis/SFrameTools/include/BaseHists.h
(Generate patch)

Comparing UserCode/UHHAnalysis/SFrameTools/include/BaseHists.h (file contents):
Revision 1.1 by rkogler, Tue Jun 5 14:52:43 2012 UTC vs.
Revision 1.2 by peiffer, Fri May 17 10:14:53 2013 UTC

# Line 9 | Line 9
9   // ROOT include(s):
10   #include <TObject.h>
11   #include <TString.h>
12 + #include <TList.h>
13  
14   // Local include(s):
15   //#include "include/ISCycleBaseHist.h"
16 < #include "include/SCycleBaseHist.h"
17 < #include "include/SCycleBaseBase.h"
16 > #include "include/SCycleBase.h"
17 > //#include "include/SCycleBaseBase.h"
18   #include "include/SError.h"
19  
20   // Forward declaration(s):
# Line 35 | Line 36 | class TList;
36   *   @version $Revision$
37   */
38  
39 < class BaseHists : public SCycleBaseHist {
39 > class BaseHists : public SCycleBase {
40  
41  
42   public:
# Line 56 | Line 57 | public:
57     TString GetName() {return m_name;}
58     void SetName(TString name) {m_name = name;}
59  
60 +  // class has to inherit from SCycleBase to have access to histogram functionality in SFrame
61 +  // implement virtual routines but throw exception in case they are called
62 +   void BeginCycle()throw( SError ) {  m_logger << ERROR << "This should not happen: BeginCycle called for BaseHist class" << SLogger::endmsg; } ;
63 +   void EndCycle()throw( SError ){  m_logger << ERROR << "This should not happen: EndCycle called for BaseHist class" << SLogger::endmsg; } ;
64 +   void BeginInputData(const SInputData&)throw( SError ){  m_logger << ERROR << "This should not happen: BeginInputData called for BaseHist class" << SLogger::endmsg; } ;
65 +   void EndInputData(const SInputData&)throw( SError ){  m_logger << ERROR << "This should not happen: EndInputData called for BaseHist class" << SLogger::endmsg; } ;
66 +   void BeginInputFile(const SInputData&)throw( SError ){  m_logger << ERROR << "This should not happen: BeginInputFile called for BaseHist class" << SLogger::endmsg; } ;
67 +   void ExecuteEvent(const SInputData&, Double_t)throw( SError ){  m_logger << ERROR << "This should not happen: ExecuteEvent called for BaseHist class" << SLogger::endmsg; } ;
68 +
69 +
70   protected:
71     /// Function placing a ROOT object in the output file
72     template< class T > T* Book( const T& histo ) throw( SError );

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines