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 
8 
9 namespace dt
10 {
11 
12  //......................................................................
14  : OfflineChan(plane, cell), fType(kUnhit)
15  {
16  }
17 
18  //......................................................................
20  {
21  fType = kDead;
22  }
23 
24  //......................................................................
26  {
27  fType = kHit;
28  fHit = chit;
29  }
30 
31  //......................................................................
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  //......................................................................
46  {
47  return fType;
48  }
49 
50  //......................................................................
52  {
53  assert(fType == kHit);
54  return fHit;
55  }
56 }
void SetDead()
Definition: Channel.cxx:19
art::Ptr< rb::CellHit > GetHit() const
Definition: Channel.cxx:51
Type_t Type() const
Definition: Channel.cxx:45
art::Ptr< rb::CellHit > fHit
Definition: Channel.h:32
Definition: Cand.cxx:23
void SetHit(art::Ptr< rb::CellHit > chit)
Definition: Channel.cxx:25
bool EverHit() const
Definition: Channel.cxx:39
void MarkHitFound()
Definition: Channel.cxx:32
Channel(int plane, int cell)
Definition: Channel.cxx:13
assert(nhit_max >=nhit_nbins)
Type_t fType
Definition: Channel.h:31