Belle II Software development
SimHitBase.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <framework/dataobjects/BackgroundMetaData.h>
12#include <framework/datastore/RelationsObject.h>
13
14
15namespace Belle2 {
28 class SimHitBase : public RelationsObject {
29 public:
34
39 virtual void setBackgroundTag(unsigned int backgroundTag)
40 { m_backgroundTag = static_cast<unsigned short>(backgroundTag); }
41
46 virtual unsigned short getBackgroundTag() const { return m_backgroundTag; }
47
56 virtual void shiftInTime(float /*delta*/) {}
57
63 virtual float getGlobalTime() const { return 0; }
64
65
66 private:
67
68 unsigned short m_backgroundTag;
71 };
72
73
75} // end namespace Belle2
76
Metadata information about the beam background file.
Defines interface for accessing relations of objects in StoreArray.
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Class SimHitBase - A common base for subdetector SimHits.
Definition: SimHitBase.h:28
virtual float getGlobalTime() const
Get time of the hit.
Definition: SimHitBase.h:63
virtual unsigned short getBackgroundTag() const
Get background tag.
Definition: SimHitBase.h:46
SimHitBase()
Constructor.
Definition: SimHitBase.h:33
unsigned short m_backgroundTag
Background tag.
Definition: SimHitBase.h:68
virtual void setBackgroundTag(unsigned int backgroundTag)
Set background tag.
Definition: SimHitBase.h:39
virtual void shiftInTime(float)
The method to shift the SimHit in time.
Definition: SimHitBase.h:56
Abstract base class for different kinds of events.