IB-0.2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
IBMinimizationVariablesEvaluator.h
Go to the documentation of this file.
1 /*////////////////////////////////////////////////////////////////////////////
2  Copyright 2018 Istituto Nazionale di Fisica Nucleare
3 
4  Licensed under the EUPL, Version 1.2 or - as soon they will be approved by
5  the European Commission - subsequent versions of the EUPL (the "Licence").
6  You may not use this work except in compliance with the Licence.
7 
8  You may obtain a copy of the Licence at:
9 
10  https://joinup.ec.europa.eu/software/page/eupl
11 
12  Unless required by applicable law or agreed to in writing, software
13  distributed under the Licence is distributed on an "AS IS" basis, WITHOUT
14  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15  Licence for the specific language governing permissions and limitations under
16  the Licence.
18 #ifndef IBMINIMIZATIONVARIABLESEVALUATOR_H
19 #define IBMINIMIZATIONVARIABLESEVALUATOR_H
20 
21 #include "Math/Dense.h"
22 #include "Detectors/MuonScatter.h"
23 #include "IBVoxRaytracer.h"
24 #include "IBMuonError.h"
25 
26 using namespace uLib;
27 
28 class IBNormalPlaneMinimizationVariablesEvaluator;
29 class IBSimpleTwoViewsMinimizationVariablesEvaluator;
30 
31 class IBMinimizationVariablesEvaluator : public Object
32 {
33 public:
34  enum IBMinVarEvaluatorAlgorithm {
35  NormalPlane,
36  SimpleTwoViews
37  };
38 
39  static IBMinimizationVariablesEvaluator* New(IBMinVarEvaluatorAlgorithm S);
40 
41  virtual bool evaluate(MuonScatterData muon) = 0;
42  virtual Vector4f getDataVector() = 0;
43  virtual Scalarf getDataVector(int i) = 0;
44  virtual Matrix4f getCovarianceMatrix() = 0;
45  virtual Scalarf getCovarianceMatrix(int i, int j) = 0;
46 
47  virtual void setRaytracer(IBVoxRaytracer* tracer) = 0;
48  virtual void setDisplacementScatterOnly(bool,bool,bool) = 0;
49 
50  // virtual void setConfiguration();
51 
52  virtual ~IBMinimizationVariablesEvaluator() {} // make this protected again!!
53 
54 protected:
55  IBMinimizationVariablesEvaluator() {}
56 };
57 
58 #endif // IBMINIMIZATIONVARIABLESEVALUATOR_H