1
/* This file is part of MAUS: http://micewww.pp.rl.ac.uk/projects/maus
3
* MAUS is free software: you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License as published by
5
* the Free Software Foundation, either version 3 of the License, or
6
* (at your option) any later version.
8
* MAUS is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with MAUS. If not, see <http://www.gnu.org/licenses/>.
17
#ifndef _SRC_COMMON_CPP_DATASTRUCTURE_EMRPLANEHIT_
18
#define _SRC_COMMON_CPP_DATASTRUCTURE_EMRPLANEHIT_
22
#include "Utils/VersionNumber.hh"
23
#include "DataStructure/EMRBar.hh"
27
typedef std::vector<EMRBar *> EMRBarArray;
29
/** @class EMRPlaneHit comment
31
* @var plane <-- plane id / DBB id / fADC id -->
32
* @var orientation <-- plane orientation, can be 0 or 1 -->
33
* @var emrbararray <-- array of bars in the plane / 59 elements -->
34
* @var charge <-- fADC charge -->
35
* @var time <-- trigger time w.r.t. start of the spill recorded by DBB -->
36
* @var spill <-- spill count recorded by DBB-->
37
* @var trigger <-- trigger count recorded by DBB-->
38
* @var deltat <-- time of a hit in fADC minus trigger hit time measured by fADC -->
43
/** Default constructor - initialises to 0/NULL */
46
/** Copy constructor - any pointers are deep copied */
47
EMRPlaneHit(const EMRPlaneHit& _emrbarhit);
49
/** Equality operator - any pointers are deep copied */
50
EMRPlaneHit& operator=(const EMRPlaneHit& _emrbarhit);
52
/** Destructor - any member pointers are deleted */
53
virtual ~EMRPlaneHit();
59
void SetPlane(int plane);
62
EMRBarArray GetEMRBarArray() const;
65
void SetEMRBarArray(EMRBarArray emrbararray);
68
int GetCharge() const;
71
void SetCharge(int charge);
77
void SetTime(int time);
83
void SetSpill(int spill);
86
int GetTrigger() const;
89
void SetTrigger(int trigger);
92
int GetDeltaT() const;
95
void SetDeltaT(int deltat);
98
int GetOrientation() const;
101
void SetOrientation(int orient);
106
EMRBarArray _emrbararray;
113
MAUS_VERSIONED_CLASS_DEF(EMRPlaneHit)
117
#endif // _SRC_COMMON_CPP_DATASTRUCTURE_EMRPLANEHIT_