Hi Luca and All, I have a few comments: Why would it say it is using run #0? Can you print out the EcalChannel you are passing to getChannelConstants before this error? (Looks like there are EcalChannel.getChannelId/Slot/Crate/X/Y methods.) Do you need to divide by the gain to get the ADC? I thought that raw energy was directly available? Alternatively, you could just multiply your new scale factors by the cosmic gains in the end. -Nathan On Jan 10, 2015, at 12:17 PM, Luca Colaneri <[log in to unmask]> wrote: > Hello all, > In order to make my calibration "cosmics" independent I was trying to get out from the data the gain values to divide out from the corrected energies and get the raw data. > After around 31M events I got the error you can read in the attached screenshot. > > Suggestions? > > L. > > -- > PhD Student, > Università degli Studi di Roma Tor Vergata > INFN sez. Roma2 > Via della Ricerca Scientifica 1, 00133 Rome, Italy > +39 0672594562 > > > ######################################################################## > 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 > <channelnotfound.png> ######################################################################## 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