Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
N21-04-10
Supernova
BackgroundRejection
ColdHotChannelsRemover.h
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
/// \brief Remove hits from hot and cold channels
3
/// \author Justin Vasel <justin.vasel@gmail.com>
4
/// \date 5 December 2019
5
////////////////////////////////////////////////////////////////////////
6
#ifndef COLDHOCHANNELSREMOVER_H
7
#define COLDHOCHANNELSREMOVER_H
8
9
#include <cstdint>
10
11
#include "
RawData/RawDigit.h
"
12
#include "
RecoBase/CellHit.h
"
13
#include "
Supernova/BackgroundRejection/DaqChannelMask.h
"
14
#include "
Supernova/BackgroundRejection/HitVetoMap.h
"
15
16
namespace
sn
{
17
class
ColdHotChannelsRemover
{
18
public
:
19
ColdHotChannelsRemover
(
sn::HitVetoMap
& vetoMap,
sn::DaqChannelMask
& channelMask,
float
coldRateThreshold,
float
hotRateThreshold);
20
~ColdHotChannelsRemover
();
21
22
void
remove
(
art::Ptr<rawdata::RawDigit>
hit
);
23
void
remove
(std::vector<art::Ptr<rawdata::RawDigit>>
hits
);
24
void
remove
(
art::Ptr<rb::CellHit>
hit
);
25
void
remove
(std::vector<art::Ptr<rb::CellHit>>
hits
);
26
27
float
NumRemovedCold
();
28
float
NumRemovedHot
();
29
30
private
:
31
sn::HitVetoMap
&
fVetoMap
;
32
sn::DaqChannelMask
&
fChannelMask
;
33
34
float
fColdRateThreshold
;
35
float
fHotRateThreshold
;
36
37
int
fNumRemovedCold
;
38
int
fNumRemovedHot
;
39
};
40
}
41
42
#endif
sn::ColdHotChannelsRemover::fVetoMap
sn::HitVetoMap & fVetoMap
Definition:
ColdHotChannelsRemover.h:31
RawDigit.h
sn::ColdHotChannelsRemover::~ColdHotChannelsRemover
~ColdHotChannelsRemover()
Definition:
ColdHotChannelsRemover.cxx:24
sn::ColdHotChannelsRemover::fHotRateThreshold
float fHotRateThreshold
Definition:
ColdHotChannelsRemover.h:35
HitVetoMap.h
sn::ColdHotChannelsRemover::fColdRateThreshold
float fColdRateThreshold
Definition:
ColdHotChannelsRemover.h:34
DaqChannelMask.h
CellHit.h
hits
void hits()
Definition:
readHits.C:15
sn::DaqChannelMask
Definition:
DaqChannelMask.h:17
sn::ColdHotChannelsRemover::fNumRemovedHot
int fNumRemovedHot
Definition:
ColdHotChannelsRemover.h:38
sn::ColdHotChannelsRemover::ColdHotChannelsRemover
ColdHotChannelsRemover(sn::HitVetoMap &vetoMap, sn::DaqChannelMask &channelMask, float coldRateThreshold, float hotRateThreshold)
Definition:
ColdHotChannelsRemover.cxx:13
sn
Remove hits from hot and cold channels.
Definition:
ColdHotChannelsRemover.h:16
sn::ColdHotChannelsRemover::fNumRemovedCold
int fNumRemovedCold
Definition:
ColdHotChannelsRemover.h:37
hit
Definition:
structs.h:12
sn::ColdHotChannelsRemover::NumRemovedHot
float NumRemovedHot()
Definition:
ColdHotChannelsRemover.cxx:93
sn::ColdHotChannelsRemover
Definition:
ColdHotChannelsRemover.h:17
sn::HitVetoMap
Definition:
HitVetoMap.h:20
art::Ptr
Definition:
fwd.h:28
sn::ColdHotChannelsRemover::NumRemovedCold
float NumRemovedCold()
Definition:
ColdHotChannelsRemover.cxx:86
sn::ColdHotChannelsRemover::fChannelMask
sn::DaqChannelMask & fChannelMask
Definition:
ColdHotChannelsRemover.h:32
Generated on Sat Apr 10 2021 14:12:21 for NOvA by
1.8.11