SND@LHC Software
Loading...
Searching...
No Matches
sndDSPlane.h
Go to the documentation of this file.
1
#ifndef SND_DSPLANE_H
2
#define SND_DSPLANE_H
3
4
#include <vector>
5
6
#include "
MuFilter.h
"
7
#include "
MuFilterHit.h
"
8
#include "
sndConfiguration.h
"
9
10
namespace
snd
{
11
namespace
analysis_tools {
12
class
DSPlane
13
{
14
public
:
15
16
// right and left side of DS bars
17
template
<
class
T>
18
struct
rl_pair
19
{
20
T
right
{};
21
T
left
{};
22
};
23
24
// hits vector, each hit has info about timestamp, qdc and position
25
struct
DSHit
26
{
27
int
channel_index
;
28
int
bar
;
29
30
double
qdc
;
31
double
timestamp
;
32
double
x
;
33
double
y
;
34
double
z
;
35
36
bool
is_x
;
// true if vertical (measures x)
37
bool
is_right
;
38
39
void
Print
()
const
;
40
};
41
42
DSPlane
(std::vector<MuFilterHit*> snd_hits,
const
Configuration
&configuration,
MuFilter
*muon_filter_geometry,
int
station);
43
44
const
int
GetNHits
()
const
{
return
hits_
.size(); };
45
const
int
GetStation
()
const
{
return
station_
; }
46
47
const
double
GetTotQdc
()
const
;
48
const
std::vector<DSHit>
GetHits
()
const
{
return
hits_
; };
49
const
int
GetBarNHits
(
int
bar_to_compute)
const
;
50
51
void
TimeFilter
(
double
min_timestamp,
double
max_timestamp);
52
const
int
GetNHitBars
()
const
;
53
54
private
:
55
std::vector<DSHit>
hits_
;
56
Configuration
configuration_
;
57
int
station_
;
58
};
59
}
60
}
61
62
#endif
MuFilterHit.h
MuFilter.h
MuFilter
Definition
MuFilter.h:26
snd::analysis_tools::DSPlane
Definition
sndDSPlane.h:13
snd::analysis_tools::DSPlane::GetNHits
const int GetNHits() const
Definition
sndDSPlane.h:44
snd::analysis_tools::DSPlane::hits_
std::vector< DSHit > hits_
Definition
sndDSPlane.h:55
snd::analysis_tools::DSPlane::TimeFilter
void TimeFilter(double min_timestamp, double max_timestamp)
Definition
sndDSPlane.cxx:63
snd::analysis_tools::DSPlane::GetTotQdc
const double GetTotQdc() const
Definition
sndDSPlane.cxx:49
snd::analysis_tools::DSPlane::station_
int station_
Definition
sndDSPlane.h:57
snd::analysis_tools::DSPlane::GetStation
const int GetStation() const
Definition
sndDSPlane.h:45
snd::analysis_tools::DSPlane::GetBarNHits
const int GetBarNHits(int bar_to_compute) const
Definition
sndDSPlane.cxx:56
snd::analysis_tools::DSPlane::configuration_
Configuration configuration_
Definition
sndDSPlane.h:56
snd::analysis_tools::DSPlane::GetHits
const std::vector< DSHit > GetHits() const
Definition
sndDSPlane.h:48
snd::analysis_tools::DSPlane::GetNHitBars
const int GetNHitBars() const
Definition
sndDSPlane.cxx:71
snd
Definition
sndAvgDSFiducialCut.cxx:5
sndConfiguration.h
snd::Configuration
Definition
sndConfiguration.h:9
snd::analysis_tools::DSPlane::DSHit
Definition
sndDSPlane.h:26
snd::analysis_tools::DSPlane::DSHit::is_right
bool is_right
Definition
sndDSPlane.h:37
snd::analysis_tools::DSPlane::DSHit::is_x
bool is_x
Definition
sndDSPlane.h:36
snd::analysis_tools::DSPlane::DSHit::Print
void Print() const
Definition
sndDSPlane.cxx:80
snd::analysis_tools::DSPlane::DSHit::z
double z
Definition
sndDSPlane.h:34
snd::analysis_tools::DSPlane::DSHit::bar
int bar
Definition
sndDSPlane.h:28
snd::analysis_tools::DSPlane::DSHit::channel_index
int channel_index
Definition
sndDSPlane.h:27
snd::analysis_tools::DSPlane::DSHit::timestamp
double timestamp
Definition
sndDSPlane.h:31
snd::analysis_tools::DSPlane::DSHit::x
double x
Definition
sndDSPlane.h:32
snd::analysis_tools::DSPlane::DSHit::qdc
double qdc
Definition
sndDSPlane.h:30
snd::analysis_tools::DSPlane::DSHit::y
double y
Definition
sndDSPlane.h:33
snd::analysis_tools::DSPlane::rl_pair
Definition
sndDSPlane.h:19
snd::analysis_tools::DSPlane::rl_pair::left
T left
Definition
sndDSPlane.h:21
snd::analysis_tools::DSPlane::rl_pair::right
T right
Definition
sndDSPlane.h:20
analysis
tools
sndDSPlane.h
Generated by
1.9.8