Print

Print


Il 10/01/2015 18:57, Nathan Baltzell ha scritto:
> Hi Luca and All,
>
> I have a few comments:
>
> Why would it say it is using run #0?
I have no idea. Jeremy can you comment that?
>
> 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.)
This is the piece of code:

EcalConditions ecalConditions = 
ConditionsManager.defaultInstance().getCachedConditions(EcalConditions.class, 
TableConstants.ECAL_CONDITIONS).getCachedData();
EcalChannelCollection channels = ecalConditions.getChannelCollection();

then i collect the cluster collection and in a for loop over the clusters:

  EcalChannel channel = 
channels.findGeometric(cluster.getCalorimeterHits().get(0).getCellID());
  EcalChannelConstants channelConstants = 
ecalConditions.getChannelConstants(channel);
  channelConstants.getGain().getGain()


>
> 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.
Raw energy is available, but then I would have to rerun the clustering 
and i think it's easier to just divide out the cosmic gains.



Luca
> -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


-- 
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