laura is hosted by Hepforge, IPPP Durham
Laura++  v3r4
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauKMatrixPropFactory.hh
Go to the documentation of this file.
1 
2 /*
3 Copyright 2008 University of Warwick
4 
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8 
9  http://www.apache.org/licenses/LICENSE-2.0
10 
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 */
17 
18 /*
19 Laura++ package authors:
20 John Back
21 Paul Harrison
22 Thomas Latham
23 */
24 
35 #ifndef LAU_KMATRIX_PROP_FACTORY
36 #define LAU_KMATRIX_PROP_FACTORY
37 
39 
40 #include "TString.h"
41 #include <map>
42 
44 
45  public:
47  virtual ~LauKMatrixPropFactory();
48 
51 
53 
63  LauKMatrixPropagator* getPropagator(const TString& name, const TString& paramFileName,
64  Int_t resPairAmpInt, Int_t nChannels,
65  Int_t nPoles, Int_t rowIndex);
66 
67  protected:
68 
70  typedef std::map<TString, LauKMatrixPropagator*> KMatrixPropMap;
71 
72  private:
75 
78 
81 
84 
87 };
88 
89 #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.
LauKMatrixPropFactory & operator=(const LauKMatrixPropFactory &rhs)
Copy assignment operator (not implemented)
Class for defining a K-matrix propagator.