~m-a-uchida/maus/RKdEdxDevel

« back to all changes in this revision

Viewing changes to src/common_cpp/DataStructure/EMRBarHit.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_EMRBARHIT_
 
18
#define _SRC_COMMON_CPP_DATASTRUCTURE_EMRBARHIT_
 
19
 
 
20
#include "Utils/VersionNumber.hh"
 
21
 
 
22
namespace MAUS {
 
23
 
 
24
/** @class EMRBarHit comment
 
25
 *
 
26
 *  @var tot  <-- time over threshold measurement-->
 
27
 *  @var deltat  <-- time of a hit minus trigger hit time measured by DBB -->
 
28
 */
 
29
 
 
30
class EMRBarHit {
 
31
  public:
 
32
    /** Default constructor - initialises to 0/NULL */
 
33
    EMRBarHit();
 
34
 
 
35
    /** Copy constructor - any pointers are deep copied */
 
36
    EMRBarHit(const EMRBarHit& _emrbarhit);
 
37
 
 
38
    /** Equality operator - any pointers are deep copied */
 
39
    EMRBarHit& operator=(const EMRBarHit& _emrbarhit);
 
40
 
 
41
    /** Destructor - any member pointers are deleted */
 
42
    virtual ~EMRBarHit();
 
43
 
 
44
    /** Returns Time Over Threshold */
 
45
    int GetTot() const;
 
46
 
 
47
    /** Sets Time Over Threshold */
 
48
    void SetTot(int tot);
 
49
 
 
50
    /** Returns time from closest trigger */
 
51
    int GetDeltaT() const;
 
52
 
 
53
    /** Sets time from closest trigger */
 
54
    void SetDeltaT(int deltat);
 
55
 
 
56
  private:
 
57
    int _tot;
 
58
    int _deltat;
 
59
 
 
60
    MAUS_VERSIONED_CLASS_DEF(EMRBarHit)
 
61
};
 
62
}
 
63
 
 
64
#endif  // _SRC_COMMON_CPP_DATASTRUCTURE_EMRBARHIT_
 
65