SND@LHC Software
Loading...
Searching...
No Matches
snd::analysis_cuts::DSVetoCut Class Reference

#include <sndDSVetoCut.h>

Inheritance diagram for snd::analysis_cuts::DSVetoCut:
Collaboration diagram for snd::analysis_cuts::DSVetoCut:

Public Member Functions

 DSVetoCut (TChain *ch)
 
 ~DSVetoCut ()
 
bool passCut ()
 
- Public Member Functions inherited from snd::analysis_cuts::baseCut
std::string getName ()
 
std::string getShortName ()
 
std::vector< int > getNbins ()
 
std::vector< double > getRangeStart ()
 
std::vector< double > getRangeEnd ()
 
std::vector< double > getPlotVar ()
 

Additional Inherited Members

- Protected Member Functions inherited from snd::analysis_cuts::MuFilterBaseCut
 MuFilterBaseCut (TChain *ch)
 
 ~MuFilterBaseCut ()
 
- Protected Attributes inherited from snd::analysis_cuts::baseCut
std::string cutName
 
std::string shortName
 
std::vector< int > nbins
 
std::vector< double > range_start
 
std::vector< double > range_end
 
std::vector< double > plot_var
 
- Static Protected Attributes inherited from snd::analysis_cuts::MuFilterBaseCut
static TClonesArray * muFilterDigiHitCollection = 0
 

Detailed Description

Definition at line 10 of file sndDSVetoCut.h.

Constructor & Destructor Documentation

◆ DSVetoCut()

snd::analysis_cuts::DSVetoCut::DSVetoCut ( TChain *  ch)

Definition at line 12 of file sndDSVetoCut.cxx.

12 : MuFilterBaseCut(ch) {
13 cutName = "Remove events with hits in the last (hor) and two last (ver) DS planes";
14
15 shortName = "DSVetoCut";
16 nbins = std::vector<int>{180};
17 range_start = std::vector<double>{0};
18 range_end = std::vector<double>{180};
19 plot_var = std::vector<double>{-1};
20
21 }
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

◆ ~DSVetoCut()

snd::analysis_cuts::DSVetoCut::~DSVetoCut ( )
inline

Definition at line 13 of file sndDSVetoCut.h.

13{;}

Member Function Documentation

◆ passCut()

bool snd::analysis_cuts::DSVetoCut::passCut ( )
virtual

Implements snd::analysis_cuts::baseCut.

Definition at line 23 of file sndDSVetoCut.cxx.

23 {
24 MuFilterHit * hit;
25 TIter hitIterator(muFilterDigiHitCollection);
26
27 // bool ds = false;
28 // std::vector<bool> us = std::vector<bool>(5, false);
29
30 double n_hits = 0;
31
32 bool ret = true;
33
34 while ( (hit = (MuFilterHit*) hitIterator.Next()) ){
35 if (hit->GetSystem() == 3) { // DS
36 if (hit->GetPlane() >= 3) {
37 ret = false;
38 n_hits+=1;
39 }
40 }
41 }
42
43 plot_var[0] = n_hits;
44 return ret;
45 }
int GetPlane()
Definition MuFilterHit.h:42
int GetSystem()
Definition MuFilterHit.h:41
static TClonesArray * muFilterDigiHitCollection

The documentation for this class was generated from the following files: