ATLAS Offline Software
Functions | Variables
CaloLCWPerformanceConfig Namespace Reference

Functions

def blockFolder (ca, folder)
 
def GetLCWPerfCfg (flags)
 

Variables

 flags = initConfigFlags()
 
 Files
 
 ESDFileName
 
 Run
 
 AtlasVersion
 
 OutputLevel
 
 doTopoClusterLocalCalib
 
 doCellWeightCalib
 
 doCalibHitMoments
 
 HighGainEMECIW
 
 fixedLumiForNoise
 
 useCaloNoiseLumi
 
 cfg = MainServicesCfg(flags)
 
 topoAlg = cfg.getEventAlgo("CaloCalTopoClustersMaker")
 
 MatchDmType
 
 CalibrationHitContainerNames
 
 DMCalibrationHitContainerNames
 
list myItemList
 
tuple clFolders
 
 Dump
 
 defaultLimit
 

Function Documentation

◆ blockFolder()

def CaloLCWPerformanceConfig.blockFolder (   ca,
  folder 
)

Definition at line 9 of file CaloLCWPerformanceConfig.py.

9 def blockFolder(ca,folder):
10  "Block use of specified conditions DB folder so data can be read from elsewhere"
11  iovdbsvc=ca.getService("IOVDbSvc")
12  # check existing list of folders and remove it if found
13  for i in range(0,len(iovdbsvc.Folders)):
14  if (iovdbsvc.Folders[i].find(folder)>=0):
15  del iovdbsvc.Folders[i]
16  break
17  condInputLoader=ca.getCondAlgo("CondInputLoader")
18  for i in range(0, len(condInputLoader.Load)):
19  if (folder in condInputLoader.Load[i][-1] ):
20  del condInputLoader.Load[i]
21  break
22 

◆ GetLCWPerfCfg()

def CaloLCWPerformanceConfig.GetLCWPerfCfg (   flags)

Definition at line 23 of file CaloLCWPerformanceConfig.py.

23 def GetLCWPerfCfg(flags):
24 
26 
27  lcPerf = CompFactory.GetLCSinglePionsPerf("LocalHadPerformance")
28 
29  # collection name to study cluster moments
30  lcPerf.ClusterBasicCollName = "CaloTopoClusters"
31 
32  # collections names to study engReco wrt Truth after different correction steps
33  lcPerf.ClusterCollectionNames = ["CaloTopoClusters", "CaloWTopoCluster", "CaloOOCTopoCluster", "CaloCalTopoClusters"]
34 
35  lcPerf.CalibrationHitContainerNames= ["LArCalibrationHitInactive","LArCalibrationHitActive","TileCalibHitActiveCell","TileCalibHitInactiveCell"]
36  lcPerf.DMCalibrationHitContainerNames= ["LArCalibrationHitDeadMaterial_DEAD","LArCalibrationHitInactive_DEAD","LArCalibrationHitActive_DEAD","TileCalibHitDeadMaterial"]
37 
38  from math import pi
39  lcPerf.DistanceCut = 1.5
40  lcPerf.doEngRecOverTruth = True
41  lcPerf.doEngTag = True
42  lcPerf.doEngRecSpect = True
43  lcPerf.doEngNoiseClus = True
44  lcPerf.doClusMoments = True
45  lcPerf.doRecoEfficiency = True
46  lcPerf.etamin = 0.0
47  lcPerf.etamax = 5.0
48  lcPerf.netabin = 25
49  lcPerf.phimin = -pi
50  lcPerf.phimax = pi
51  lcPerf.nphibin = 1
52  lcPerf.logenermin = 2.0
53  lcPerf.logenermax = 6.4
54  lcPerf.nlogenerbin = 22
55  lcPerf.useGoodClus = False
56  lcPerf.usePionClustersOnly = False
57  lcPerf.useRecoEfficiency = False
58 
59  lcPerf.OutputFileName = flags.LCW.outFileNamePerf
60 
61  cfg.addEventAlgo(lcPerf)
62 
63  return cfg
64 
65 

Variable Documentation

◆ AtlasVersion

CaloLCWPerformanceConfig.AtlasVersion

Definition at line 79 of file CaloLCWPerformanceConfig.py.

◆ CalibrationHitContainerNames

CaloLCWPerformanceConfig.CalibrationHitContainerNames

Definition at line 111 of file CaloLCWPerformanceConfig.py.

◆ cfg

CaloLCWPerformanceConfig.cfg = MainServicesCfg(flags)

Definition at line 102 of file CaloLCWPerformanceConfig.py.

◆ clFolders

