CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 > Class Template Reference

#include <MultiHistoChiSquare.h>

Public Member Functions

T1 & function1 ()
 
const T1 & function1 () const
 
T2 & function2 ()
 
const T2 & function2 () const
 
T3 & function3 ()
 
const T3 & function3 () const
 
T4 & function4 ()
 
const T4 & function4 () const
 
T5 & function5 ()
 
const T5 & function5 () const
 
T6 & function6 ()
 
const T6 & function6 () const
 
 MultiHistoChiSquare ()
 
template<typename TT1 , typename TT2 , typename TT3 , typename TT4 , typename TT5 , typename TT6 >
 MultiHistoChiSquare (TT1 &t1, TH1 *histo1, TT2 &t2, TH1 *histo2, TT3 &t3, TH1 *histo3, TT4 &t4, TH1 *histo4, TT5 &t5, TH1 *histo5, TT6 &t6, TH1 *histo6, double rangeMin, double rangeMax)
 
size_t numberOfBins () const
 
double operator() () const
 
void setHistos (TH1 *histo1, TH1 *histo2, TH1 *histo3, TH1 *histo4, TH1 *histo5, TH1 *histo6)
 

Private Attributes

T1 chi1_
 
T2 chi2_
 
T3 chi3_
 
T4 chi4_
 
T5 chi5_
 
T6 chi6_
 

Detailed Description

template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
class fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >

Definition at line 18 of file MultiHistoChiSquare.h.

Constructor & Destructor Documentation

template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::MultiHistoChiSquare ( )
inline

Definition at line 20 of file MultiHistoChiSquare.h.

20 { }
template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
template<typename TT1 , typename TT2 , typename TT3 , typename TT4 , typename TT5 , typename TT6 >
fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::MultiHistoChiSquare ( TT1 &  t1,
TH1 *  histo1,
TT2 &  t2,
TH1 *  histo2,
TT3 &  t3,
TH1 *  histo3,
TT4 &  t4,
TH1 *  histo4,
TT5 &  t5,
TH1 *  histo5,
TT6 &  t6,
TH1 *  histo6,
double  rangeMin,
double  rangeMax 
)
inline

Definition at line 22 of file MultiHistoChiSquare.h.

28  :
29  chi1_(t1, histo1, rangeMin, rangeMax),
30  chi2_(t2, histo2, rangeMin, rangeMax),
31  chi3_(t3, histo3, rangeMin, rangeMax),
32  chi4_(t4, histo4, rangeMin, rangeMax),
33  chi5_(t5, histo5, rangeMin, rangeMax),
34  chi6_(t6, histo6, rangeMin, rangeMax) {
35  }

Member Function Documentation

template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
T1& fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::function1 ( )
inline

Definition at line 61 of file MultiHistoChiSquare.h.

61 { return chi1_.function(); }
template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
const T1& fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::function1 ( ) const
inline

Definition at line 62 of file MultiHistoChiSquare.h.

62 { return chi1_.function(); }
template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
T2& fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::function2 ( )
inline

Definition at line 63 of file MultiHistoChiSquare.h.

63 { return chi2_.function(); }
template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
const T2& fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::function2 ( ) const
inline

Definition at line 64 of file MultiHistoChiSquare.h.

64 { return chi2_.function(); }
template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
T3& fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::function3 ( )
inline

Definition at line 65 of file MultiHistoChiSquare.h.

65 { return chi3_.function(); }
template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
const T3& fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::function3 ( ) const
inline

Definition at line 66 of file MultiHistoChiSquare.h.

66 { return chi3_.function(); }
template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
T4& fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::function4 ( )
inline

Definition at line 67 of file MultiHistoChiSquare.h.

67 { return chi4_.function(); }
template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
const T4& fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::function4 ( ) const
inline

Definition at line 68 of file MultiHistoChiSquare.h.

68 { return chi4_.function(); }
template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
T5& fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::function5 ( )
inline

Definition at line 69 of file MultiHistoChiSquare.h.

69 { return chi5_.function(); }
template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
const T5& fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::function5 ( ) const
inline

Definition at line 70 of file MultiHistoChiSquare.h.

70 { return chi5_.function(); }
template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
T6& fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::function6 ( )
inline

Definition at line 71 of file MultiHistoChiSquare.h.

71 { return chi6_.function(); }
template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
const T6& fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::function6 ( ) const
inline

Definition at line 72 of file MultiHistoChiSquare.h.

72 { return chi6_.function(); }
template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
size_t fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::numberOfBins ( ) const
inline

Definition at line 52 of file MultiHistoChiSquare.h.

Referenced by fit::RootMinuitResultPrinter< MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 > >::print().

52  {
53  return
54  chi1_.numberOfBins() +
55  chi2_.numberOfBins() +
56  chi3_.numberOfBins() +
57  chi4_.numberOfBins() +
58  chi5_.numberOfBins() +
59  chi6_.numberOfBins() ;
60  }
template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
double fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::operator() ( ) const
inline

Definition at line 36 of file MultiHistoChiSquare.h.

References vertices_cff::chi2, and KineDebug3::count().

template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
void fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::setHistos ( TH1 *  histo1,
TH1 *  histo2,
TH1 *  histo3,
TH1 *  histo4,
TH1 *  histo5,
TH1 *  histo6 
)
inline

Definition at line 44 of file MultiHistoChiSquare.h.

44  {
45  chi1_.setHistos(histo1);
46  chi2_.setHistos(histo2);
47  chi3_.setHistos(histo3);
48  chi4_.setHistos(histo4);
49  chi5_.setHistos(histo5);
50  chi6_.setHistos(histo6);
51  }

Member Data Documentation

template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
T1 fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::chi1_
private

Definition at line 74 of file MultiHistoChiSquare.h.

template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
T2 fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::chi2_
private

Definition at line 75 of file MultiHistoChiSquare.h.

template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
T3 fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::chi3_
private

Definition at line 76 of file MultiHistoChiSquare.h.

template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
T4 fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::chi4_
private

Definition at line 77 of file MultiHistoChiSquare.h.

template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
T5 fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::chi5_
private

Definition at line 78 of file MultiHistoChiSquare.h.

template<typename T1, typename T2 = helper::MultiHistoChiSquareNoArg, typename T3 = helper::MultiHistoChiSquareNoArg, typename T4 = helper::MultiHistoChiSquareNoArg, typename T5 = helper::MultiHistoChiSquareNoArg, typename T6 = helper::MultiHistoChiSquareNoArg>
T6 fit::MultiHistoChiSquare< T1, T2, T3, T4, T5, T6 >::chi6_
private

Definition at line 79 of file MultiHistoChiSquare.h.