Commit 0b2594e6 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Added new signatures to HistogramSvc::Helper::act

needed to absorb the change in the return type of TH1::Add,
TH1::Divide and TH1::Multiply.

http://root.cern.ch/viewvc/trunk/hist/hist/inc/TH1D.h?r1=43732&r2=43802

From: Marco Clemencic <marco.clemencic@cern.ch>


git-svn-id: svn+ssh://svn.cern.ch/reps/gaudi/Gaudi/trunk@6865 53ecefc3-a64d-0410-9bdf-b8581fa3287e
parent 3eddee83
......@@ -4,6 +4,11 @@
# Description: standard and commonly used components
################################################################################
! 2012-04-19 - Marco Clemencic
- Added new signatures to HistogramSvc::Helper::act to absorb the change in the
return type of TH1::Add, TH1::Divide and TH1::Multiply.
See http://root.cern.ch/viewvc/trunk/hist/hist/inc/TH1D.h?r1=43732&r2=43802
============================ GaudiCommonSvc v1r1 =============================
! 2012-02-14 - Chris Jones
- Add a "TESVetoList" property to InputCopyStream, to allow certain locations
......
......@@ -106,6 +106,16 @@ protected:
return 0;
}
template <class R, class S, class T1, class T2>
static R* act(R* res,const S& b, Bool_t (T1::*pmf)(const T2*,Double_t), Double_t scale) {
T1 *h1 = Gaudi::getRepresentation<R,T1>(*res);
T1 *h2 = Gaudi::getRepresentation<R,T1>(b);
if ( h1 && h2 ) {
(h1->*pmf)(h2,scale);
return res;
}
return 0;
}
template <class R, class S, class T1, class T2>
static R* act(R* res,const S& b, void (T1::*pmf)(const T2*)) {
T1 *h1 = Gaudi::getRepresentation<R,T1>(*res);
T1 *h2 = Gaudi::getRepresentation<R,T1>(b);
......@@ -115,6 +125,16 @@ protected:
}
return 0;
}
template <class R, class S, class T1, class T2>
static R* act(R* res,const S& b, Bool_t (T1::*pmf)(const T2*)) {
T1 *h1 = Gaudi::getRepresentation<R,T1>(*res);
T1 *h2 = Gaudi::getRepresentation<R,T1>(b);
if ( h1 && h2 ) {
(h1->*pmf)(h2);
return res;
}
return 0;
}
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment