52 m_recordSvc = service(
"FileRecordDataSvc",
true );
54 error() <<
"Unable to retrieve run records service" <<
endmsg;
58 if ( m_incidentName.empty() ) {
61 if ( ( sc = setPropertyRepr(
"IncidentName", prp->getProperty(
"IncidentName" ).toString() ) ).isFailure() ) {
62 error() <<
"Failed to copy FileRecordDataSvc.IncidentName (" << prp->
getProperty(
"IncidentName" ).toString()
68 m_incidentSvc = service(
"IncidentSvc",
true );
69 if ( !m_incidentSvc ) {
70 error() <<
"Failed to access IncidentSvc." <<
endmsg;
73 m_incidentSvc->addListener(
this, m_incidentName );
82 if ( m_incidentSvc ) m_incidentSvc->removeListener(
this );
83 m_incidentSvc.reset();
92 always() <<
"Got incident: " << incident.
type() <<
" Source:" << incident.
source() <<
endmsg;
93 if ( m_incidentName == incident.
type() ) {
95 always() <<
"Received incident:" << incident.
type() <<
": " <<
n <<
endmsg;
98 always() <<
"Incident: FileInfo record: " <<
n <<
"/EvtCount=" << evt_cnt->
value() <<
endmsg;
100 always() <<
"Incident: NO FileInfo record EvtCounter for " <<
n <<
"/EvtCount" <<
endmsg;
104 always() <<
"Incident: FileInfo record: " <<
n <<
"/SumCount=" << sum_cnt->
value() <<
endmsg;
106 always() <<
"Incident: NO FileInfo record SumCounter for " <<
n <<
"/SumCount" <<
endmsg;
118 int evt_num =
evt->event();
119 if ( evt_num <= 10 || evt_num % 100 == 0 ) {
121 log <<
"========= EVENT:" <<
evt->event() <<
" RUN:" <<
evt->run() <<
" TIME:" <<
evt->time();
122 for (
size_t nc = 0; nc <
evt->collisions().
size(); ++nc ) {
123 if (
evt->collisions()[nc] ) {
124 log <<
" " <<
evt->collisions()[nc]->collision();
125 log <<
" (" <<
evt->collisions()[nc].hintID() <<
")";
134 if ( myTracks != 0 ) {
140 if ( fname != new_fname ) {
144 always() <<
"FileInfo record: " << new_fname <<
"/EvtCount=" << evt_cnt->value() <<
endmsg;
146 always() <<
"NO FileInfo record EvtCounter for " << fname <<
endmsg;
150 always() <<
"FileInfo record: " << new_fname <<
"/SumCount=" << sum_cnt->value() <<
endmsg;
152 always() <<
"NO FileInfo record SumCounter for " << fname <<
endmsg;
158 if (
evt->event() < 10 ||
evt->event() % 500 == 0 ) {
161 if ( ( *i )->event() ) {
162 log << ( *i )->event()->event();
174 if ( ( *i )->originVertex() ) {
176 log << ( *i )->originVertex()->index();
178 log << ( *i )->originVertex()->x();
180 log << ( *i )->originVertex()->y();
182 log << ( *i )->originVertex()->z();
184 log <<
"No Origin Vertex!";
188 log << ( *i )->decayVertices().size();
190 for (
size_t id = 0;
id < ( *i )->decayVertices().
size(); ++
id ) {
199 log <<
v->z() <<
" Collisions:";
200 for (
size_t ic = 0; ic <
v->collisions().
size(); ++ic ) {
202 if (
v->collisions()[ic] ) {
203 log <<
v->collisions()[ic]->collision();
204 log <<
" (" <<
v->collisions()[ic].hintID() <<
")";
207 log <<
" (" <<
v->collisions()[ic].hintID() <<
")";
211 log <<
"No decay vertex!";
216 }
catch ( ... ) { error() <<
"Exception occurred!" <<
endmsg; }
219 warning() <<
"No tracks found, Event " <<
evt->event() <<
endmsg;
222 error() <<
"Unable to retrieve Event Header object" <<
endmsg;