~mwinter4/maus/ckov_0_9_3

« back to all changes in this revision

Viewing changes to src/common_cpp/DataStructure/SciFiNoiseHit.hh

MergedĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This file is part of MAUS: http://micewww.pp.rl.ac.uk/projects/maus
 
2
 *
 
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.
 
7
 *
 
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.
 
12
 *
 
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/>.
 
15
 */
 
16
 
 
17
#ifndef _SRC_COMMON_CPP_DATASTRUCTURE_SCIFINOISEHIT_HH_
 
18
#define _SRC_COMMON_CPP_DATASTRUCTURE_SCIFINOISEHIT_HH_
 
19
 
 
20
#include "src/common_cpp/Utils/VersionNumber.hh"
 
21
 
 
22
namespace MAUS {
 
23
 
 
24
/** Identifier for the channel where noise was recorded in the SciFi 
 
25
 */
 
26
class SciFiNoiseHit {
 
27
  public:
 
28
    /** Constructor - allocate to 0 */
 
29
    SciFiNoiseHit();
 
30
 
 
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 );
 
34
 
 
35
    /** Copy Constructor - copies data from noise*/
 
36
    SciFiNoiseHit(const SciFiNoiseHit& noise);
 
37
 
 
38
    /** Equality operator - copies data from noise */
 
39
    SciFiNoiseHit& operator=(const SciFiNoiseHit& noise);
 
40
 
 
41
    /** Destructor (does nothing)*/
 
42
    virtual ~SciFiNoiseHit();
 
43
 
 
44
    /** Get the spill number */
 
45
    int GetSpill() const { return _spill; }
 
46
    /** Set the spill number */
 
47
    void SetSpill(int spill) { _spill = spill; }
 
48
 
 
49
    /** Get the event number */
 
50
    int GetEvent() const {return _event;}
 
51
    /** Set the event number */
 
52
    void SetEvent(int event) {_event = event;}
 
53
 
 
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;}
 
58
 
 
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;}
 
63
 
 
64
    /** Get the plane number */
 
65
    int GetPlane() const {return _plane;}
 
66
    /** Set the plane number */
 
67
    void SetPlane(int plane) {_plane = plane;}
 
68
 
 
69
    /** Get the channel number */
 
70
    int GetChannel() const {return _channel;}
 
71
    /** Set the channel number */
 
72
    void SetChannel(int channel) {_channel = channel;}
 
73
 
 
74
    /** Get NPE */
 
75
    double GetNPE() const {return _npe;}
 
76
    /** Set NPE */
 
77
    void SetNPE(double npe) {_npe = npe;}
 
78
 
 
79
    /** Get Time */
 
80
    double GetTime() const {return _time;}
 
81
    /** Set Time */
 
82
    void SetTime(double time) {_time = time;}
 
83
 
 
84
    /** Get Used */
 
85
    bool GetUsed() const {return _used;}
 
86
    /** Set Used */
 
87
    void SetUsed(bool used) {_used = used;}
 
88
 
 
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;}
 
93
 
 
94
  private:
 
95
    int _spill, _event;
 
96
    int _tracker, _station, _plane, _channel;
 
97
    double  _npe, _time;
 
98
    bool _used;
 
99
    double _digit_id;
 
100
 
 
101
    MAUS_VERSIONED_CLASS_DEF(SciFiNoiseHit)
 
102
};
 
103
 
 
104
// typedef std::vector<SciFiNoiseHit> SciFiNoiseHitArray
 
105
}
 
106
 
 
107
#endif
 
108