Something went wrong on our end
-
Bertram Kopf authoredce2b196c
TwoPoles.cc 7.89 KiB
//************************************************************************//
// //
// Copyright 2013 Bertram Kopf (bertram@ep1.rub.de) //
// Julian Pychy (julian@ep1.rub.de) //
// - Ruhr-Universität Bochum //
// //
// This file is part of Pawian. //
// //
// Pawian is free software: you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation, either version 3 of the License, or //
// (at your option) any later version. //
// //
// Pawian is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License for more details. //
// //
// You should have received a copy of the GNU General Public License //
// along with Pawian. If not, see <http://www.gnu.org/licenses/>. //
// //
//************************************************************************//
#include <getopt.h>
#include <fstream>
#include <sstream>
#include <string>
#include "Examples/Tutorial/LineShapes/TwoPoles.hh"
//#include "qft++/matrix/KpoleMatrix.hh"
//#include "qft++/matrix/TMatrix.hh"
#include "PwaDynamics/KPole.hh"
#include "PwaDynamics/KMatrixRel.hh"
#include "PwaDynamics/TMatrixRel.hh"
#include "PwaDynamics/KMatrixNonRel.hh"
#include "PwaDynamics/TMatrixNonRel.hh"
#include "PwaDynamics/AbsPhaseSpace.hh"
#include "PwaDynamics/PhaseSpaceIsobar.hh"
#include "TFile.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TMath.h"
#include "ErrLogger/ErrLogger.hh"
TwoPoles::TwoPoles(double MassRes1, double Width1, double MassRes2, double Width2, double deltaMass) :
_theTFile(0)
{
if (MassRes1 < MassRes2){
_massLow = MassRes1;
_widthLow = Width1;
_massHigh = MassRes2;
_widthHigh = Width2;
}
else{
_massLow = MassRes2;
_widthLow = Width2;
_massHigh = MassRes1;
_widthHigh = Width1;
}
_theTFile=new TFile("TwoPoles.root","recreate");
_massShapeHist= new TH1F("_massShapeHist", "BreitWigner",301, _massLow-deltaMass, _massHigh+deltaMass);
_massShapeKmatrHist= new TH1F("_massShapeKmatrHist", "mass shape Kmatrix",301, _massLow-deltaMass, _massHigh+deltaMass);
_massShapeKmatrHistRel= new TH1F("_massShapeKmatrHistRel", "mass shape rel. Kmatrix",301, _massLow-deltaMass, _massHigh+deltaMass);