LowHighADCRemover.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file: LowHighADCRemover.h
3 // \brief Remove hits associated that are too high or low in ADC to be
4 // viable SN candidates.
5 // \author Justin Vasel <justin.vasel@gmail.com>
6 // \date 2019-11-21
7 ////////////////////////////////////////////////////////////////////////
8 
9 #ifndef LOWHIGHADCREMOVER_H
10 #define LOWHIGHADCREMOVER_H
11 
12 // STL includes
13 #include <cstdint>
14 
15 // NOvASoft includes
16 #include "RawData/RawDigit.h"
17 #include "RecoBase/CellHit.h"
19 
20 namespace sn {
22  public:
24  int lowADCThresh,
25  int highADCThresh);
27 
28  int NumRemovedLow(){return fNumRemovedLow;};
30 
31  void remove(art::Ptr<rawdata::RawDigit> hit);
32  void remove(std::vector<art::Ptr<rawdata::RawDigit>> hits);
33 
34  private:
36  int fLowADCThresh; ///< Min. acceptable hit charge [ADC]
37  int fHighADCThresh; ///< Max. acceptable hit charge [ADC]
38 
39  int fNumRemovedLow; ///< Number of low-ADC hits removed
40  int fNumRemovedHigh; ///< Number of high-ADC hits removed
41  };
42 }
43 
44 #endif
sn::HitVetoMap & fVetoMap
int fHighADCThresh
Max. acceptable hit charge [ADC].
int fNumRemovedHigh
Number of high-ADC hits removed.
void hits()
Definition: readHits.C:15
LowHighADCRemover(sn::HitVetoMap &vetoMap, int lowADCThresh, int highADCThresh)
Remove hits from hot and cold channels.
Definition: structs.h:12
int fLowADCThresh
Min. acceptable hit charge [ADC].
Definition: fwd.h:29
int fNumRemovedLow
Number of low-ADC hits removed.