4 #ifndef SimDataFormats_CaloAnalysis_MtdSimCluster_h 5 #define SimDataFormats_CaloAnalysis_MtdSimCluster_h 41 std::vector<std::pair<uint64_t, float>>
result;
52 std::vector<std::pair<uint64_t, float>>
result;
69 std::vector<std::pair<uint64_t, float>>
result;
80 std::vector<std::pair<uint64_t, LocalPoint>>
result;
89 std::vector<std::pair<uint32_t, std::pair<uint8_t, uint8_t>>>
detIds_and_rows()
const {
90 std::vector<std::pair<uint32_t, std::pair<uint8_t, uint8_t>>>
result;
95 std::pair<uint8_t, uint8_t>(static_cast<uint8_t>(
mtdHits_[
i] >> 16), static_cast<uint8_t>(
mtdHits_[
i])));
std::vector< LocalPoint > positions_
void swap(Association< C > &lhs, Association< C > &rhs)
void clearHitsEnergy()
clear the energies list
void clearHitsAndFractions()
clear the hits and fractions list
void addHitPosition(LocalPoint pos)
add hit position
std::vector< std::pair< uint64_t, LocalPoint > > hits_and_positions() const
Returns list of hit IDs and times for this SimCluster.
Monte Carlo truth information used for tracking validation.
void addSimHit(const PSimHit &hit)
add simhit's energy to cluster
void setTrackIdOffset(unsigned int offset)
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 clearHitsPosition()
clear the positions list
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
unsigned int trackIdOffset() const
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.