/* 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_KLCELLHIT_
#define _SRC_COMMON_CPP_DATASTRUCTURE_KLCELLHIT_
#include
#include "src/common_cpp/Utils/VersionNumber.hh"
namespace MAUS {
/** @class KLCellHit comment
*
* @var cell
* @var phys_event_number
* @var charge
* @var charge_product <2*leftcharge*rightcharge/(leftcharge+rightcharge)>
* @var detector
* @var part_event_number
* @var global_pos
* @var local_pos
* @var err_pos
* @var flag
*/
class KLCellHit {
public:
/** Default constructor - initialises to 0/NULL */
KLCellHit();
/** Constructor - initialises member variables from arguments */
KLCellHit(int cell, int phys_event_number, int charge, int charge_product,
std::string detector, int part_event_number,
double global_pos_x, double global_pos_y, double global_pos_z,
double local_pos_x, double local_pos_y, double local_pos_z,
double err_x, double err_y, double err_z, bool flag);
/** Copy constructor - any pointers are deep copied */
KLCellHit(const KLCellHit& _klcellhit);
/** Equality operator - any pointers are deep copied */
KLCellHit& operator=(const KLCellHit& _klcellhit);
/** Destructor - any member pointers are deleted */
virtual ~KLCellHit();
/** Returns Cell */
int GetCell() const;
/** Sets Cell */
void SetCell(int cell);
/** Returns PhysEventNumber */
int GetPhysEventNumber() const;
/** Sets PhysEventNumber */
void SetPhysEventNumber(int phys_event_number);
/** Returns Charge */
int GetCharge() const;
/** Sets Charge */
void SetCharge(int charge);
/** Returns ChargeProduct */
int GetChargeProduct() const;
/** Septs ChargeProduct */
void SetChargeProduct(int charge_product);
/** Returns Detector */
std::string GetDetector() const;
/** Sets Detector */
void SetDetector(std::string detector);
/** Returns PartEventNumber */
int GetPartEventNumber() const;
/** Sets PartEventNumber */
void SetPartEventNumber(int part_event_number);
/** Returns GlobalPosX */
double GetGlobalPosX() const;
/** Returns GlobalPosY */
double GetGlobalPosY() const;
/** Returns GlobalPosZ */
double GetGlobalPosZ() const;
/** Sets GlobalPosX */
void SetGlobalPosX(double global_pos_x);
/** Sets GlobalPosY */
void SetGlobalPosY(double global_pos_y);
/** Sets GlobalPosZ */
void SetGlobalPosZ(double global_pos_z);
/** Returns LocalPosX */
double GetLocalPosX() const;
/** Returns LocalPosY */
double GetLocalPosY() const;
/** Returns LocalPosZ */
double GetLocalPosZ() const;
/** Sets LocalPosX */
void SetLocalPosX(double local_pos_x);
/** Sets LocalPosY */
void SetLocalPosY(double local_pos_y);
/** Sets LocalPosZ */
void SetLocalPosZ(double local_pos_z);
/** Returns ErrorPosX */
double GetErrorX() const;
/** Returns ErrorPosY */
double GetErrorY() const;
/** Returns ErrorPosZ */
double GetErrorZ() const;
/** Sets ErrorX */
void SetErrorX(double error_x);
/** Sets ErrorY */
void SetErrorY(double error_y);
/** Sets ErrorZ */
void SetErrorZ(double error_z);
/** Returns quality Flag */
bool GetFlag() const;
/** Sets quality Flag */
void SetFlag(bool flag);
private:
int _cell;
int _phys_event_number;
int _charge;
int _charge_product;
std::string _detector;
int _part_event_number;
double _global_pos_x;
double _global_pos_y;
double _global_pos_z;
double _local_pos_x;
double _local_pos_y;
double _local_pos_z;
double _error_x;
double _error_y;
double _error_z;
bool _flag;
MAUS_VERSIONED_CLASS_DEF(KLCellHit)
};
}
#endif // _SRC_COMMON_CPP_DATASTRUCTURE_KLSLABHIT_