BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
BesMdcDigi Class Reference

#include <BesMdcDigi.hh>

+ Inheritance diagram for BesMdcDigi:

Public Member Functions

 BesMdcDigi ()
 
virtual ~BesMdcDigi ()
 
 BesMdcDigi (const BesMdcDigi &)
 
const BesMdcDigioperator= (const BesMdcDigi &)
 
virtual G4int operator== (const BesMdcDigi &) const
 
void * operator new (size_t)
 
void operator delete (void *)
 
virtual void Print ()
 
void SetTrackID (G4int track)
 
void SetLayerNo (G4int layer)
 
void SetCellNo (G4int cell)
 
void SetEdep (G4double de)
 
void SetDriftT (G4double time)
 
G4int GetTrackID ()
 
G4int GetLayerNo ()
 
G4int GetCellNo ()
 
G4double GetEdep ()
 
G4double GetDriftT ()
 

Detailed Description

Definition at line 19 of file BesMdcDigi.hh.

Constructor & Destructor Documentation

◆ BesMdcDigi() [1/2]

BesMdcDigi::BesMdcDigi ( )

Definition at line 20 of file BesMdcDigi.cc.

21{
22 trackID=0;
23 layerNo=0;
24 cellNo=0;
25 edep=0;
26 driftT=0;
27}

◆ ~BesMdcDigi()

BesMdcDigi::~BesMdcDigi ( )
virtual

Definition at line 29 of file BesMdcDigi.cc.

29{}

◆ BesMdcDigi() [2/2]

BesMdcDigi::BesMdcDigi ( const BesMdcDigi right)

Definition at line 31 of file BesMdcDigi.cc.

32:G4VDigi()
33{
34 trackID = right.trackID;
35 layerNo = right.layerNo;
36 cellNo = right.cellNo;
37 edep = right.edep;
38 driftT = right.driftT;
39}

Member Function Documentation

◆ GetCellNo()

G4int BesMdcDigi::GetCellNo ( )
inline

Definition at line 45 of file BesMdcDigi.hh.

45{ return cellNo;};

Referenced by BesRawDataWriter::SaveMdcDigits(), and BesAsciiIO::SaveMdcDigits().

◆ GetDriftT()

G4double BesMdcDigi::GetDriftT ( )
inline

Definition at line 47 of file BesMdcDigi.hh.

47{ return driftT;};

Referenced by BesRawDataWriter::SaveMdcDigits(), and BesAsciiIO::SaveMdcDigits().

◆ GetEdep()

G4double BesMdcDigi::GetEdep ( )
inline

Definition at line 46 of file BesMdcDigi.hh.

46{ return edep; };

Referenced by BesRawDataWriter::SaveMdcDigits(), and BesAsciiIO::SaveMdcDigits().

◆ GetLayerNo()

G4int BesMdcDigi::GetLayerNo ( )
inline

Definition at line 44 of file BesMdcDigi.hh.

44{ return layerNo; };

Referenced by BesRawDataWriter::SaveMdcDigits(), and BesAsciiIO::SaveMdcDigits().

◆ GetTrackID()

G4int BesMdcDigi::GetTrackID ( )
inline

Definition at line 43 of file BesMdcDigi.hh.

43{ return trackID; };

Referenced by BesRawDataWriter::SaveMdcDigits(), and BesAsciiIO::SaveMdcDigits().

◆ operator delete()

void BesMdcDigi::operator delete ( void *  aDigi)
inline

Definition at line 70 of file BesMdcDigi.hh.

71{
72 BesMdcDigiAllocator.FreeSingle((BesMdcDigi*) aDigi);
73}
G4Allocator< BesMdcDigi > BesMdcDigiAllocator
Definition: BesMdcDigi.cc:18

◆ operator new()

void * BesMdcDigi::operator new ( size_t  )
inline

Definition at line 63 of file BesMdcDigi.hh.

64{
65 void *aDigi;
66 aDigi = (void *) BesMdcDigiAllocator.MallocSingle();
67 return aDigi;
68}

◆ operator=()

const BesMdcDigi & BesMdcDigi::operator= ( const BesMdcDigi right)

Definition at line 42 of file BesMdcDigi.cc.

43{
44 trackID = right.trackID;
45 layerNo = right.layerNo;
46 cellNo = right.cellNo;
47 edep = right.edep;
48 driftT = right.driftT;
49 return *this;
50}

◆ operator==()

int BesMdcDigi::operator== ( const BesMdcDigi right) const
virtual

Definition at line 53 of file BesMdcDigi.cc.

54{
55 return (this==&right) ? 1 : 0;
56}

◆ Print()

void BesMdcDigi::Print ( )
virtual

Definition at line 75 of file BesMdcDigi.cc.

76{
77 G4cout << " trackID: " << trackID << " layerNo: " << layerNo
78 << " cellNo: " << cellNo
79 << " energy deposit: " << G4BestUnit(edep,"Energy")
80 << " driftT: " << G4BestUnit(driftT,"Time")<<G4endl;
81}

◆ SetCellNo()

void BesMdcDigi::SetCellNo ( G4int  cell)
inline

Definition at line 39 of file BesMdcDigi.hh.

39{ cellNo =cell;};

Referenced by BesMdcDigitizer::Digitize().

◆ SetDriftT()

void BesMdcDigi::SetDriftT ( G4double  time)
inline

Definition at line 41 of file BesMdcDigi.hh.

41{ driftT = time;};
Double_t time

Referenced by BesMdcDigitizer::Digitize().

◆ SetEdep()

void BesMdcDigi::SetEdep ( G4double  de)
inline

Definition at line 40 of file BesMdcDigi.hh.

40{ edep = de; };

Referenced by BesMdcDigitizer::Digitize().

◆ SetLayerNo()

void BesMdcDigi::SetLayerNo ( G4int  layer)
inline

Definition at line 38 of file BesMdcDigi.hh.

38{ layerNo = layer; };

Referenced by BesMdcDigitizer::Digitize().

◆ SetTrackID()

void BesMdcDigi::SetTrackID ( G4int  track)
inline

Definition at line 37 of file BesMdcDigi.hh.

37{ trackID = track; };

Referenced by BesMdcDigitizer::Digitize().


The documentation for this class was generated from the following files: