IB-0.2
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
IBAnalyzerWPoca.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
19
20
21
#ifndef IBANALYZERWPOCA_H
22
#define IBANALYZERWPOCA_H
23
24
#include "IBAnalyzer.h"
25
26
using namespace uLib;
27
28
class IBPocaEvaluator;
29
class IBMinimizationVariablesEvaluator;
30
31
class IBAnalyzerWPoca : public IBAnalyzer
32
{
33
public:
34
IBAnalyzerWPoca();
35
~IBAnalyzerWPoca();
36
37
inline virtual const char *type_name() const { return "IBAnalyzerWPoca"; }
38
39
bool AddMuon(const MuonScatterData &event);
40
41
void Run(unsigned int iteration = 1, float muons_ratio = 1);
42
43
void SetPocaAlgorithm(IBPocaEvaluator *poca);
44
45
void SetVarAlgorithm(IBMinimizationVariablesEvaluator *evaluator);
46
47
private:
48
49
struct Data {
50
HPoint3f poca;
51
Scalarf weight;
52
};
53
54
IBPocaEvaluator *m_PocaAlgorithm;
55
IBMinimizationVariablesEvaluator *m_Minimizator;
56
std::vector<Data> m_Data;
57
58
Data tmp;
59
Scalarf t_w_1;
60
Scalarf t_w_2;
61
62
#ifndef NDEBUG
63
TFile* m_out;
64
TTree* m_tree;
65
#endif
66
};
67
68
#endif // IBANALYZERWPOCA_H
IBAnalyzerWPoca.h
Generated by
1.8.5