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

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

Public Member Functions

 LowHighADCRemover (sn::HitVetoMap &vetoMap, int lowADCThresh, int highADCThresh)
 
 ~LowHighADCRemover ()
 
int NumRemovedLow ()
 
int NumRemovedHigh ()
 
void remove (art::Ptr< rawdata::RawDigit > hit)
 
void remove (std::vector< art::Ptr< rawdata::RawDigit >> hits)
 

Private Attributes

sn::HitVetoMapfVetoMap
 
int fLowADCThresh
 Min. acceptable hit charge [ADC]. More...
 
int fHighADCThresh
 Max. acceptable hit charge [ADC]. More...
 
int fNumRemovedLow
 Number of low-ADC hits removed. More...
 
int fNumRemovedHigh
 Number of high-ADC hits removed. More...
 

Detailed Description

Definition at line 21 of file LowHighADCRemover.h.

Constructor & Destructor Documentation

sn::LowHighADCRemover::LowHighADCRemover ( sn::HitVetoMap vetoMap,
int  lowADCThresh,
int  highADCThresh 
)

Definition at line 16 of file LowHighADCRemover.cxx.

16  :
17 fVetoMap(vetoMap),
18 fLowADCThresh(lowADCThresh),
19 fHighADCThresh(highADCThresh),
22 {
23 }
sn::HitVetoMap & fVetoMap
int fHighADCThresh
Max. acceptable hit charge [ADC].
int fNumRemovedHigh
Number of high-ADC hits removed.
int fLowADCThresh
Min. acceptable hit charge [ADC].
int fNumRemovedLow
Number of low-ADC hits removed.
sn::LowHighADCRemover::~LowHighADCRemover ( )

Definition at line 26 of file LowHighADCRemover.cxx.

26 {}

Member Function Documentation

int sn::LowHighADCRemover::NumRemovedHigh ( )
inline

Definition at line 29 of file LowHighADCRemover.h.

References fNumRemovedHigh, and hits().

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

29 {return fNumRemovedHigh;};
int fNumRemovedHigh
Number of high-ADC hits removed.
int sn::LowHighADCRemover::NumRemovedLow ( )
inline

Definition at line 28 of file LowHighADCRemover.h.

References fNumRemovedLow.

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

28 {return fNumRemovedLow;};
int fNumRemovedLow
Number of low-ADC hits removed.
void sn::LowHighADCRemover::remove ( art::Ptr< rawdata::RawDigit hit)

Definition at line 30 of file LowHighADCRemover.cxx.

References rawdata::RawDigit::ADC(), sn::HitVetoMap::AddHit(), fHighADCThresh, fLowADCThresh, fNumRemovedHigh, fNumRemovedLow, and fVetoMap.

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

31 {
32  if (hit->ADC() < this->fLowADCThresh) {
33  ++this->fNumRemovedLow;
34  this->fVetoMap.AddHit(*hit);
35  }
36 
37  if (hit->ADC() > this->fHighADCThresh) {
38  ++this->fNumRemovedHigh;
39  this->fVetoMap.AddHit(*hit);
40  }
41 
42  return;
43 }
sn::HitVetoMap & fVetoMap
int fHighADCThresh
Max. acceptable hit charge [ADC].
int fNumRemovedHigh
Number of high-ADC hits removed.
void AddHit(rawdata::RawDigit h)
Definition: HitVetoMap.cxx:27
int16_t ADC(uint32_t i) const
Definition: RawDigit.cxx:58
int fLowADCThresh
Min. acceptable hit charge [ADC].
int fNumRemovedLow
Number of low-ADC hits removed.
void sn::LowHighADCRemover::remove ( std::vector< art::Ptr< rawdata::RawDigit >>  hits)

Definition at line 47 of file LowHighADCRemover.cxx.

References hits().

48 {
50  this->remove(hit);
51  }
52 
53  return;
54 }
void hits()
Definition: readHits.C:15
Definition: structs.h:12
Definition: fwd.h:29

Member Data Documentation

int sn::LowHighADCRemover::fHighADCThresh
private

Max. acceptable hit charge [ADC].

Definition at line 37 of file LowHighADCRemover.h.

Referenced by remove().

int sn::LowHighADCRemover::fLowADCThresh
private

Min. acceptable hit charge [ADC].

Definition at line 36 of file LowHighADCRemover.h.

Referenced by remove().

int sn::LowHighADCRemover::fNumRemovedHigh
private

Number of high-ADC hits removed.

Definition at line 40 of file LowHighADCRemover.h.

Referenced by NumRemovedHigh(), and remove().

int sn::LowHighADCRemover::fNumRemovedLow
private

Number of low-ADC hits removed.

Definition at line 39 of file LowHighADCRemover.h.

Referenced by NumRemovedLow(), and remove().

sn::HitVetoMap& sn::LowHighADCRemover::fVetoMap
private

Definition at line 35 of file LowHighADCRemover.h.

Referenced by remove().


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