tuple CaloLCWPerformanceConfig.clFolders
Initial value:
1 = ( ("/CALO/HadCalibration2/CaloEMFrac<tag>CaloEMFrac2-R3S-2021-02-00-00-FTFP-BERT-DT25-EPOS-A3-OFC25-MU60</tag>", "myclwooc.db","CaloLocalHadCoeff"),
2  ("/CALO/HadCalibration2/H1ClusterCellWeights<tag>CaloH1CellWeights2-R3S-2021-02-00-00-FTFP-BERT-DT25-EPOS-A3-OFC25-MU60</tag>", "myclwooc.db","CaloLocalHadCoeff"),
3  ("/CALO/HadCalibration2/CaloOutOfCluster<tag>CaloHadOOCCorr2-R3S-2021-02-00-00-FTFP-BERT-DT25-EPOS-A3-OFC25-MU60</tag>", "myclwooc.db","CaloLocalHadCoeff"),
4  ("/CALO/HadCalibration2/CaloOutOfClusterPi0<tag>CaloHadOOCCorrPi02-R3S-2021-02-00-00-FTFP-BERT-DT25-EPOS-A3-OFC25-MU60</tag>", "myclwooc.db","CaloLocalHadCoeff"),
5  ("/CALO/HadCalibration2/CaloDMCorr2<tag>CaloHadDMCorr2-R3S-2021-02-00-00-FTFP-BERT-DT25-EPOS-A3-OFC25-MU60</tag>", "myDm.db","CaloLocalHadCoeff") )

Definition at line 140 of file CaloLCWPerformanceConfig.py.

◆ defaultLimit

CaloLCWPerformanceConfig.defaultLimit

Definition at line 150 of file CaloLCWPerformanceConfig.py.

◆ DMCalibrationHitContainerNames

CaloLCWPerformanceConfig.DMCalibrationHitContainerNames

Definition at line 112 of file CaloLCWPerformanceConfig.py.

◆ doCalibHitMoments

CaloLCWPerformanceConfig.doCalibHitMoments

Definition at line 91 of file CaloLCWPerformanceConfig.py.

◆ doCellWeightCalib

CaloLCWPerformanceConfig.doCellWeightCalib

Definition at line 90 of file CaloLCWPerformanceConfig.py.

◆ doTopoClusterLocalCalib

CaloLCWPerformanceConfig.doTopoClusterLocalCalib

Definition at line 89 of file CaloLCWPerformanceConfig.py.

◆ Dump

CaloLCWPerformanceConfig.Dump

Definition at line 149 of file CaloLCWPerformanceConfig.py.

◆ ESDFileName

CaloLCWPerformanceConfig.ESDFileName

Definition at line 75 of file CaloLCWPerformanceConfig.py.

◆ Files

CaloLCWPerformanceConfig.Files

Definition at line 74 of file CaloLCWPerformanceConfig.py.

◆ fixedLumiForNoise

CaloLCWPerformanceConfig.fixedLumiForNoise

Definition at line 94 of file CaloLCWPerformanceConfig.py.

◆ flags

CaloLCWPerformanceConfig.flags = initConfigFlags()

Definition at line 68 of file CaloLCWPerformanceConfig.py.

◆ HighGainEMECIW

CaloLCWPerformanceConfig.HighGainEMECIW

Definition at line 93 of file CaloLCWPerformanceConfig.py.

◆ MatchDmType

CaloLCWPerformanceConfig.MatchDmType

Definition at line 109 of file CaloLCWPerformanceConfig.py.

◆ myItemList

list CaloLCWPerformanceConfig.myItemList
Initial value:
1 = ['EventInfo#*', "McEventCollection#TruthEvent",
2  'xAOD::CaloClusterContainer#CaloCalTopoClusters',
3  'xAOD::CaloClusterAuxContainer#CaloCalTopoClustersAux.']

Definition at line 123 of file CaloLCWPerformanceConfig.py.

◆ OutputLevel

CaloLCWPerformanceConfig.OutputLevel

Definition at line 86 of file CaloLCWPerformanceConfig.py.

◆ Run

CaloLCWPerformanceConfig.Run

Definition at line 77 of file CaloLCWPerformanceConfig.py.

◆ topoAlg

CaloLCWPerformanceConfig.topoAlg = cfg.getEventAlgo("CaloCalTopoClustersMaker")

Definition at line 108 of file CaloLCWPerformanceConfig.py.

◆ useCaloNoiseLumi

CaloLCWPerformanceConfig.useCaloNoiseLumi

Definition at line 95 of file CaloLCWPerformanceConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
CaloLCWPerformanceConfig.GetLCWPerfCfg
def GetLCWPerfCfg(flags)
Definition: CaloLCWPerformanceConfig.py:23
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
CaloLCWPerformanceConfig.blockFolder
def blockFolder(ca, folder)
Definition: CaloLCWPerformanceConfig.py:9