NCUtility.cxx File Reference

#include "NCUtility.h"
#include "TH1.h"
#include "TH2.h"
#include "TH3.h"
#include "TStopwatch.h"
#include "MessageService/MsgService.h"
#include <cassert>
#include "sys/stat.h"

Go to the source code of this file.

Functions

 CVSID ("$Id: NCUtility.cxx,v 1.7 2010/01/20 15:41:32 rodriges Exp $")
void GetArray (const TH1 *h, float *&fArray, double *&dArray)
 Private utility to extract the fArray member of a TH1.

Function Documentation

CVSID ( "$Id: NCUtility.  cxx,
v 1.7 2010/01/20 15:41:32 rodriges Exp $"   
)
void GetArray ( const TH1 *  h,
float *&  fArray,
double *&  dArray 
) [inline]

Private utility to extract the fArray member of a TH1.

Definition at line 38 of file NCUtility.cxx.

Referenced by NC::Utility::AddFast(), NC::Utility::DivideFast(), and NC::Utility::MultiplyFast().

00039 {
00040   fArray = 0; dArray = 0;
00041 
00042   const TString className = h->ClassName();
00043 
00044   if(className == "TH1F") fArray = ((TH1F*)h)->fArray;
00045   if(className == "TH2F") fArray = ((TH2F*)h)->fArray;
00046   if(className == "TH3F") fArray = ((TH3F*)h)->fArray;
00047   if(className == "TH1D") dArray = ((TH1D*)h)->fArray;
00048   if(className == "TH2D") dArray = ((TH2D*)h)->fArray;
00049   if(className == "TH3D") dArray = ((TH3D*)h)->fArray;
00050 }


Generated on 8 Jul 2019 for loon by  doxygen 1.6.1