IB-0.2
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
IBAnalyzerTrackLengths.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 IBANALYZERTRACKLENGTHS_H
22
#define IBANALYZERTRACKLENGTHS_H
23
24
25
#include "IBAnalyzer.h"
26
27
#include "IBVoxRaytracer.h"
28
#include "IBPocaEvaluator.h"
29
30
using namespace uLib;
31
32
33
class IBAnalyzerTrackLengths : public IBAnalyzer
34
{
35
public:
36
typedef IBAnalyzer BaseClass;
37
38
IBAnalyzerTrackLengths();
39
~IBAnalyzerTrackLengths();
40
41
inline virtual const char *type_name() const { return "IBAnalyzerTrackLengths"; }
42
43
bool AddMuon(const MuonScatterData &muon);
44
45
void Run(unsigned int iterations = 1, float muons_ratio = 1);
46
47
void SetRayAlgorithm(IBVoxRaytracer *raytracer);
48
49
void SetPocaAlgorithm(IBPocaEvaluator *evaluator);
50
51
void SetMuonCollection(IBMuonCollection *muons);
52
53
void SetDetectorZSelection(int selectZ);
54
55
private:
56
struct Event {
57
struct Element {
58
Matrix4f Wij;
59
IBVoxel *voxel;
60
};
61
std::vector<Element> elements;
62
};
63
64
std::vector<Event> m_Events;
65
VoxRaytracer *m_RayAlgorithm;
66
IBPocaEvaluator *m_PocaAlgorithm;
67
//20170420 select detector based on Z coordinate: -1, 1, 0 if not used
68
int m_detSgnZ;
69
};
70
71
72
73
#endif // IBANALYZERTRACKLENGTHS_H
IBAnalyzerTrackLengths.h
Generated by
1.8.5