#include <CosmicTriggerTimeTool.h>
Definition at line 14 of file CosmicTriggerTimeTool.h.
◆ CosmicTriggerTimeTool()
CosmicTriggerTimeTool::CosmicTriggerTimeTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~CosmicTriggerTimeTool()
virtual CosmicTriggerTimeTool::~CosmicTriggerTimeTool |
( |
| ) |
|
|
inlinevirtual |
◆ handle()
void CosmicTriggerTimeTool::handle |
( |
const Incident & |
incident | ) |
|
|
overridevirtual |
◆ initialize()
StatusCode CosmicTriggerTimeTool::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 28 of file CosmicTriggerTimeTool.cxx.
32 CHECK( incsvc.retrieve() );
35 incsvc->addListener(
this,
"BeginEvent",pri);
39 return StatusCode::SUCCESS;
◆ larTime()
double CosmicTriggerTimeTool::larTime |
( |
| ) |
|
Definition at line 124 of file CosmicTriggerTimeTool.cxx.
127 std::vector<std::string>
keys ;
128 keys.push_back(
"LArHitEMB") ;
129 keys.push_back(
"LArHitEMEC") ;
130 keys.push_back(
"LArHitHEC") ;
131 keys.push_back(
"LArHitFCAL") ;
133 std::vector<std::string>::const_iterator
it =
keys.begin() ;
134 std::vector<std::string>::const_iterator it_e =
keys.end() ;
139 for (;
it!=it_e;++
it) {
146 for (;hit_it!=hit_it_e;++hit_it) {
147 const LArHit * hit = (*hit_it);
◆ setComTime()
void CosmicTriggerTimeTool::setComTime |
( |
const ComTime * |
comTime | ) |
|
|
inline |
◆ time()
double CosmicTriggerTimeTool::time |
( |
| ) |
|
|
overridevirtual |
◆ trackRecordTime()
double CosmicTriggerTimeTool::trackRecordTime |
( |
| ) |
|
Definition at line 55 of file CosmicTriggerTimeTool.cxx.
60 StatusCode sc = evtStore()->retrieve(coll,
"CaloMuonRecorder");
61 if (
sc!=StatusCode::SUCCESS) {
66 int n = coll->
size() ;
74 for (
auto it : *coll) {
76 CLHEP::Hep3Vector
pos =
it.GetPosition();
77 CLHEP::Hep3Vector
p =
it.GetMomentum();
80 <<
pos.y() <<
" " <<
pos.z() );
82 <<
p.y() <<
" " <<
p.z() );
◆ m_comTime
◆ m_newEvent
bool CosmicTriggerTimeTool::m_newEvent |
|
private |
◆ m_time
double CosmicTriggerTimeTool::m_time |
|
private |
◆ m_useLArTime
bool CosmicTriggerTimeTool::m_useLArTime |
|
private |
The documentation for this class was generated from the following files: