コード例 #1
0
    def __init__(self, name='LArShapeDumperTool', doShape=True):
        super(LArShapeDumperTool, self).__init__(name)

        self.DoShape = doShape
        if doShape:
            from LArConditionsCommon.LArCool import larcool
            if larcool is not None:
                nSamples = larcool.nSamples()
            else:
                print "WARNING, can't determine number of samples for this run! Assume 4"
                nSamples = 4

            from AthenaCommon.AppMgr import ServiceMgr as svcMgr
            svcMgr.PoolSvc.ReadCatalog += [
                "apcfile:poolcond/PoolCat_comcond_castor.xml"
            ]
            from IOVDbSvc.CondDB import conddb

            #Run 1 version:
            #conddb.addFolder('LAR_OFL', '/LAR/ElecCalibOfl/Shape/RTM/5samples3bins17phases<tag>LARElecCalibOflShapeRTM5samples3bins17phases-RUN2-UPD3-00</tag><key>LArShape5samples3bins17phases</key>')
            if (nSamples >= 5):
                conddb.addFolder(
                    'LAR_OFL',
                    '/LAR/ElecCalibOfl/Shape/RTM/5samples3bins17phases<tag>LARElecCalibOflShapeRTM5samples3bins17phases-RUN2-UPD3-00</tag><key>LArShape17phases</key>'
                )
            elif (nSamples == 4):
                conddb.addFolder(
                    'LAR_OFL',
                    '/LAR/ElecCalibOfl/Shape/RTM/4samples3bins17phases<tag>LARElecCalibOflShapeRTM4samples3bins17phases-RUN2-UPD3-00</tag><key>LArShape17phases</key>'
                )
            else:
                print "ERROR: Unexpected number of samples, got ", nSamples
                pass
            pass
        pass
コード例 #2
0
# --- for athena online running ---
if 'EventBlockSize' not in dir():
    EventBlockSize=0

#Run is Online or Offline:
OnlineMode=athenaCommonFlags.isOnline()

#retrieve the condition for the run in cool offline, in IS online
if OnlineMode:
    peakSample_expected = FirstSample
    LArSampleNumber = NSamples   
else:
    from LArConditionsCommon.LArCool import larcool
    if (larcool is not None):
        peakSample_expected = larcool.firstSample()
        LArSampleNumber = larcool.nSamples()
    else:
        peakSample_expected = 0
        LArSampleNumber = 0

#Run is Cosmic or Beam:
CosmicMode=( jobproperties.Beam.beamType()== 'cosmics')

#Declare stream if Cosmic or Beam:
if CosmicMode:
	StreamsToMonitor = ["CosmicCalo","Standby","LArCellsEmpty","Background"]
else:
	StreamsToMonitor = ["CosmicCalo","ZeroBias","Standby","express","Main","L1Calo","L1Topo","LArCells","LArCellsEmpty","Background","LArCellsEmpty"]


###### LArDigitMon Configuration ###############