IB-0.2
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
IBAnalyzer.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 IBANALYZER_H
22
#define IBANALYZER_H
23
24
#include <Detectors/MuonScatter.h>
25
#include <Detectors/MuonError.h>
26
27
#include "IBMuonCollection.h"
28
29
using namespace uLib;
30
31
class IBExperiment;
32
class IBAnalyzerPoca;
33
class IBAnalyzerWPoca;
34
class IBAnalyzerEM;
35
36
class IBPocaEvaluator;
37
class IBMinimizationVariablesEvaluator;
38
class IBVoxCollection;
39
40
41
class IBAnalyzer
42
{
43
public:
44
45
virtual inline IBExperiment *GetExperiment() const {
46
return this->m_Experiment;
47
}
48
virtual inline void SetExperiment(IBExperiment *exp) {
49
this->m_Experiment = exp;
50
}
51
virtual inline IBVoxCollection *GetVoxCollection() const {
52
return this->m_VoxCollection;
53
}
54
virtual inline void SetVoxCollection(IBVoxCollection *coll) {
55
this->m_VoxCollection = coll;
56
}
57
virtual inline IBMuonCollection *GetMuonCollection() const {
58
return this->m_MuonCollection;
59
}
60
virtual inline void SetMuonCollection(IBMuonCollection *coll) {
61
this->m_MuonCollection = coll;
62
}
63
64
virtual const char *type_name() const = 0;
65
virtual bool AddMuon(const MuonScatterData &event) = 0;
66
virtual void Run(unsigned int iterations, float muons_ratio) = 0;
67
virtual unsigned int Size() { return 0; }
68
69
protected:
70
IBAnalyzer() :
71
m_Experiment(NULL),
72
m_VoxCollection(NULL),
73
m_MuonCollection(NULL)
74
{}
75
76
virtual ~IBAnalyzer() {}
77
public:
78
IBMuonCollection *m_MuonCollection;
79
80
private:
81
IBExperiment *m_Experiment;
82
IBVoxCollection *m_VoxCollection;
83
};
84
85
#endif // IBANALYZER_H
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
IBAnalyzer.h
Generated by
1.8.5