~mbogomilov/maus/devel3

« back to all changes in this revision

Viewing changes to src/common_cpp/DataStructure/EMRDaq.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
 
 
18
#ifndef _SRC_COMMON_CPP_DATASTRUCTURE_EMRDAQ_
 
19
#define _SRC_COMMON_CPP_DATASTRUCTURE_EMRDAQ_
 
20
 
 
21
#include <vector>
 
22
 
 
23
#include "Utils/VersionNumber.hh"
 
24
#include "DataStructure/V1731.hh"
 
25
#include "DataStructure/DBBSpillData.hh"
 
26
 
 
27
namespace MAUS {
 
28
 
 
29
typedef std::vector<V1731>           V1731HitArray;
 
30
typedef std::vector<V1731HitArray>   V1731PartEventArray;
 
31
typedef std::vector<DBBSpillData>    DBBArray;
 
32
 
 
33
class EMRDaq {
 
34
  public:
 
35
    /** Default constructor - initialises to 0/NULL */
 
36
    EMRDaq();
 
37
 
 
38
    /** Copy constructor - any pointers are deep copied */
 
39
    EMRDaq(const EMRDaq& _emrdaq);
 
40
 
 
41
    /** Equality operator - any pointers are deep copied */
 
42
    EMRDaq& operator=(const EMRDaq& _emrdaq);
 
43
 
 
44
    /** Destructor - any member pointers are deleted */
 
45
    virtual ~EMRDaq();
 
46
 
 
47
    /** Returns V1731PartEventArray */
 
48
    V1731PartEventArray GetV1731PartEventArray() const;
 
49
 
 
50
    /** Returns V1731PartEventArray size */
 
51
    size_t GetV1731NumPartEvents() const;
 
52
 
 
53
    /** Get an element from V1731Array (needed for PyROOT) */
 
54
    V1731HitArray GetV1731PartEvent(size_t index) const;
 
55
 
 
56
    /** Get size of V1731Array (needed for PyROOT) */
 
57
    size_t GetV1731PartEventArraySize(size_t index) const;
 
58
 
 
59
    /** Sets V1731Array */
 
60
    void SetV1731PartEventArray(V1731PartEventArray V1731);
 
61
 
 
62
    /** Returns DBB Spill */
 
63
    DBBArray GetDBBArray() const;
 
64
 
 
65
    /** Get an element from V1731Array (needed for PyROOT) */
 
66
    DBBSpillData GetDBBArrayElement(size_t index) const;
 
67
 
 
68
    /** Get size of V1731Array (needed for PyROOT) */
 
69
    size_t GetDBBArraySize() const;
 
70
 
 
71
    /** Sets Dbb Spill */
 
72
    void SetDBBArray(DBBArray s);
 
73
 
 
74
  private:
 
75
    V1731PartEventArray _V1731;
 
76
    DBBArray            _dbb;
 
77
 
 
78
    MAUS_VERSIONED_CLASS_DEF(EMRDaq)
 
79
};
 
80
}
 
81
#endif
 
82