FEBFlasherRemover.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file: FEBFlasherRemover.h
3 // \brief Remove hits associated with FEB Flashers
4 // \author Justin Vasel <justin.vasel@gmail.com>
5 // \date 2019-12-02
6 ////////////////////////////////////////////////////////////////////////
7 
8 #ifndef FEBFLASHERREMOVER_H
9 #define FEBFLASHERREMOVER_H
10 
11 #include <cstdint>
12 
13 #include "RawData/RawDigit.h"
15 
16 namespace sn {
18  public:
19  FEBFlasherRemover(sn::HitVetoMap& vetoMap, unsigned int fInstigatorQ, unsigned int fInstigatorT, unsigned int fVetoQ, unsigned int fVetoT);
21 
22  void remove(std::vector<art::Ptr<rawdata::RawDigit>> hits);
23 
24  /**
25  * Return the number of instigator hits. An instigator is any hit whose
26  * charge deposition was high enough to have triggered a flasher response.
27  *
28  * @return number of instigator hits.
29  */
30  int NInstigators();
31 
32  /**
33  * Return the number of flasher hits. A flasher hit is any hit induced by
34  * FEB/APD flasher behavior.
35  *
36  * @return number of flasher hits.
37  */
38  int NFlasherHits();
39 
40  private:
42  unsigned int fInstigatorQ; ///< Charge threshold for instigators [ADC]
43  unsigned int fInstigatorT; ///< Time window for instigator hits [TDC]
44  unsigned int fVetoQ; ///< Only veto below this charge [ADC]
45  unsigned int fVetoT; ///< Time to veto FEB after instigator [TDC]
46 
47  int fNumInstigators = 0;
48  int fNumFlasherHits = 0;
49  };
50 }
51 
52 #endif
unsigned int fInstigatorT
Time window for instigator hits [TDC].
FEBFlasherRemover(sn::HitVetoMap &vetoMap, unsigned int fInstigatorQ, unsigned int fInstigatorT, unsigned int fVetoQ, unsigned int fVetoT)
void hits()
Definition: readHits.C:15
sn::HitVetoMap & fVetoMap
Remove hits from hot and cold channels.
unsigned int fVetoQ
Only veto below this charge [ADC].
unsigned int fInstigatorQ
Charge threshold for instigators [ADC].
unsigned int fVetoT
Time to veto FEB after instigator [TDC].