IB-0.2
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
IBAnalyzerWTrackLengths.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 IBANALYZERWTRACKLENGTHS_H
22
#define IBANALYZERWTRACKLENGTHS_H
23
24
#include "IBAnalyzer.h"
25
26
#include "IBVoxRaytracer.h"
27
#include "IBPocaEvaluator.h"
28
29
#include "IBMinimizationVariablesEvaluator.h"
30
31
using namespace uLib;
32
33
34
class IBAnalyzerWTrackLengths : public IBAnalyzer
35
{
36
public:
37
IBAnalyzerWTrackLengths();
38
~IBAnalyzerWTrackLengths();
39
40
inline virtual const char *type_name() const { return "IBAnalyzerWTrackLengths"; }
41
42
bool AddMuon(const MuonScatterData &muon);
43
44
void Run(unsigned int iterations = 1, float muons_ratio = 1);
45
46
void SetRayAlgorithm(IBVoxRaytracer *raytracer);
47
48
void SetPocaAlgorithm(IBPocaEvaluator *evaluator);
49
50
void SetVarAlgorithm(IBMinimizationVariablesEvaluator *algorithm);
51
52
void SetPocaProximity(float sigma = 0); // TODO: //
53
54
private:
55
struct Event {
56
57
struct Element {
58
Matrix4f Wij;
59
IBVoxel *voxel;
60
};
61
62
HPoint3f PoCa;
63
Vector4f Variables;
64
Scalarf Length;
65
Scalarf Momentum;
66
std::vector<Element> elements;
67
};
68
69
void Project(Event *evc);
70
71
std::vector<Event> m_Events;
72
VoxRaytracer *m_RayAlgorithm;
73
IBPocaEvaluator *m_PocaAlgorithm;
74
IBMinimizationVariablesEvaluator *m_VarAlgorithm;
75
Scalarf m_poca_proximity_rms;
76
77
};
78
79
80
81
#endif // IBANALYZERWTRACKLENGTHS_H
IBAnalyzerWTrackLengths.h
Generated by
1.8.5