~mbogomilov/maus/devel3

« back to all changes in this revision

Viewing changes to src/common_cpp/DataStructure/Spill.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:
21
21
#include <map>
22
22
#include <string>
23
23
 
24
 
#include "src/common_cpp/Utils/VersionNumber.hh"
25
 
#include "src/common_cpp/DataStructure/DAQData.hh"
26
 
#include "src/common_cpp/DataStructure/EMRSpillData.hh"
27
 
#include "src/common_cpp/DataStructure/Scalars.hh"
28
 
#include "src/common_cpp/DataStructure/MCEvent.hh"
29
 
#include "src/common_cpp/DataStructure/ReconEvent.hh"
30
 
#include "src/common_cpp/DataStructure/TestBranch.hh"
 
24
#include "Utils/VersionNumber.hh"
 
25
#include "DataStructure/DAQData.hh"
 
26
#include "DataStructure/Scalars.hh"
 
27
#include "DataStructure/MCEvent.hh"
 
28
#include "DataStructure/ReconEvent.hh"
 
29
#include "DataStructure/TestBranch.hh"
31
30
 
32
31
namespace MAUS {
33
 
typedef std::vector<ReconEvent*> ReconEventArray;
34
 
typedef std::vector<MCEvent*> MCEventArray;
35
32
typedef std::map<std::string, std::string> ErrorsMap;
36
33
 
37
34
/** @class Spill stores data for all items in a given spill
54
51
  virtual ~Spill();
55
52
 
56
53
  /** Set the scalars information */
57
 
  void SetScalars(Scalars* scalars);
 
54
  void SetScalars(Scalars *scalars);
58
55
 
59
56
  /** Get the scalars information */
60
57
  Scalars* GetScalars() const;
61
58
 
62
 
  /** Set the EMR Spill information */
63
 
  void SetEMRSpillData(EMRSpillData* emr);
64
 
 
65
 
  /** Get the EMR Spill information */
66
 
  EMRSpillData* GetEMRSpillData() const;
67
59
 
68
60
  /** Set the DAQ output */
69
61
  void SetDAQData(DAQData* daq);
72
64
  DAQData* GetDAQData() const;
73
65
 
74
66
  /** Set the MC events */
75
 
  void SetMCEvents(MCEventArray* events);
 
67
  void SetMCEvents(MCEventPArray* events);
76
68
 
77
69
  /** Get the MC events */
78
 
  MCEventArray* GetMCEvents() const;
 
70
  MCEventPArray* GetMCEvents() const;
79
71
 
80
72
  /** Get a single MC event (needed for PyROOT) */
81
73
  MCEvent& GetAnMCEvent(size_t i) const {
88
80
  }
89
81
 
90
82
  /** Set the Recon events */
91
 
  void SetReconEvents(ReconEventArray* ReconEvent);
 
83
  void SetReconEvents(ReconEventPArray* ReconEvent);
92
84
 
93
85
  /** Get the Recon events */
94
 
  ReconEventArray* GetReconEvents() const;
 
86
  ReconEventPArray* GetReconEvents() const;
95
87
 
96
88
  /** Get a single Recon event (needed for PyROOT) */
97
89
  ReconEvent& GetAReconEvent(int i) const {
134
126
  TestBranch* GetTestBranch() const;
135
127
 
136
128
 private:
 
129
 
137
130
  DAQData* _daq;
138
131
  Scalars* _scalars;
139
 
  EMRSpillData* _emr;
140
 
  MCEventArray* _mc;
141
 
  ReconEventArray* _recon;
 
132
  MCEventPArray* _mc;
 
133
  ReconEventPArray* _recon;
142
134
  int _spill_number;
143
135
  int _run_number;
144
136
  std::string _daq_event_type;