4 #pragma warning(disable:2259)
10 #pragma warning(disable:4996)
16 #include "TProfile2D.h"
31 m_classType =
"IProfile2D";
32 m_rep =
new TProfile2D();
33 m_rep->SetErrorOption(
"s");
34 m_rep->SetDirectory(0);
42 bool fill(
double x,
double y,
double z,
double weight) {
43 m_rep->Fill(x,y,z,weight);
47 virtual const CLID&
clID()
const {
return classID(); }
55 if (className ==
"AIDA::IProfile2D")
56 return const_cast<AIDA::IProfile2D*
>((AIDA::IProfile2D*)
this);
57 else if (className ==
"AIDA::IProfile")
58 return const_cast<AIDA::IProfile*
>((AIDA::IProfile*)
this);
59 else if (className ==
"AIDA::IBaseHistogram")
60 return const_cast<AIDA::IBaseHistogram*
>((AIDA::IBaseHistogram*)
this);
66 int rBin = m_rep->GetBin(rIndexX(idX),rIndexY(idY));
67 return int(m_rep->GetBinEntries(rBin)+0.5);
72 TProfile2D* imp =
dynamic_cast<TProfile2D*
>(rep);
74 if ( m_rep )
delete m_rep;
76 m_xAxis.initialize(m_rep->GetXaxis(),
true);
77 m_yAxis.initialize(m_rep->GetYaxis(),
true);
78 setTitle(m_rep->GetTitle());
87 Profile2D* p =
new Profile2D(
new TProfile2D(title.c_str(),title.c_str(),eX.size()-1,&eX.front(), eY.size()-1,&eY.front()));
93 Profile2D* p =
new Profile2D(
new TProfile2D(title.c_str(),title.c_str(),binsX,xlow,xup,binsY,ylow,yup,zlow,zup));
98 TProfile2D *h = getRepresentation<AIDA::IProfile2D,TProfile2D>(hist);
99 Profile2D *n = h ?
new Profile2D(
new TProfile2D(*h)) : 0;
105 m_classType =
"IProfile2D";
106 rep->SetDirectory(0);
107 adoptRepresentation(rep);
111 typedef Gaudi::Profile2D
P2D;