LiteHit.cxx
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file LiteHit.cxx
3 /// \brief Compressed hit info, basic component of LEM events
4 /// \author Christopher Backhouse - bckhouse@caltech.edu
5 ////////////////////////////////////////////////////////////////////////
6 
7 #include "LEM/func/LiteHit.h"
8 
9 namespace lem
10 {
11  bool compareByCell(const LiteHit& a, const LiteHit& b)
12  {
13  return a.Cell() < b.Cell();
14  }
15 
16  bool compareByPlane(const LiteHit& a, const LiteHit& b)
17  {
18  return a.Plane() < b.Plane();
19  }
20 
21  std::ostream& operator<<(std::ostream& os, const lem::LiteHit& h)
22  {
23  os << h.pecorr << " PECorr on plane " << h.Plane() << ", cell " << h.Cell();
24  return os;
25  }
26 }
bool compareByPlane(const LiteHit &a, const LiteHit &b)
Definition: LiteHit.cxx:16
bool compareByCell(const LiteHit &a, const LiteHit &b)
Definition: LiteHit.cxx:11
float pecorr
Definition: LiteHit.h:24
int Cell() const
Definition: LiteHit.h:39
std::ostream & operator<<(std::ostream &os, const lem::Heads &hs)
Definition: Heads.cxx:140
PID
Definition: FillPIDs.h:14
int Plane() const
Definition: LiteHit.h:38
const double a
Compressed hit info, basic component of LEM events.
const hit & b
Definition: hits.cxx:21
Compressed hit info, basic component of LEM events.
Definition: LiteHit.h:18