Public Member Functions | Static Public Member Functions | List of all members
ana::ISignalEstimator Class Referenceabstract

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-28/CAFAna/XSec/ISignalEstimator.h"

Inheritance diagram for ana::ISignalEstimator:
ana::TrivialSignalEstimator

Public Member Functions

virtual const SpectrumBackground () const =0
 
virtual const SpectrumBackgroundComponent (int) const =0
 
virtual const SpectrumSignal (const Spectrum *) const =0
 
virtual int GetNBkgdComponents () const =0
 
virtual ISignalEstimatorClone ()=0
 
virtual void SaveTo (TDirectory *dir, const std::string &name) const =0
 
virtual ~ISignalEstimator ()
 

Static Public Member Functions

static std::unique_ptr< ISignalEstimatorLoadFrom (TDirectory *dir, const std::string &name)
 

Detailed Description

Definition at line 9 of file ISignalEstimator.h.

Constructor & Destructor Documentation

virtual ana::ISignalEstimator::~ISignalEstimator ( )
inlinevirtual

Definition at line 22 of file ISignalEstimator.h.

22 {}

Member Function Documentation

virtual const Spectrum* ana::ISignalEstimator::Background ( ) const
pure virtual

Implemented in ana::TrivialSignalEstimator.

virtual const Spectrum* ana::ISignalEstimator::BackgroundComponent ( int  ) const
pure virtual
virtual ISignalEstimator* ana::ISignalEstimator::Clone ( )
pure virtual
virtual int ana::ISignalEstimator::GetNBkgdComponents ( ) const
pure virtual
std::unique_ptr< ISignalEstimator > ana::ISignalEstimator::LoadFrom ( TDirectory *  dir,
const std::string name 
)
static

Definition at line 10 of file ISignalEstimator.cxx.

References ana::assert(), om::cout, allTimeWatchdog::endl, ana::TrivialSignalEstimator::LoadFrom(), and getGoodRuns4SAM::tag.

Referenced by ana::CrossSectionSpectra::LoadFrom().

11  {
12  TObjString * tag = (TObjString*) dir->Get((name+"/type").c_str());
13  assert(tag);
14 
15  // Classes derived from ISignalEstimator will need to be added here
16  if (tag->GetString() == "TrivialSignalEstimator" )
18 
19  std::cout << "Unknown ISignalEstimator '" << tag->GetString() << "'" << std::endl;
20  abort();
21 
22  }
const XML_Char * name
Definition: expat.h:151
static std::unique_ptr< TrivialSignalEstimator > LoadFrom(TDirectory *, const std::string &name)
OStream cout
Definition: OStream.cxx:6
TDirectory * dir
Definition: macro.C:5
assert(nhit_max >=nhit_nbins)
virtual void ana::ISignalEstimator::SaveTo ( TDirectory *  dir,
const std::string name 
) const
pure virtual
virtual const Spectrum* ana::ISignalEstimator::Signal ( const Spectrum ) const
pure virtual

Implemented in ana::TrivialSignalEstimator.


The documentation for this class was generated from the following files: