SND@LHC Software
Loading...
Searching...
No Matches
sndVetoCut.cxx
Go to the documentation of this file.
1#include "sndVetoCut.h"
2
3#include "TClonesArray.h"
4#include "TChain.h"
5#include "MuFilterHit.h"
6
7namespace snd::analysis_cuts {
8
9 vetoCut::vetoCut(TChain * ch) : MuFilterBaseCut(ch) {
10 cutName = "No hits in veto";
11
12 shortName = "NoVetoHits";
13 nbins = std::vector<int>{16};
14 range_start = std::vector<double>{0};
15 range_end = std::vector<double>{16};
16 plot_var = std::vector<double>{-1};
17
18 }
19
21 MuFilterHit * hit;
22 TIter hitIterator(muFilterDigiHitCollection);
23
24 plot_var[0] = 0;
25
26
27 while ( (hit = (MuFilterHit*) hitIterator.Next()) ){
28 if (hit->GetSystem() == 1) plot_var[0] += 1;
29 }
30
31 if (plot_var[0] > 0) return false;
32 return true;
33 }
34}
int GetSystem()
Definition MuFilterHit.h:41
static TClonesArray * muFilterDigiHitCollection
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