Public Member Functions | Public Attributes | List of all members
lem::LiteHit Class Reference

Compressed hit info, basic component of LEM events. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-04-17/LEM/func/LiteHit.h"

Public Member Functions

 LiteHit ()
 
 LiteHit (unsigned int p, unsigned int c, double pe, unsigned char i)
 
int Plane () const
 
int Cell () const
 
void SetPlaneCell (int p, int c)
 
void SetPlane (int p)
 
void SetCell (int c)
 
bool operator< (const LiteHit &rhs) const
 

Public Attributes

float pecorr
 
unsigned short cellIdx
 
unsigned char partIdx
 

Detailed Description

Compressed hit info, basic component of LEM events.

Definition at line 18 of file LiteHit.h.

Constructor & Destructor Documentation

lem::LiteHit::LiteHit ( )
inline

Definition at line 21 of file LiteHit.h.

21 {}
lem::LiteHit::LiteHit ( unsigned int  p,
unsigned int  c,
double  pe,
unsigned char  i 
)
inline

Definition at line 29 of file LiteHit.h.

References ana::assert(), and SetPlaneCell().

29  : pecorr(pe), partIdx(i)
30  {
31  assert(pecorr > 0);
32 
33  assert(sizeof(short) == 2);
34 
35  SetPlaneCell(p, c);
36  }
const char * p
Definition: xmltok.h:285
unsigned char partIdx
Definition: LiteHit.h:26
float pecorr
Definition: LiteHit.h:24
void SetPlaneCell(int p, int c)
Definition: LiteHit.h:40
assert(nhit_max >=nhit_nbins)

Member Function Documentation

int lem::LiteHit::Cell ( ) const
inline
bool lem::LiteHit::operator< ( const LiteHit rhs) const
inline

Definition at line 44 of file LiteHit.h.

References a, b, cellIdx, lem::compareByCell(), lem::compareByPlane(), make_syst_table_plots::h, and lem::operator<<().

44 {return cellIdx < rhs.cellIdx;}
unsigned short cellIdx
Definition: LiteHit.h:25
int lem::LiteHit::Plane ( ) const
inline
void lem::LiteHit::SetCell ( int  c)
inline

Definition at line 42 of file LiteHit.h.

References Plane(), and SetPlaneCell().

Referenced by lem::MatchableEvent::Flipped(), and lem::AlignLibToVtx::produce().

42 {SetPlaneCell(Plane(), c);}
int Plane() const
Definition: LiteHit.h:38
void SetPlaneCell(int p, int c)
Definition: LiteHit.h:40
void lem::LiteHit::SetPlane ( int  p)
inline

Definition at line 41 of file LiteHit.h.

References Cell(), and SetPlaneCell().

Referenced by lem::AlignLibToVtx::produce().

41 {SetPlaneCell(p, Cell());}
const char * p
Definition: xmltok.h:285
int Cell() const
Definition: LiteHit.h:39
void SetPlaneCell(int p, int c)
Definition: LiteHit.h:40
void lem::LiteHit::SetPlaneCell ( int  p,
int  c 
)
inline

Definition at line 40 of file LiteHit.h.

References makeTrainCVSamples::int.

Referenced by LiteHit(), SetCell(), and SetPlane().

40 {cellIdx = int(p)*256+int(c);}
const char * p
Definition: xmltok.h:285
unsigned short cellIdx
Definition: LiteHit.h:25

Member Data Documentation

unsigned short lem::LiteHit::cellIdx
unsigned char lem::LiteHit::partIdx

Definition at line 26 of file LiteHit.h.

Referenced by lem::EventSummary::ToTree().

float lem::LiteHit::pecorr

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