ISignalEstimator.cxx
Go to the documentation of this file.
3 
4 #include "TObjString.h"
5 
6 #include <iostream>
7 
8 namespace ana {
9  std::unique_ptr<ISignalEstimator>
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" )
17  return TrivialSignalEstimator::LoadFrom(dir, name);
18 
19  std::cout << "Unknown ISignalEstimator '" << tag->GetString() << "'" << std::endl;
20  abort();
21 
22  }
23 }
const XML_Char * name
Definition: expat.h:151
static std::unique_ptr< TrivialSignalEstimator > LoadFrom(TDirectory *, const std::string &name)
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
static std::unique_ptr< ISignalEstimator > LoadFrom(TDirectory *dir, const std::string &name)
OStream cout
Definition: OStream.cxx:6
TDirectory * dir
Definition: macro.C:5
assert(nhit_max >=nhit_nbins)
enum BeamMode string