Skip to content
Snippets Groups Projects

Bring the decay descriptor printing forward

Merged Abhijit Mathad requested to merge AM_dd into master
1 file
+ 13
0
Compare changes
  • Side-by-side
  • Inline
@@ -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
+2
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;
Loading