SND@LHC Software
Loading...
Searching...
No Matches
sndMinSciFiConsecutivePlanes.cxx
Go to the documentation of this file.
2
3#include "sndSciFiTools.h"
4
5#include "TChain.h"
6
7namespace snd::analysis_cuts{
9 cutName = "Two or more consecutive SciFi planes";
10
11 shortName = "At least two consecutive SciFi planes";
12 nbins = std::vector<int>{1};
13 range_start = std::vector<double>{0};
14 range_end = std::vector<double>{1};
15 plot_var = std::vector<double>{-1};
16
17 }
18
21
22 // For a plane to count, need both planes to have hits
23 for (int i = 0; i < hits_per_plane_horizontal.size() - 1; i++){
25 *hits_per_plane_horizontal[i+1] * hits_per_plane_vertical[i+1] > 0) return true;
26 }
27 return false;
28 }
29}
std::vector< double > plot_var
Definition sndBaseCut.h:14
std::vector< double > range_end
Definition sndBaseCut.h:13
std::vector< double > range_start
Definition sndBaseCut.h:12
std::vector< int > nbins
Definition sndBaseCut.h:11
static std::vector< int > hits_per_plane_vertical
static std::vector< int > hits_per_plane_horizontal