Match.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file Match.h
3 /// \brief Information about a LEM match
4 /// \author Christopher Backhouse - bckhouse@caltech.edu
5 ////////////////////////////////////////////////////////////////////////
6 
7 #ifndef LEM_MATCH_H
8 #define LEM_MATCH_H
9 
10 #include "TVector3.h"
11 
12 namespace lem
13 {
14  class MatchableEvent;
15 
16  /// Information about a %LEM match
17  class Match
18  {
19  public:
20  Match() : energy(-1e10), qfrac(-1), evt(0), flipEven(false), flipOdd(false), headSeqNo(-1) {}
21  Match(float E, const MatchableEvent* e, bool even = false, bool odd = false, int headSeq = -1)
22  : energy(E), qfrac(-1), evt(e), flipEven(even), flipOdd(odd), headSeqNo(headSeq) {}
23  bool operator<(const Match& rhs) const {return energy < rhs.energy;}
24  double energy;
25  double qfrac;
28 
29  int headSeqNo;
30 
31  TVector3 MaybeFlip(const TVector3& v) const;
32  };
33 }
34 
35 #endif
Attach some information used in matching to an EventSummary.
const MatchableEvent * evt
Definition: Match.h:26
bool flipOdd
Definition: Match.h:27
Match()
Definition: Match.h:20
PID
Definition: FillPIDs.h:14
int headSeqNo
Definition: Match.h:29
Float_t E
Definition: plot.C:20
TVector3 MaybeFlip(const TVector3 &v) const
Definition: Match.cxx:12
double qfrac
Definition: Match.h:25
Match(float E, const MatchableEvent *e, bool even=false, bool odd=false, int headSeq=-1)
Definition: Match.h:21
Information about a LEM match.
Definition: Match.h:17
double energy
Definition: Match.h:24
bool operator<(const Match &rhs) const
Definition: Match.h:23
Float_t e
Definition: plot.C:35
bool flipEven
Definition: Match.h:27