Skip to content
Snippets Groups Projects
Commit c5ff8c97 authored by Abhijit Mathad's avatar Abhijit Mathad Committed by Patrick Koppenburg
Browse files

Bring the decay descriptor printing forward

parent 856653af
No related branches found
No related tags found
1 merge request!1006Bring the decay descriptor printing forward
......@@ -650,6 +650,11 @@ StatusCode FunTupleBase<T>::parse_decay_descriptors() {
// loop over fields
for ( unsigned int nfield = 0; nfield < m_particletupleprops.size(); nfield++ ) {
ParticleTupleProp ptp = m_particletupleprops[nfield];
//print only for the first field, as the rest of field will have the same decay descriptors
if (nfield == 0)
this->info() << "User specified descriptor: " << ptp.DecayDescriptor() << endmsg;
if ( m_use_loki_decay_finder ) {
auto decayTree = m_decaytool_loki->tree( ptp.DecayDescriptor() );
if ( !decayTree )
......@@ -662,10 +667,18 @@ StatusCode FunTupleBase<T>::parse_decay_descriptors() {
StatusCode::FAILURE );
auto tree_possibilities = m_decay_finder->getTreePossibilities( ptp.DecayDescriptor() );
if ( tree_possibilities.empty() )
throw GaudiException( "Error parsing the decay descriptor: " + ptp.DecayDescriptor(), "parse_decay_descriptors",
StatusCode::FAILURE );
m_parsed_descriptor.push_back( tree_possibilities );
//print the tree possibilities only for the first field as the rest of the fields will have the same tree
if (nfield == 0) {
this->info() << "Number of decay possibilities with specified descriptor: " << tree_possibilities.size() << endmsg;
for (unsigned int i = 0; i < tree_possibilities.size(); ++i)
this->info() << "Possibility #" << i << ": " << tree_possibilities[i] << endmsg;
}
}
}
return StatusCode::SUCCESS;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment