HitVetoMap.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file: HitVetoMap.h
3 // \brief Book-keeping for hits that need to be removed from an event
4 // \author Justin Vasel <justin.vasel@gmail.com>
5 // \date 2019-11-21
6 ////////////////////////////////////////////////////////////////////////
7 
8 #ifndef HITVETOMAP_H
9 #define HITVETOMAP_H
10 
11 // STL includes
12 #include <cstdint>
13 
14 // NOvASoft includes
15 #include "RawData/RawDigit.h"
16 #include "RecoBase/CellHit.h"
18 
19 namespace sn {
20  class HitVetoMap {
21  public:
22  HitVetoMap();
23  ~HitVetoMap();
24 
26  void AddHit(rb::CellHit h);
27 
29  bool ContainsHit(rb::CellHit h);
30 
31  size_t Size();
32 
33  private:
35  std::set<long> fVetoHashes;
36  };
37 }
38 
39 #endif
size_t Size()
Definition: HitVetoMap.cxx:55
bool ContainsHit(rawdata::RawDigit h)
Definition: HitVetoMap.cxx:41
std::set< long > fVetoHashes
Definition: HitVetoMap.h:35
util::HashFunctions hasher
Definition: HitVetoMap.h:34
void AddHit(rawdata::RawDigit h)
Definition: HitVetoMap.cxx:27
Remove hits from hot and cold channels.
A rawdata::RawDigit with channel information decoded.
Definition: CellHit.h:27