4 #ifndef SimDataFormats_CaloAnalysis_MtdSimCluster_h 5 #define SimDataFormats_CaloAnalysis_MtdSimCluster_h 37 std::vector<std::pair<uint64_t, float>>
result;
48 std::vector<std::pair<uint64_t, float>>
result;
65 std::vector<std::pair<uint64_t, float>>
result;
74 std::vector<std::pair<uint32_t, std::pair<uint8_t, uint8_t>>>
detIds_and_rows()
const {
75 std::vector<std::pair<uint32_t, std::pair<uint8_t, uint8_t>>>
result;
80 std::pair<uint8_t, uint8_t>(static_cast<uint8_t>(
mtdHits_[
i] >> 16), static_cast<uint8_t>(
mtdHits_[
i])));
void swap(Association< C > &lhs, Association< C > &rhs)
void clearHitsEnergy()
clear the energies list
void clearHitsAndFractions()
clear the hits and fractions list
Monte Carlo truth information used for tracking validation.
void addSimHit(const PSimHit &hit)
add simhit's energy to cluster
std::vector< float > times_
std::vector< float > fractions_
std::vector< std::pair< uint64_t, float > > hits_and_energies() const
Returns list of hit IDs and energies for this SimCluster.
std::vector< std::pair< uint64_t, float > > hits_and_times() const
Returns list of hit IDs and times for this SimCluster.
unsigned long long uint64_t
std::vector< std::pair< uint64_t, float > > hits_and_fractions() const
Returns list of hit IDs and fractions for this SimCluster.
std::vector< uint64_t > mtdHits_
void addHitAndFraction(uint64_t hit, float fraction)
add hit with fraction
friend std::ostream & operator<<(std::ostream &s, MtdSimCluster const &tp)
void addHitTime(float time)
add hit time
void clearHitsTime()
clear the times list
std::vector< float > energies_
std::vector< std::pair< uint32_t, std::pair< uint8_t, uint8_t > > > detIds_and_rows() const
Returns list of detIds, rows and columns for this SimCluster.