The event recored time


I am using CMSSW_5_3_32 to analyze the “/DoubleMu/Run2011A-12Oct2013-v1/AOD” dataset (DoubleMu primary dataset in AOD format from RunA of 2011). I would like to extract the event recored time of each event, just like displayed in CERN Open Data Portal, e.g. “data recorded: 2011-Jun-25 00:14:59.597978 GMT”. Could you tell me how to do that? Thank you so much!


In this instance the event time information was extracted from the event using this code (which is part of a package that makes the event display format):

You can adapt this for your own purposes. Hope this helps.