1 #ifndef HISTO_BW_LINESHAPE_HH 2 #define HISTO_BW_LINESHAPE_HH 26 :
BW_BW(tree, namePrefix)
28 , _runningWidthHist(0)
30 if( !std::getenv(
"MINT2") ){
32 <<
"ERROR: Mint2 environment variable not set." 33 <<
" Energy-dependent mass/width histograms cannot be found." 38 const std::string hist_path =
39 static_cast<std::string>(std::getenv(
"MINT2"))+
"/share/";
44 TFile*
const f_m = TFile::Open(((
string)fileNameMass).c_str());
45 _runningMassHist = get_mass_histo(f_m,
"RunningMass");
46 TFile*
const f_w = TFile::Open(((
string)fileNameWidth).c_str());
47 _runningWidthHist = get_width_histo(f_w,
"RunningWidth");
52 virtual std::string
name()
const 53 {
return "Histo_BW("+prefix()+_theDecay.oneLiner() +
")"; }
58 double runningMass2();
59 virtual double GofM();
60 virtual std::complex<double> BreitWigner();
61 TH1D* get_width_histo(TFile* f,
const std::string& hname);
62 TH1D* get_mass_histo(TFile* f,
const std::string& hname);
64 TH1D* producePhaseSpaceHist();
67 #endif //HISTO_BW_LINESHAPE_HH
virtual std::string name() const
Histo_BW(const AssociatedDecayTree &tree, const std::string &namePrefix)
const ResonanceProperties * resonanceProperties() const