Public Member Functions | Private Attributes | List of all members
sn::HitVetoMap Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-05-06/Supernova/BackgroundRejection/HitVetoMap.h"

Public Member Functions

 HitVetoMap ()
 
 ~HitVetoMap ()
 
void AddHit (rawdata::RawDigit h)
 
void AddHit (rb::CellHit h)
 
bool ContainsHit (rawdata::RawDigit h)
 
bool ContainsHit (rb::CellHit h)
 
size_t Size ()
 

Private Attributes

util::HashFunctions hasher
 
std::set< long > fVetoHashes
 

Detailed Description

Definition at line 20 of file HitVetoMap.h.

Constructor & Destructor Documentation

sn::HitVetoMap::HitVetoMap ( )

Definition at line 21 of file HitVetoMap.cxx.

21 {}
sn::HitVetoMap::~HitVetoMap ( )

Definition at line 24 of file HitVetoMap.cxx.

24 {}

Member Function Documentation

void sn::HitVetoMap::AddHit ( rawdata::RawDigit  h)

Definition at line 27 of file HitVetoMap.cxx.

References fVetoHashes, util::HashFunctions::Generate(), and hasher.

Referenced by sn::SNBackgroundRejection::produce(), sn::FEBFlasherRemover::remove(), sn::ColdHotChannelsRemover::remove(), sn::SliceRemover::remove(), sn::LowHighADCRemover::remove(), sn::HighEnergyRemover::remove(), and sn::TrackActivityRemover::remove().

28 {
29  this->fVetoHashes.insert(hasher.Generate(h));
30  return;
31 }
std::set< long > fVetoHashes
Definition: HitVetoMap.h:35
util::HashFunctions hasher
Definition: HitVetoMap.h:34
uint64_t Generate(rawdata::RawDigit h)
Compute a unique hash value give a rawdata::RawDigit.
void sn::HitVetoMap::AddHit ( rb::CellHit  h)

Definition at line 34 of file HitVetoMap.cxx.

References fVetoHashes, util::HashFunctions::Generate(), and hasher.

35 {
36  this->fVetoHashes.insert(hasher.Generate(h));
37  return;
38 }
std::set< long > fVetoHashes
Definition: HitVetoMap.h:35
util::HashFunctions hasher
Definition: HitVetoMap.h:34
uint64_t Generate(rawdata::RawDigit h)
Compute a unique hash value give a rawdata::RawDigit.
bool sn::HitVetoMap::ContainsHit ( rawdata::RawDigit  h)

Definition at line 41 of file HitVetoMap.cxx.

References fVetoHashes, util::HashFunctions::Generate(), hasher, and PandAna.Demos.demo0::loc.

Referenced by sn::SNBackgroundRejection::produce(), and sn::HighEnergyRemover::remove().

42 {
43  std::set<long>::iterator loc = this->fVetoHashes.find(hasher.Generate(h));
44  return loc != this->fVetoHashes.end();
45 }
std::set< long > fVetoHashes
Definition: HitVetoMap.h:35
util::HashFunctions hasher
Definition: HitVetoMap.h:34
uint64_t Generate(rawdata::RawDigit h)
Compute a unique hash value give a rawdata::RawDigit.
bool sn::HitVetoMap::ContainsHit ( rb::CellHit  h)

Definition at line 48 of file HitVetoMap.cxx.

References fVetoHashes, util::HashFunctions::Generate(), hasher, and PandAna.Demos.demo0::loc.

49 {
50  std::set<long>::iterator loc = this->fVetoHashes.find(hasher.Generate(h));
51  return loc != this->fVetoHashes.end();
52 }
std::set< long > fVetoHashes
Definition: HitVetoMap.h:35
util::HashFunctions hasher
Definition: HitVetoMap.h:34
uint64_t Generate(rawdata::RawDigit h)
Compute a unique hash value give a rawdata::RawDigit.
size_t sn::HitVetoMap::Size ( )

Definition at line 55 of file HitVetoMap.cxx.

References fVetoHashes.

Referenced by sn::SNBackgroundRejection::produce().

56 {
57  return this->fVetoHashes.size();
58 }
std::set< long > fVetoHashes
Definition: HitVetoMap.h:35

Member Data Documentation

std::set<long> sn::HitVetoMap::fVetoHashes
private

Definition at line 35 of file HitVetoMap.h.

Referenced by AddHit(), ContainsHit(), and Size().

util::HashFunctions sn::HitVetoMap::hasher
private

Definition at line 34 of file HitVetoMap.h.

Referenced by AddHit(), and ContainsHit().


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