ATLAS Offline Software
Public Member Functions | List of all members
DerivedILArCalculatorSvcForTest Class Reference

#include <DerivedILArCalculatorSvcForTest.h>

Inheritance diagram for DerivedILArCalculatorSvcForTest:
Collaboration diagram for DerivedILArCalculatorSvcForTest:

Public Member Functions

 DerivedILArCalculatorSvcForTest ()
 
 ~DerivedILArCalculatorSvcForTest ()
 
virtual StatusCode sysInitialize () override
 
virtual StatusCode sysStart () override
 
virtual StatusCode sysStop () override
 
virtual StatusCode sysFinalize () override
 
virtual StatusCode sysReinitialize () override
 
virtual StatusCode sysRestart () override
 
virtual void setServiceManager (ISvcManager *) override
 
virtual StatusCode configure () override
 
virtual StatusCode initialize () override
 
virtual StatusCode start () override
 
virtual StatusCode stop () override
 
virtual StatusCode finalize () override
 
virtual StatusCode terminate () override
 
virtual StatusCode reinitialize () override
 
virtual StatusCode restart () override
 
void initializeForSDCreation () override
 
virtual Gaudi::StateMachine::State FSMState () const override
 
virtual Gaudi::StateMachine::State targetFSMState () const override
 
virtual const std::string & name () const override
 
virtual G4float OOTcut () const override
 
virtual G4bool isInTime (G4double hitTime) const override
 
virtual G4bool Process (const G4Step *a_step, std::vector< LArHitData > &hits) const override
 

Detailed Description

Definition at line 16 of file DerivedILArCalculatorSvcForTest.h.

Constructor & Destructor Documentation

◆ DerivedILArCalculatorSvcForTest()

DerivedILArCalculatorSvcForTest::DerivedILArCalculatorSvcForTest ( )
inline

Definition at line 20 of file DerivedILArCalculatorSvcForTest.h.

20 {};

◆ ~DerivedILArCalculatorSvcForTest()

DerivedILArCalculatorSvcForTest::~DerivedILArCalculatorSvcForTest ( )
inline

Definition at line 22 of file DerivedILArCalculatorSvcForTest.h.

22 {};

Member Function Documentation

◆ configure()

virtual StatusCode DerivedILArCalculatorSvcForTest::configure ( )
inlineoverridevirtual

Definition at line 63 of file DerivedILArCalculatorSvcForTest.h.

64  {
65  StatusCode s7;
66  return s7;
67  }

◆ finalize()

virtual StatusCode DerivedILArCalculatorSvcForTest::finalize ( )
inlineoverridevirtual

Definition at line 87 of file DerivedILArCalculatorSvcForTest.h.

88  {
89  StatusCode s7;
90  return s7;
91  }

◆ FSMState()

virtual Gaudi::StateMachine::State DerivedILArCalculatorSvcForTest::FSMState ( ) const
inlineoverridevirtual

Definition at line 113 of file DerivedILArCalculatorSvcForTest.h.

114  {
115  return Gaudi::StateMachine::State(0);
116  }

◆ initialize()

virtual StatusCode DerivedILArCalculatorSvcForTest::initialize ( )
inlineoverridevirtual

Definition at line 69 of file DerivedILArCalculatorSvcForTest.h.

70  {
71  StatusCode s7;
72  return s7;
73  }

◆ initializeForSDCreation()

void DerivedILArCalculatorSvcForTest::initializeForSDCreation ( )
inlineoverride

Definition at line 111 of file DerivedILArCalculatorSvcForTest.h.

111 {};

◆ isInTime()

virtual G4bool DerivedILArCalculatorSvcForTest::isInTime ( G4double  hitTime) const
inlineoverridevirtual

Definition at line 134 of file DerivedILArCalculatorSvcForTest.h.

135  {
136  (void)hitTime;
137  return true;
138  }

◆ name()

virtual const std::string& DerivedILArCalculatorSvcForTest::name ( ) const
inlineoverridevirtual

Definition at line 123 of file DerivedILArCalculatorSvcForTest.h.

124  {
125  static const std::string Tes = "test";
126  return Tes;
127  }

◆ OOTcut()

virtual G4float DerivedILArCalculatorSvcForTest::OOTcut ( ) const
inlineoverridevirtual

Definition at line 129 of file DerivedILArCalculatorSvcForTest.h.

130  {
131  return 1.0;
132  }

◆ Process()

virtual G4bool DerivedILArCalculatorSvcForTest::Process ( const G4Step *  a_step,
std::vector< LArHitData > &  hits 
) const
inlineoverridevirtual

Definition at line 140 of file DerivedILArCalculatorSvcForTest.h.

141  {
142 //firstly set the G4Step object a_step to make it complete, you can set it here as much as you want. Since there is no need to set too much for it, I don't set sth for it
143  (void)a_step;
144 
145 //insert LArHitData object into hits
146  LArG4Identifier a_ident;//define a LArG4Identifier object called a_ident
147  a_ident.add(4);
148  a_ident.add(2);
149  a_ident.add(2);
150  a_ident.add(3);
151  a_ident.add(4);
152  a_ident.add(5);
153  a_ident.add(6);
154  LArHitData hit = {};//define LArHitData object hit
155  hit.id = a_ident;//set hit, the same below
156  hit.time = 1.0;
157  hit.energy = 1.0;
158  hits.push_back(hit);//insert hit into the container hits
159 
160  return true;
161  }

