Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
N21-01-21
DiscreteTracker
Channel.cxx
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
// \file Channel.cxx
3
// \version $Id: Channel.cxx,v 1.7 2012-09-20 21:42:37 greenc Exp $
4
// \author Christopher Backhouse - bckhouse@caltech.edu
5
////////////////////////////////////////////////////////////////////////
6
7
#include "
DiscreteTracker/Channel.h
"
8
9
namespace
dt
10
{
11
12
//......................................................................
13
Channel::Channel
(
int
plane
,
int
cell
)
14
:
OfflineChan
(plane, cell), fType(kUnhit)
15
{
16
}
17
18
//......................................................................
19
void
Channel::SetDead
()
20
{
21
fType
=
kDead
;
22
}
23
24
//......................................................................
25
void
Channel::SetHit
(
art::Ptr<rb::CellHit>
chit)
26
{
27
fType
=
kHit
;
28
fHit
= chit;
29
}
30
31
//......................................................................
32
void
Channel::MarkHitFound
()
33
{
34
assert
(
fType
==
kHit
);
35
fType
=
kFound
;
36
}
37
38
//......................................................................
39
bool
Channel::EverHit
()
const
40
{
41
return
fType
==
kHit
||
fType
==
kFound
;
42
}
43
44
//......................................................................
45
Channel::Type_t
Channel::Type
()
const
46
{
47
return
fType
;
48
}
49
50
//......................................................................
51
art::Ptr<rb::CellHit>
Channel::GetHit
()
const
52
{
53
assert
(
fType
==
kHit
);
54
return
fHit
;
55
}
56
}
dt::Channel::SetDead
void SetDead()
Definition:
Channel.cxx:19
OfflineChan
Definition:
make_cosmic_eff_table.C:39
dt::Channel::kFound
Definition:
Channel.h:27
dt::Channel::GetHit
art::Ptr< rb::CellHit > GetHit() const
Definition:
Channel.cxx:51
NDAPDHVSetting.plane
plane
Definition:
NDAPDHVSetting.py:265
dt::Channel::Type
Type_t Type() const
Definition:
Channel.cxx:45
dt::Channel::fHit
art::Ptr< rb::CellHit > fHit
Definition:
Channel.h:32
dt
Definition:
Cand.cxx:23
dt::Channel::SetHit
void SetHit(art::Ptr< rb::CellHit > chit)
Definition:
Channel.cxx:25
Channel.h
dt::Channel::EverHit
bool EverHit() const
Definition:
Channel.cxx:39
dt::Channel::kDead
Definition:
Channel.h:27
dt::Channel::MarkHitFound
void MarkHitFound()
Definition:
Channel.cxx:32
dt::Channel::Channel
Channel(int plane, int cell)
Definition:
Channel.cxx:13
ana::assert
assert(nhit_max >=nhit_nbins)
getBrightness.cell
cell
Definition:
getBrightness.py:29
dt::Channel::Type_t
Type_t
Definition:
Channel.h:27
dt::Channel::kHit
Definition:
Channel.h:27
art::Ptr< rb::CellHit >
dt::Channel::fType
Type_t fType
Definition:
Channel.h:31
Generated on Thu Jan 21 2021 14:13:46 for NOvA by
1.8.11