/* This file is part of MAUS: http://micewww.pp.rl.ac.uk/projects/maus
*
* MAUS is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* MAUS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MAUS. If not, see .
*/
#ifndef _SRC_COMMON_CPP_DATASTRUCTURE_EMRDAQ_
#define _SRC_COMMON_CPP_DATASTRUCTURE_EMRDAQ_
#include
#include "Utils/VersionNumber.hh"
#include "DataStructure/V1731.hh"
#include "DataStructure/DBBSpillData.hh"
namespace MAUS {
typedef std::vector V1731HitArray;
typedef std::vector V1731PartEventArray;
typedef std::vector DBBArray;
/** @class EMRDaq comment
*
* @var V1731 <-- Array of fADC data (ADC charge for triggers) -->
* @var dbb <-- Array of DBB hits thoughout the spill (ToT, TDC) -->
*/
class EMRDaq {
public:
/** @brief Default constructor - initialises to 0/NULL */
EMRDaq();
/** @brief Copy constructor - any pointers are deep copied */
EMRDaq(const EMRDaq& _emrdaq);
/** @brief Equality operator - any pointers are deep copied */
EMRDaq& operator=(const EMRDaq& _emrdaq);
/** @brief Destructor - any member pointers are deleted */
virtual ~EMRDaq();
/** @brief Returns V1731PartEventArray */
V1731PartEventArray GetV1731PartEventArray() const;
/** @brief Returns V1731PartEventArray size */
size_t GetV1731NumPartEvents() const;
/** @brief Get an element from V1731Array (needed for PyROOT) */
V1731HitArray GetV1731PartEvent(size_t index) const;
/** @brief Get size of V1731Array (needed for PyROOT) */
size_t GetV1731PartEventArraySize(size_t index) const;
/** @brief Sets V1731Array */
void SetV1731PartEventArray(V1731PartEventArray V1731);
/** @brief Returns DBB Spill */
DBBArray GetDBBArray() const;
/** @brief Get an element from V1731Array (needed for PyROOT) */
DBBSpillData GetDBBArrayElement(size_t index) const;
/** @brief Get size of V1731Array (needed for PyROOT) */
size_t GetDBBArraySize() const;
/** @brief Sets Dbb Spill */
void SetDBBArray(DBBArray s);
private:
V1731PartEventArray _V1731;
DBBArray _dbb;
MAUS_VERSIONED_CLASS_DEF(EMRDaq)
};
} // namespace MAUS
#endif // #define _SRC_COMMON_CPP_DATASTRUCTURE_EMRDAQ_