#include <sndAvgDSFiducialCut.h>
Definition at line 10 of file sndAvgDSFiducialCut.h.
◆ avgDSFiducialCut()
snd::analysis_cuts::avgDSFiducialCut::avgDSFiducialCut |
( |
double |
vertical_min_cut, |
|
|
double |
vertical_max_cut, |
|
|
double |
horizontal_min_cut, |
|
|
double |
horizontal_max_cut, |
|
|
TChain * |
tree |
|
) |
| |
Definition at line 6 of file sndAvgDSFiducialCut.cxx.
11
13
15 nbins = std::vector<int>{60, 60};
18 plot_var = std::vector<double>{-1, -1};
19 }
MuFilterBaseCut(TChain *ch)
std::vector< double > plot_var
std::vector< double > range_end
std::vector< double > range_start
◆ ~avgDSFiducialCut()
snd::analysis_cuts::avgDSFiducialCut::~avgDSFiducialCut |
( |
| ) |
|
|
inline |
◆ passCut()
bool snd::analysis_cuts::avgDSFiducialCut::passCut |
( |
| ) |
|
|
virtual |
Implements snd::analysis_cuts::baseCut.
Definition at line 21 of file sndAvgDSFiducialCut.cxx.
21 {
22
23 double avg_ver = 0.;
24 unsigned int n_ver = 0;
25 double avg_hor = 0.;
26 unsigned int n_hor = 0;
27
30
31 while ( (hit = (
MuFilterHit*) hitIterator.Next()) ){
34
36
39 n_ver++;
40 } else {
42 n_hor++;
43 }
44 }
45 }
46
47 if ((n_ver+n_hor) == 0) {
50 return false;
51 }
52
53 if (n_ver) {
54 avg_ver /= n_ver;
56 } else {
58 }
59
60 if (n_hor) {
61 avg_hor /= n_hor;
63 } else {
65 }
66
67 if (n_ver == 0) return false;
68 if (n_hor == 0) return false;
69
74
75 return true;
76 }
Int_t GetDetectorID() const
static TClonesArray * muFilterDigiHitCollection
◆ horizontal_max
double snd::analysis_cuts::avgDSFiducialCut::horizontal_max |
|
private |
◆ horizontal_min
double snd::analysis_cuts::avgDSFiducialCut::horizontal_min |
|
private |
◆ vertical_max
double snd::analysis_cuts::avgDSFiducialCut::vertical_max |
|
private |
◆ vertical_min
double snd::analysis_cuts::avgDSFiducialCut::vertical_min |
|
private |
The documentation for this class was generated from the following files: