#include <LArTBH6TriggerTimeTool.h>
Definition at line 15 of file LArTBH6TriggerTimeTool.h.
◆ LArTBH6TriggerTimeTool()
| LArTBH6TriggerTimeTool::LArTBH6TriggerTimeTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
Definition at line 10 of file LArTBH6TriggerTimeTool.cxx.
12 :
13 base_class(type,name,parent)
14{
15 m_hitcoll.push_back( SG::ReadHandle< LArHitContainer >(
"LArHitEMEC") );
16 m_hitcoll.push_back( SG::ReadHandle< LArHitContainer >(
"LArHitHEC") );
17 m_hitcoll.push_back( SG::ReadHandle< LArHitContainer >(
"LArHitFCAL") );
18}
◆ ~LArTBH6TriggerTimeTool()
| virtual LArTBH6TriggerTimeTool::~LArTBH6TriggerTimeTool |
( |
| ) |
|
|
virtualdefault |
◆ handle()
| void LArTBH6TriggerTimeTool::handle |
( |
const Incident & | incident | ) |
|
|
overridevirtual |
◆ initialize()
| StatusCode LArTBH6TriggerTimeTool::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 21 of file LArTBH6TriggerTimeTool.cxx.
22{
23
24 SmartIF<IIncidentSvc> incsvc{Gaudi::svcLocator()->service("IncidentSvc")};
25 if (!incsvc) {
27 return StatusCode::FAILURE ;
28 }
29
30 long int pri=100;
31 incsvc->addListener(this,"BeginEvent",pri);
32
34
35 return StatusCode::SUCCESS;
36
37}
◆ larTime()
| double LArTBH6TriggerTimeTool::larTime |
( |
| ) |
|
Definition at line 61 of file LArTBH6TriggerTimeTool.cxx.
61 {
62
63 double te = 0;
66
68
69 for(const LArHit* hit : *it){
71 te += hit->energy() * hit->time() ;
73 }
74 }
75
76 if(n==0){
78 return 0 ;
79 }
80 if(e==0){
82 return 0;
83 }
84
87
89
90
91}
◆ time()
| double LArTBH6TriggerTimeTool::time |
( |
| ) |
|
|
overridevirtual |
◆ trackRecordTime()
| double LArTBH6TriggerTimeTool::trackRecordTime |
( |
| ) |
|
◆ m_fixed
| Gaudi::Property<bool> LArTBH6TriggerTimeTool::m_fixed {this, "isFixed", true} |
|
private |
◆ m_hitcoll
◆ m_newEvent
| bool LArTBH6TriggerTimeTool::m_newEvent {true} |
|
private |
◆ m_time
| Gaudi::Property<double> LArTBH6TriggerTimeTool::m_time {this, "FixedTime", 0.} |
|
private |
The documentation for this class was generated from the following files: