Print

Print


Dear all,
I have 2 questions regarding ecal reconstruction:

1) What is the difference between the two values reported by 
getRawEnergy() and getCorrectedEnergy() of the class CalorimeterHit?

2) Given a calibrated hit, I can access the corresponding energy in MeV. 
I want to "revert back" to the pedestal-subtracted ADC sum: the two 
values are related  by

Energy ( MeV) = gain * PedestalSubtractedADCsum

The easiest way I found to do this is (cellID is from hit.getCellID() 
and energy is from hit.GetCorrectedEnergy()):

           EcalChannelConstants channelData = 
ecalConditions.getChannelConstants(ecalConditions.getChannelCollection().findGeometric(cellID));
           double RawSum=energy/ ECalUtils.MeV;
           double gain=channelData.getGain().getGain();
           double adc=RawSum/gain;

Is there a simpler or better method?

Thanks

Andrea

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1