RooThreshold.cc File Reference

#include "Riostream.h"
#include "TMath.h"
#include "RooFitCore/RooAbsReal.hh"
#include "RooFitCore/RooRealVar.hh"
#include "RooRarFit/RooThreshold.hh"

Go to the source code of this file.

Functions

 ClassImp (RooThreshold) RooThreshold


Function Documentation

ClassImp ( RooThreshold   ) 

Definition at line 33 of file RooThreshold.cc.

00038                                                                           :
00039   RooAbsPdf(name,title),
00040   x("x","Dependent",this,_x),
00041   m0("mean","Mean",this,_m0),
00042   power("power","power",this,_power),
00043   coeffs("coeffs","coeffs",this)
00044 {
00045   // copy over coefficeints
00046   TIterator* coefIter = _coeffs.createIterator() ;
00047   RooAbsArg* coef(0) ;
00048   while ((coef = (RooAbsArg*)coefIter->Next())) {
00049     if (!dynamic_cast<RooAbsReal*>(coef)) {
00050       cout << "RooTheshold::ctor(" << GetName() << ") ERROR: coefficient " << coef->GetName() 
00051            << " is not of type RooAbsReal" << endl ;
00052       assert(0) ;
00053     }
00054     coeffs.add(*coef) ;
00055   }
00056   delete coefIter ;
00057 }


Generated on 30 Oct 2013 for RooRarFit by  doxygen 1.4.7