BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
BesMucDigi.hh
Go to the documentation of this file.
1//---------------------------------------------------------------------------//
2// BOOST --- BESIII Object_Oriented Simulation Tool //
3//---------------------------------------------------------------------------//
4//Description:
5//Author: Youzy
6//Created: July, 2004
7//Modified:
8//Comment:
9//---------------------------------------------------------------------------//
10// $Id: BesMucDigi.hh
11
12#ifndef BesMucDigi_h
13#define BesMucDigi_h 1
14
15#include "G4VDigi.hh"
16#include "G4TDigiCollection.hh"
17#include "G4Allocator.hh"
18
19class BesMucDigi : public G4VDigi
20{
21public:
22 BesMucDigi();
23 virtual ~BesMucDigi();
24
25 BesMucDigi(const BesMucDigi&);
26 const BesMucDigi& operator=(const BesMucDigi&);
27
28 virtual G4int operator==(const BesMucDigi&) const;
29 inline void* operator new(size_t);
30 inline void operator delete(void*);
31
32 virtual void Draw();
33 virtual void Print();
34
35public:
36 void SetTrackIndex(G4int index) { m_trackIndex = index; }
37 void SetPartId(G4int partId) { m_partId = partId; }
38 void SetSegId(G4int segId) { m_segId = segId; }
39 void SetGapId(G4int gapId) { m_gapId = gapId; }
40 void SetStripId(G4int stripId) { m_stripId = stripId; }
41
42 G4int GetTrackIndex() { return m_trackIndex; }
43 G4int GetPartId() { return m_partId; }
44 G4int GetSegId() { return m_segId; }
45 G4int GetGapId() { return m_gapId; }
46 G4int GetStripId() { return m_stripId; }
47
48private:
49 G4int m_trackIndex;
50 G4int m_partId;
51 G4int m_segId;
52 G4int m_gapId;
53 G4int m_stripId;
54};
55
56typedef G4TDigiCollection<BesMucDigi> BesMucDigisCollection;
57
58extern G4Allocator<BesMucDigi> BesMucDigiAllocator;
59
60inline void* BesMucDigi::operator new(size_t)
61{
62 void *aDigi;
63 aDigi = (void *) BesMucDigiAllocator.MallocSingle();
64 return aDigi;
65}
66
67inline void BesMucDigi::operator delete(void *aDigi)
68{
69 BesMucDigiAllocator.FreeSingle((BesMucDigi*) aDigi);
70}
71
72#endif
73
G4Allocator< BesMucDigi > BesMucDigiAllocator
Definition BesMucDigi.cc:14
G4TDigiCollection< BesMucDigi > BesMucDigisCollection
Definition BesMucDigi.hh:56
G4int GetPartId()
Definition BesMucDigi.hh:43
virtual void Draw()
Definition BesMucDigi.cc:55
void SetPartId(G4int partId)
Definition BesMucDigi.hh:37
G4int GetStripId()
Definition BesMucDigi.hh:46
virtual ~BesMucDigi()
Definition BesMucDigi.cc:25
const BesMucDigi & operator=(const BesMucDigi &)
Definition BesMucDigi.cc:38
void SetTrackIndex(G4int index)
Definition BesMucDigi.hh:36
G4int GetSegId()
Definition BesMucDigi.hh:44
G4int GetTrackIndex()
Definition BesMucDigi.hh:42
void SetSegId(G4int segId)
Definition BesMucDigi.hh:38
virtual G4int operator==(const BesMucDigi &) const
Definition BesMucDigi.cc:50
void SetGapId(G4int gapId)
Definition BesMucDigi.hh:39
virtual void Print()
Definition BesMucDigi.cc:58
G4int GetGapId()
Definition BesMucDigi.hh:45
void SetStripId(G4int stripId)
Definition BesMucDigi.hh:40