~mbogomilov/maus/devel3

« back to all changes in this revision

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

  • Committer: Durga Rajaram
  • Date: 2014-01-14 07:07:02 UTC
  • mfrom: (659.1.80 relcand)
  • Revision ID: durga@fnal.gov-20140114070702-2l1fuj1w6rraw7xe
Tags: MAUS-v0.7.6
MAUS-v0.7.6

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_EMRPLANEHIT_
 
18
#define _SRC_COMMON_CPP_DATASTRUCTURE_EMRPLANEHIT_
 
19
 
 
20
#include <vector>
 
21
 
 
22
#include "Utils/VersionNumber.hh"
 
23
#include "DataStructure/EMRBar.hh"
 
24
 
 
25
namespace MAUS {
 
26
 
 
27
typedef std::vector<EMRBar *> EMRBarArray;
 
28
 
 
29
/** @class EMRPlaneHit comment
 
30
 *
 
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 -->
 
39
 */
 
40
 
 
41
class EMRPlaneHit {
 
42
  public:
 
43
    /** Default constructor - initialises to 0/NULL */
 
44
    EMRPlaneHit();
 
45
 
 
46
    /** Copy constructor - any pointers are deep copied */
 
47
    EMRPlaneHit(const EMRPlaneHit& _emrbarhit);
 
48
 
 
49
    /** Equality operator - any pointers are deep copied */
 
50
    EMRPlaneHit& operator=(const EMRPlaneHit& _emrbarhit);
 
51
 
 
52
    /** Destructor - any member pointers are deleted */
 
53
    virtual ~EMRPlaneHit();
 
54
 
 
55
    /** Returns  */
 
56
    int GetPlane() const;
 
57
 
 
58
    /** Sets  */
 
59
    void SetPlane(int plane);
 
60
 
 
61
    /** Returns  */
 
62
    EMRBarArray GetEMRBarArray() const;
 
63
 
 
64
    /** Sets  */
 
65
    void SetEMRBarArray(EMRBarArray emrbararray);
 
66
 
 
67
    /** Returns  */
 
68
    int GetCharge() const;
 
69
 
 
70
    /** Sets  */
 
71
    void SetCharge(int charge);
 
72
 
 
73
    /** Returns  */
 
74
    int GetTime() const;
 
75
 
 
76
    /** Sets  */
 
77
    void SetTime(int time);
 
78
 
 
79
    /** Returns  */
 
80
    int GetSpill() const;
 
81
 
 
82
    /** Sets  */
 
83
    void SetSpill(int spill);
 
84
 
 
85
    /** Returns  */
 
86
    int GetTrigger() const;
 
87
 
 
88
    /** Sets  */
 
89
    void SetTrigger(int trigger);
 
90
 
 
91
    /** Returns  */
 
92
    int GetDeltaT() const;
 
93
 
 
94
    /** Sets  */
 
95
    void SetDeltaT(int deltat);
 
96
 
 
97
    /** Returns  */
 
98
    int GetOrientation() const;
 
99
 
 
100
    /** Sets  */
 
101
    void SetOrientation(int orient);
 
102
 
 
103
  private:
 
104
    int _plane;
 
105
    int _orientation;
 
106
    EMRBarArray _emrbararray;
 
107
    int _charge;
 
108
    int _time;
 
109
    int _spill;
 
110
    int _trigger;
 
111
    int _deltat;
 
112
 
 
113
    MAUS_VERSIONED_CLASS_DEF(EMRPlaneHit)
 
114
};
 
115
}
 
116
 
 
117
#endif  // _SRC_COMMON_CPP_DATASTRUCTURE_EMRPLANEHIT_
 
118