44 uint32_t flagBits = 0;
45 for (
int flag = 0; flag < 32; ++flag ) {
46 if ( recHit_ecal->
checkFlag(flag) ) flagBits += (0x1 << flag);
68 const T* recHit_hcal =
static_cast<const T*
>(recHit);
71 T mergedRecHit(recHit_hcal->detid(), recHitInfo.
energySum_, recHit_hcal->time());
72 mergedRecHit.setFlags(recHit_hcal->flags());
73 mergedRecHit.setAux(recHit_hcal->aux());
81 return buildRecHit_HCAL<HBHERecHit>(recHitInfo);
87 return buildRecHit_HCAL<HORecHit>(recHitInfo);
93 return buildRecHit_HCAL<HFRecHit>(recHitInfo);
110 assert(recHit_castor);
114 mergedRecHit.setAux(recHit_castor->
aux());
const CaloRecHit * recHit1_
const CaloRecHit * recHit2_
const DetId & detid() const
#define DEFINE_FWK_MODULE(type)
bool checkFlag(int flag) const
check if the flag is true
CaloRecHitMixer< HORecHit > HORecHitMixer
CaloRecHitMixer< CastorRecHit > CastorRecHitMixer
void setFlags(uint32_t flags)
CaloRecHitMixer< HFRecHit > HFRecHitMixer
CaloRecHitMixer< EcalRecHit > EcalRecHitMixer
void setAux(uint32_t value)
CaloRecHitMixer< HBHERecHit > HBHERecHitMixer
T buildRecHit(const CaloRecHitMixer_mixedRecHitInfoType &)