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_SCIFINOISEHIT_HH_
18
#define _SRC_COMMON_CPP_DATASTRUCTURE_SCIFINOISEHIT_HH_
20
#include "src/common_cpp/Utils/VersionNumber.hh"
24
/** Identifier for the channel where noise was recorded in the SciFi
28
/** Constructor - allocate to 0 */
31
/** Constructor - initialises member variables from arguments */
32
SciFiNoiseHit(int spill, int event, int tracker, int station,
33
int plane, int channel, double npe, double time );
35
/** Copy Constructor - copies data from noise*/
36
SciFiNoiseHit(const SciFiNoiseHit& noise);
38
/** Equality operator - copies data from noise */
39
SciFiNoiseHit& operator=(const SciFiNoiseHit& noise);
41
/** Destructor (does nothing)*/
42
virtual ~SciFiNoiseHit();
44
/** Get the spill number */
45
int GetSpill() const { return _spill; }
46
/** Set the spill number */
47
void SetSpill(int spill) { _spill = spill; }
49
/** Get the event number */
50
int GetEvent() const {return _event;}
51
/** Set the event number */
52
void SetEvent(int event) {_event = event;}
54
/** Get the station number (3-plane view) */
55
int GetStation() const {return _station;}
56
/** Set the station number (3-plane view) */
57
void SetStation(int station) {_station = station;}
59
/** Get the tracker number i.e. upstream or downstream */
60
int GetTracker() const {return _tracker;}
61
/** Set the tracker number i.e. upstream or downstream */
62
void SetTracker(int tracker) {_tracker = tracker;}
64
/** Get the plane number */
65
int GetPlane() const {return _plane;}
66
/** Set the plane number */
67
void SetPlane(int plane) {_plane = plane;}
69
/** Get the channel number */
70
int GetChannel() const {return _channel;}
71
/** Set the channel number */
72
void SetChannel(int channel) {_channel = channel;}
75
double GetNPE() const {return _npe;}
77
void SetNPE(double npe) {_npe = npe;}
80
double GetTime() const {return _time;}
82
void SetTime(double time) {_time = time;}
85
bool GetUsed() const {return _used;}
87
void SetUsed(bool used) {_used = used;}
89
/** Get the Hit-Digit ID */
90
double GetID() const {return _digit_id;}
91
/** Set the Hit-Digit ID */
92
void SetID(double digit_id) {_digit_id = digit_id;}
96
int _tracker, _station, _plane, _channel;
101
MAUS_VERSIONED_CLASS_DEF(SciFiNoiseHit)
104
// typedef std::vector<SciFiNoiseHit> SciFiNoiseHitArray