1 #ifndef MCSHOWERRECOPART_H
2 #define MCSHOWERRECOPART_H
5 namespace fhicl {
class ParameterSet; }
6 #include "cetlib_except/exception.h"
39 const std::vector<unsigned int>&
ShowerDaughters(
const unsigned int shower_id)
const
41 if(shower_id >=
_shower_daughters.size())
throw cet::exception(__FUNCTION__) <<
"Invalid shower index!";
52 mothers.at((*mother_iter).second) = (*mother_iter).first;
std::vector< int > _shower_id
Track index to shower index map.
const std::vector< unsigned int > ShowerMothers() const
std::vector< std::vector< unsigned int > > _shower_daughters
Shower time-ordered daughters.
MCShowerRecoPart(fhicl::ParameterSet const &pset)
Default constructor with fhicl parameters.
static const int kINVALID_INT
int ShowerIndex(const unsigned int part_index) const
bool _debug_mode
lots of stdout stream
const std::vector< unsigned int > & ShowerDaughters(const unsigned int shower_id) const
std::map< unsigned int, unsigned int > _shower_index
Shower Primary Index ID => Shower Index Map.
static const unsigned int kINVALID_UINT
void ConstructShower(const MCRecoPart &part_v)
Main function to read-in data and fill variables in this algorithm to reconstruct MC shower...