3 from AthenaConfiguration.ComponentAccumulator 
import ComponentAccumulator
 
    4 from AthenaConfiguration.ComponentFactory 
import CompFactory
 
   10   cfg.addEventAlgo( CompFactory.CaloReadLCClassificationFile(
"ReadLCClassification",
 
   11                                      LCClassificationFileName  = flags.LCW.inRootCL, ClassificationKey=
"EMFracClassify"))
 
   13   cfg.addEventAlgo( CompFactory.CaloReadLCWeightsFile(
"ReadLCWeights",
 
   14                                      LCWeightFileName  = flags.LCW.inRootW, CorrectionKey=
"H1ClusterCellWeights"))
 
   16   cfg.addEventAlgo( CompFactory.CaloReadLCOutOfClusterFile(
"ReadLCOutOfCluster",
 
   17                                      LCOutOfClusterFileName  = flags.LCW.inRootOOC, CorrectionKey=
"OOCCorrection"))
 
   19   cfg.addEventAlgo( CompFactory.CaloReadLCOutOfClusterFile(
"ReadLCOutOfClusterPi0",
 
   20                                      LCOutOfClusterFileName  = flags.LCW.inRootOOCPI0, CorrectionKey=
"OOCPi0Correction"))
 
   24   from RegistrationServices.OutputConditionsAlgConfig 
import OutputConditionsAlgCfg
 
   26                            outputFile=flags.LCW.outDirCLWOOC+
"/"+flags.LCW.outFileNameCLWOOC,
 
   27                            ObjectList=[
"CaloLocalHadCoeff#EMFracClassify#/CALO/HadCalibration2/CaloEMFrac",
 
   28                                        "CaloLocalHadCoeff#H1ClusterCellWeights#/CALO/HadCalibration2/H1ClusterCellWeights",
 
   29                                        "CaloLocalHadCoeff#OOCCorrection#/CALO/HadCalibration2/CaloOutOfCluster",
 
   30                                        "CaloLocalHadCoeff#OOCPi0Correction#/CALO/HadCalibration2/CaloOutOfClusterPi0" 
   32                            IOVTagList=[flags.LCW.outTagCL, flags.LCW.outTagW, flags.LCW.outTagOOC, flags.LCW.outTagOOCPI0],
 
   41 if __name__==
"__main__":
 
   42     from AthenaConfiguration.AllConfigFlags 
import initConfigFlags
 
   44     from CaloLocalHadCalib.LCWConfigFlags 
import addLCWFlags
 
   55     flags.Exec.OutputLevel=DEBUG
 
   58     flags.LCW.inRootCL = 
"/afs/cern.ch/user/m/menke/public/LCWeights_2016/user.menke.mc16.piplusminuszero.LCW.Run2_mu30_dt25.v3.classify.root" 
   59     flags.LCW.inRootW = 
"/afs/cern.ch/user/m/menke/public/LCWeights_2016/user.menke.mc16.piplusminus.LCW.Run2_mu30_dt25.v3.inv_weights.root" 
   60     flags.LCW.inRootOOC = 
"/afs/cern.ch/user/m/menke/public/LCWeights_2016/user.menke.mc16.piplusminus.LCW.Run2_mu30_dt25.v3_EXT2.root" 
   61     flags.LCW.inRootOOCPI0 = 
"/afs/cern.ch/user/m/menke/public/LCWeights_2016/user.menke.mc16.pizero.LCW.Run2_mu30_dt25.v3_EXT2.root" 
   64     flags.IOVDb.DatabaseInstance=
"" 
   65     flags.IOVDb.DBConnection = 
"sqlite://;schema=myclwooc.db;dbname=OFLP200" 
   69     from AthenaConfiguration.MainServicesConfig 
import MainServicesCfg
 
   71     from IOVDbSvc.IOVDbSvcConfig 
import IOVDbSvcCfg
 
   76     cfg.getService(
"AthenaPoolCnvSvc").PoolAttributes += [ 
"STREAM_MEMBER_WISE = '0'" ]
 
   79     cfg.getService(
"StoreGateSvc").Dump=
True 
   80     cfg.getService(
"MessageSvc").defaultLimit=999999