////////////////////////////////////////////////////////////////////
/// \class RAT::DS::MCHit
///
/// \brief Data Structure: MC Hit (daq not photoelectron)
///
/// \author P. G. Jones
///
/// REVISION HISTORY:\n
/// 2014-03-24 : P. Jones - DS review new file\n
/// 2016-10-05 : T. Kaptanoglu - Removed noise flag
///
/// \details This class represents a simulated hit on a particular channel
/// associated with a PMT. In a full electronics simulation, this is
/// after the discriminator has fired. We assume PMTs can be uniquely
/// located in electronics space by a 3-tuple (crate, card, channel).
/// (For example, on SNO, crate ranges from 0-19, card from 0-15, and
/// channel from 0-32.)
///
////////////////////////////////////////////////////////////////////
#ifndef __RAT_DS_MCHit__
#define __RAT_DS_MCHit__
#include
#include
namespace RAT
{
namespace DS
{
class MCHit : public PMT
{
public:
/// Construct the MCHit
MCHit() : PMT() { }
/// Destruct
virtual ~MCHit() { }
using PMT::SetPMTParameters;
/// Set all PMT properties at once
///
/// @param[in] _id (LCN) of the PMT
/// @param[in] _qhs integrated charge of the PMT
/// @param[in] _qhl integrated charge of the PMT
/// @param[in] _qlx integrated charge of the PMT
/// @param[in] _tac hit time of the PMT
/// @param[in] _cellID cell number in electronics
/// @param[in] _flags channel status flags (errors in read-out electronics)
inline virtual void SetPMTParameters( const UInt_t _id,
const Double32_t _qhs, const Double32_t _qhl,
const Double32_t _qlx, const Double32_t _tac,
const UShort_t _cellID, const Char_t _flags );
// This ROOT macro adds dictionary methods to this class.
// The number should be incremented whenever this class's members are changed.
ClassDef( MCHit, 2 );
};
void
MCHit::SetPMTParameters( const UInt_t _id,
const Double32_t _qhs,
const Double32_t _qhl,
const Double32_t _qlx,
const Double32_t _tac,
const UShort_t _cellID,
const Char_t _flags )
{
SetPMTParameters( _id, _qhs, _qhl, _qlx, _tac, _cellID, _flags);
}
} // namespace DS
} // namespace RAT
#endif // __RAT_DS_MCHit__