IB-0.2
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
IBAnalyzerTrackCount.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 IBANALYZERTRACKCOUNT_H
22
#define IBANALYZERTRACKCOUNT_H
23
24
25
#include "IBAnalyzer.h"
26
#include "IBVoxRaytracer.h"
27
#include "IBPocaEvaluator.h"
28
29
using namespace uLib;
30
31
32
class IBAnalyzerTrackCount : public IBAnalyzer
33
{
34
public:
35
typedef IBAnalyzer BaseClass;
36
37
IBAnalyzerTrackCount();
38
~IBAnalyzerTrackCount();
39
40
inline virtual const char *type_name() const { return "IBAnalyzerTrackCount"; }
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 SetDetectorZSelection(int selectZ);
51
52
void Clear();
53
54
unsigned int Size() const;
55
56
void SetMuonCollection(IBMuonCollection *muons);
57
58
59
private:
60
struct Event {
61
struct Element {
62
IBVoxel *voxel;
63
};
64
std::vector<Element> elements;
65
};
66
67
std::vector<Event> m_Events;
68
VoxRaytracer *m_RayAlgorithm;
69
IBPocaEvaluator *m_PocaAlgorithm;
70
//20170420 select detector based on Z coordinate: -1, 1, 0 if not used
71
int m_detSgnZ;
72
};
73
74
75
76
#endif // IBANALYZERTRACKCOUNT_H
IBAnalyzerTrackCount.h
Generated by
1.8.5