laura is hosted by Hepforge, IPPP Durham
Laura++  v2r0
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauKMatrixPropFactory.hh
Go to the documentation of this file.
1 
2 // Copyright University of Warwick 2008 - 2013.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 
6 // Authors:
7 // Thomas Latham
8 // John Back
9 // Paul Harrison
10 
21 #ifndef LAU_KMATRIX_PROP_FACTORY
22 #define LAU_KMATRIX_PROP_FACTORY
23 
25 
26 #include "TString.h"
27 #include <map>
28 
30 
31  public:
33  virtual ~LauKMatrixPropFactory();
34 
37 
39 
49  LauKMatrixPropagator* getPropagator(const TString& name, const TString& paramFileName,
50  Int_t resPairAmpInt, Int_t nChannels,
51  Int_t nPoles, Int_t rowIndex);
52 
53  protected:
54 
56  typedef std::map<TString, LauKMatrixPropagator*> KMatrixPropMap;
57 
58  private:
61 
64 
67 };
68 
69 #endif
KMatrixPropMap map_
The map used to store the propagator information.
LauKMatrixPropFactory()
Private constructor (to ensure the singleton nature of this class)
LauKMatrixPropagator * getPropagator(const TString &name, const TString &paramFileName, Int_t resPairAmpInt, Int_t nChannels, Int_t nPoles, Int_t rowIndex)
Retrieve the propagator if it already exists, otherwise create one.
static LauKMatrixPropFactory * getInstance()
Get a static instance of this factory class. Only one is created per application. ...
std::map< TString, LauKMatrixPropagator * > KMatrixPropMap
A typedef to define a map used to keep track of which propagators have been created.
virtual ~LauKMatrixPropFactory()
Destructor.
static LauKMatrixPropFactory * theFactory_
The singleton instance.
Factory class for the K-matrix propagators.
Class for defining a K-matrix propagator.