◆ reinitialize()

virtual StatusCode DerivedILArCalculatorSvcForTest::reinitialize ( )
inlineoverridevirtual

Definition at line 99 of file DerivedILArCalculatorSvcForTest.h.

100  {
101  StatusCode s7;
102  return s7;
103  }

◆ restart()

virtual StatusCode DerivedILArCalculatorSvcForTest::restart ( )
inlineoverridevirtual

Definition at line 105 of file DerivedILArCalculatorSvcForTest.h.

106  {
107  StatusCode s7;
108  return s7;
109  }

◆ setServiceManager()

virtual void DerivedILArCalculatorSvcForTest::setServiceManager ( ISvcManager *  )
inlineoverridevirtual

Definition at line 61 of file DerivedILArCalculatorSvcForTest.h.

61 { return; }

◆ start()

virtual StatusCode DerivedILArCalculatorSvcForTest::start ( )
inlineoverridevirtual

Definition at line 75 of file DerivedILArCalculatorSvcForTest.h.

76  {
77  StatusCode s7;
78  return s7;
79  }

◆ stop()

virtual StatusCode DerivedILArCalculatorSvcForTest::stop ( )
inlineoverridevirtual

Definition at line 81 of file DerivedILArCalculatorSvcForTest.h.

82  {
83  StatusCode s7;
84  return s7;
85  }

◆ sysFinalize()

virtual StatusCode DerivedILArCalculatorSvcForTest::sysFinalize ( )
inlineoverridevirtual

Definition at line 43 of file DerivedILArCalculatorSvcForTest.h.

44  {
45  StatusCode s4;
46  return s4;
47  }

◆ sysInitialize()

virtual StatusCode DerivedILArCalculatorSvcForTest::sysInitialize ( )
inlineoverridevirtual

Definition at line 25 of file DerivedILArCalculatorSvcForTest.h.

26  {
27  StatusCode s1;
28  return s1;
29  }

◆ sysReinitialize()

virtual StatusCode DerivedILArCalculatorSvcForTest::sysReinitialize ( )
inlineoverridevirtual

Definition at line 49 of file DerivedILArCalculatorSvcForTest.h.

50  {
51  StatusCode s5;
52  return s5;
53  }

◆ sysRestart()

virtual StatusCode DerivedILArCalculatorSvcForTest::sysRestart ( )
inlineoverridevirtual

Definition at line 55 of file DerivedILArCalculatorSvcForTest.h.

56  {
57  StatusCode s6;
58  return s6;
59  }

◆ sysStart()

virtual StatusCode DerivedILArCalculatorSvcForTest::sysStart ( )
inlineoverridevirtual

Definition at line 31 of file DerivedILArCalculatorSvcForTest.h.

32  {
33  StatusCode s2;
34  return s2;
35  }

◆ sysStop()

virtual StatusCode DerivedILArCalculatorSvcForTest::sysStop ( )
inlineoverridevirtual

Definition at line 37 of file DerivedILArCalculatorSvcForTest.h.

38  {
39  StatusCode s3;
40  return s3;
41  }

◆ targetFSMState()

virtual Gaudi::StateMachine::State DerivedILArCalculatorSvcForTest::targetFSMState ( ) const
inlineoverridevirtual

Definition at line 118 of file DerivedILArCalculatorSvcForTest.h.

119  {
120  return Gaudi::StateMachine::State(0);
121  }

◆ terminate()

virtual StatusCode DerivedILArCalculatorSvcForTest::terminate ( )
inlineoverridevirtual

Definition at line 93 of file DerivedILArCalculatorSvcForTest.h.

94  {
95  StatusCode s7;
96  return s7;
97  }

The documentation for this class was generated from the following file:
LArG4Identifier
Definition: LArG4Identifier.h:121
ReadCellNoiseFromCoolCompare.s1
s1
Definition: ReadCellNoiseFromCoolCompare.py:378
TRTCalib_Extractor.hits
hits
Definition: TRTCalib_Extractor.py:35
LArHitData
Definition: ILArCalculatorSvc.h:23
ReadCellNoiseFromCoolCompare.s4
s4
Definition: ReadCellNoiseFromCoolCompare.py:381
LArHitData::energy
G4double energy
Definition: ILArCalculatorSvc.h:23
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonR4::State
CalibratedSpacePoint::State State
Definition: SpacePointCalibrator.cxx:24
ReadCellNoiseFromCoolCompare.s3
s3
Definition: ReadCellNoiseFromCoolCompare.py:380
LArG4Identifier::add
void add(element_type value)
ReadCellNoiseFromCoolCompare.s2
s2
Definition: ReadCellNoiseFromCoolCompare.py:379
hitTime
float hitTime(const AFP_SIDSimHit &hit)
Definition: AFP_SIDSimHit.h:39
LArHitData::id
LArG4Identifier id
Definition: ILArCalculatorSvc.h:23
LArHitData::time
G4double time
Definition: ILArCalculatorSvc.h:23