CMS 3D CMS Logo

Functions | Variables
hgcalPerformanceValidation Namespace Reference

Functions

def parseOptions ()
 
def processCmd (cmd, quite=0)
 
def putype (t)
 

Variables

 _summary
 
 appendglobaltag
 
 appendGlobalTag
 
 cmd
 
 df
 
 fastsimSamples
 
 fragments
 
 fullsimSamples
 
 geometryTests
 
 GeoScenario
 
 index_file
 
 inputpathNew
 
 inputpathRef
 
 lines
 
 localoutputdir
 
 midfix
 Sample("RelValZpTT_1500", midfix="14TeV", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValZTT", midfix="14TeV", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValZMM", midfix="14", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValZEE", midfix="14", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValTenTau_15_500_Eta3p1", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValTenTau_15_500", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValTTbar", midfix="14TeV", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValQCD_Pt15To7000_Flat", midfix="14", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValQCD_Pt15To7000_Flat", midfix="14TeV", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValNuGun", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValMinBias", midfix="14", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValMinBias", midfix="14TeV", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValH125GGgluonfusion", midfix="14", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ) More...
 
 NewRelease
 
 newRelease
 
 NewRepository
 
 newRepository
 
 NotNormalRefRelease
 
 NotNormalRelease
 
 objects
 
 orient
 
 output
 
 particletypes
 TODO #This is the CaloParticles part. More...
 
 phase2samples_noPU
 
 phase2samples_noPU_extend
 
 phase2samples_noPU_extend_more
 
 phase2samples_PU
 
 pngnamestring
 
 punum
 
 putype
 
 RefRelease
 
 refRelease
 
 RefRepository
 
 refRepository
 
 samplename
 
 scenario
 
 thereleases
 
 val
 
 version
 

Function Documentation

◆ parseOptions()

def hgcalPerformanceValidation.parseOptions ( )

Definition at line 27 of file hgcalPerformanceValidation.py.

27 def parseOptions():
28 
29  usage = ('usage: %prog [options]\n'
30  + '%prog -h for help')
31  parser = optparse.OptionParser(usage)
32 
33  parser.add_option('', '--Obj', dest='OBJ', type='string', default=None, help='Object to run. Options are: Geometry, SimHits, Digis, RecHits, Calibrations, CaloParticles, hgcalLayerClusters')
34  parser.add_option('', '--html-validation-name', dest='HTMLVALNAME', type='string', default='', help='Could be either be hgcalLayerClusters or hgcalMultiClusters')
35  parser.add_option('-d', '--download', action='store_true', dest='DOWNLOAD', default=False, help='Download DQM files from RelVals')
36  parser.add_option('-g', '--gather', dest='GATHER', type='string', default=None, help='Objects to gather: hitValidation, hitCalibration, hgcalLayerClusters, hgcalMultiClusters, ticlMultiClustersFromTrackstersEM, ticlMultiClustersFromTrackstersHAD')
37  parser.add_option('-w', '--wwwarea', dest='WWWAREA', type='string', default='/eos/project/h/hgcaldpg/www', help='Objects to gather: hitValidation, hitCalibration, hgcalLayerClusters, hgcalMultiClusters, ticlMultiClustersFromTrackstersEM, ticlMultiClustersFromTrackstersHAD')
38  parser.add_option('-y', '--dry-run', action='store_true', dest='DRYRUN', default=False, help='perform a dry run (nothing is lauched).')
39  parser.add_option('-i', '--inputeosarea', dest='INPUT', type='string', default='/eos/cms/store/group/dpg_hgcal/comm_hgcal/apsallid/RelVals', help='Eos area where we will place all DQM files of the new and reference release campaign')
40  parser.add_option('', '--geometry', action='store_true', dest='GEOMETRY', default=False, help='Geometry validation section')
41  parser.add_option('', '--copyhtml', action='store_true', dest='COPYHTML', default=False, help='If used the main index.html file will be copied to the www area. Useful in case of experimenting to avoid surprises.')
42 
43  # store options and arguments as global variables
44  global opt, args
45  (opt, args) = parser.parse_args()
46 
48 
49 #------------------------------------------------------------------------------------------
50 #Some helpful functions
51 #Processing the external os commands

◆ processCmd()

def hgcalPerformanceValidation.processCmd (   cmd,
  quite = 0 
)

Definition at line 52 of file hgcalPerformanceValidation.py.

52 def processCmd(cmd, quite = 0):
53  print cmd
54  status, output = commands.getstatusoutput(cmd)
55  if (status !=0 and not quite):
56  print 'Error in processing command:\n ['+cmd+']'
57  print 'Output:\n ['+output+'] \n'
58  return output
59 
60 #PUtype

◆ putype()

def hgcalPerformanceValidation.putype (   t)

Definition at line 61 of file hgcalPerformanceValidation.py.

61 def putype(t):
62  if "_pmx" in NewRelease:
63  if "_pmx" in RefRelease:
64  return {"default": "pmx"+t}
65  return {"default": t, NewRelease: "pmx"+t}
66  return t
67 
68 #------------------------------------------------------------------------------------------
69 #Input section: Each time a new RelVal campaign is announced the following variables should
70 # be updated:
71 # NewRelease: The new release being validated.
72 # RefRelease: The reference release we want to test the new one against.
73 # thereleases: All releases validated for which we have validation results
74 # including the NewRelease.
75 # NotNormalRelease , NotNormalRefRelease: If one of the releases to be validated has
76 # used the DIGI on 11_0_0 put "raw". Otherwise put "normal".
77 # phase2samples_noPU: These are the noPU phase 2 RelVal samples that are regurarly
78 # produced.
79 # phase2samples_PU: These are the PU phase 2 RelVal samples that are regurarly
80 # produced.
81 # RefRepository, NewRepository: The path where the DQM files of the campaign
82 # will be placed.
83 #------------------------------------------------------------------------------------------
84 #thereleases = { "CMSSW 11_1_X" : ["CMSSW_11_1_0_pre4_GEANT4","CMSSW_11_1_0_pre3","CMSSW_11_1_0_pre2"] }

References putype.

Variable Documentation

◆ _summary

hgcalPerformanceValidation._summary
private

Definition at line 733 of file hgcalPerformanceValidation.py.

◆ appendglobaltag

hgcalPerformanceValidation.appendglobaltag

Definition at line 150 of file hgcalPerformanceValidation.py.

◆ appendGlobalTag

hgcalPerformanceValidation.appendGlobalTag

Definition at line 221 of file hgcalPerformanceValidation.py.

◆ cmd

hgcalPerformanceValidation.cmd

Definition at line 397 of file hgcalPerformanceValidation.py.

◆ df

hgcalPerformanceValidation.df

Definition at line 733 of file hgcalPerformanceValidation.py.

Referenced by CastorNominalCoder.adc2fC(), HcalNominalCoder.adc2fC(), HcalCoderDb.adc2fC(), CastorCoderDb.adc2fC(), CastorCoderDb.adc2fC_(), HcalCoderDb.adc2fC_(), HcaluLUTTPGCoder.adc2Linear(), ESElectronicsSim.analogToDigital(), EcalElectronicsSim< CoderType, SamplesType, DataFrameType >.analogToDigital(), ESElectronicsSimFast.analogToDigital(), EcalLiteDTUCoder.analogToDigital(), EcalCoder.analogToDigital(), EcalPerEvtLaserAnalyzer.analyze(), EcalTPGAnalyzer.analyze(), EcalABAnalyzer.analyze(), EcalTestPulseAnalyzer.analyze(), EcalLaserAnalyzer2.analyze(), HGCalBHValidation.analyze(), testChannel.analyze(), EcalLaserAnalyzer.analyze(), EcalPulseShapeGrapher.analyze(), HGCalDigiValidation.analyze(), EcnaAnalyzer.analyze(), HGCalDDDConstants.cellEtaPhiTrap(), CastorDataFrameFilter_impl.check(), HcalDataFrameFilter_impl.check(), HcalDataFrameFilter_impl.check< QIE10DataFrame >(), HcalDataFrameFilter_impl.check< QIE11DataFrame >(), GaussianSumUtilities1D.d2LnPdf(), ESElectronicsSim.digitalToAnalog(), EcalLiteDTUCoder.encode(), EcalCoder.encode(), CastorDataFrameFilter_impl.energySum(), HcalDataFrameFilter_impl.energySum(), HcalDataFrameFilter_impl.energySum< QIE11DataFrame >(), ESDataFrame.ESDataFrame(), OptOSensor2D.fastTraversesLightRay(), CastorNominalCoder.fC2adc(), HcalNominalCoder.fC2adc(), CastorCoderDb.fC2adc(), HcalCoderDb.fC2adc(), CastorCoderDb.fC2adc_(), HcalCoderDb.fC2adc_(), reco::HcalNoiseInfoProducer.filldigis(), HcalDataFrameFilter.filter(), LagrangeParentParticleFitter.fit(), ESDigitizerTraits.fix(), MuonSeedBuilder.foundMatchingSegment(), ConvBremSeedProducer.GoodCluster(), MuonSeedCleaner.GroupSeeds(), MuonSeedBuilder.IdentifyShowering(), HcaluLUTTPGCoder.lookupMSB(), SiStripConfigDb.partitions(), CastorNominalCoderTemplate.process(), HcalNominalCoderTemplate.process(), EcalEBFenixLinearizer.process(), EcalFenixLinearizer.process(), EcalFenixStrip.process_part1(), ESDigiToRaw.produce(), EcalDigiSelector.produce(), EcalDigiDisplay.readEBDigis(), EcalDigiDisplay.readEEDigis(), EcalTrigPrimFunctionalAlgo.run_part2(), SiStripConfigDb.runs(), StraightTrackAlignment.saveDiagnostics(), EcalMipGraphs.selectDigi(), EcalDisplaysByEvent.selectDigi(), XHistogram.splitSegment(), DD4hep_XHistogram.splitSegment(), HcalZeroSuppressionAlgo.suppress(), CSCSegtoRPC.thePoints(), DCCTowerBlock.unpackXtalData(), DCCSCBlock.unpackXtalData(), SiStripPartition.update(), CommissioningHistosUsingDb.uploadAnalyses(), and ESUnpacker.word2digi().

◆ fastsimSamples

hgcalPerformanceValidation.fastsimSamples

Definition at line 347 of file hgcalPerformanceValidation.py.

◆ fragments

hgcalPerformanceValidation.fragments

Definition at line 376 of file hgcalPerformanceValidation.py.

◆ fullsimSamples

hgcalPerformanceValidation.fullsimSamples

Definition at line 346 of file hgcalPerformanceValidation.py.

◆ geometryTests

hgcalPerformanceValidation.geometryTests

Definition at line 125 of file hgcalPerformanceValidation.py.

◆ GeoScenario

hgcalPerformanceValidation.GeoScenario

Definition at line 132 of file hgcalPerformanceValidation.py.

◆ index_file

hgcalPerformanceValidation.index_file

Definition at line 444 of file hgcalPerformanceValidation.py.

◆ inputpathNew

hgcalPerformanceValidation.inputpathNew

Definition at line 394 of file hgcalPerformanceValidation.py.

◆ inputpathRef

hgcalPerformanceValidation.inputpathRef

Definition at line 392 of file hgcalPerformanceValidation.py.

◆ lines

hgcalPerformanceValidation.lines

Definition at line 454 of file hgcalPerformanceValidation.py.

◆ localoutputdir

hgcalPerformanceValidation.localoutputdir

Definition at line 793 of file hgcalPerformanceValidation.py.

◆ midfix

hgcalPerformanceValidation.midfix

Sample("RelValZpTT_1500", midfix="14TeV", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValZTT", midfix="14TeV", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValZMM", midfix="14", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValZEE", midfix="14", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValTenTau_15_500_Eta3p1", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValTenTau_15_500", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValTTbar", midfix="14TeV", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValQCD_Pt15To7000_Flat", midfix="14", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValQCD_Pt15To7000_Flat", midfix="14TeV", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValNuGun", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValMinBias", midfix="14", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValMinBias", midfix="14TeV", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" ), Sample("RelValH125GGgluonfusion", midfix="14", scenario="2026D49", appendGlobalTag=appendglobaltag, version="v2" )

Definition at line 221 of file hgcalPerformanceValidation.py.

◆ NewRelease

hgcalPerformanceValidation.NewRelease

Definition at line 136 of file hgcalPerformanceValidation.py.

◆ newRelease

hgcalPerformanceValidation.newRelease

Definition at line 349 of file hgcalPerformanceValidation.py.

◆ NewRepository

hgcalPerformanceValidation.NewRepository

Definition at line 337 of file hgcalPerformanceValidation.py.

◆ newRepository

hgcalPerformanceValidation.newRepository

Definition at line 349 of file hgcalPerformanceValidation.py.

◆ NotNormalRefRelease

hgcalPerformanceValidation.NotNormalRefRelease

Definition at line 139 of file hgcalPerformanceValidation.py.

◆ NotNormalRelease

hgcalPerformanceValidation.NotNormalRelease

Definition at line 138 of file hgcalPerformanceValidation.py.

◆ objects

hgcalPerformanceValidation.objects

◆ orient

hgcalPerformanceValidation.orient

◆ output

hgcalPerformanceValidation.output

Definition at line 417 of file hgcalPerformanceValidation.py.

◆ particletypes

hgcalPerformanceValidation.particletypes

TODO #This is the CaloParticles part.

Definition at line 615 of file hgcalPerformanceValidation.py.

◆ phase2samples_noPU

hgcalPerformanceValidation.phase2samples_noPU

Definition at line 200 of file hgcalPerformanceValidation.py.

◆ phase2samples_noPU_extend

hgcalPerformanceValidation.phase2samples_noPU_extend

Definition at line 242 of file hgcalPerformanceValidation.py.

◆ phase2samples_noPU_extend_more

hgcalPerformanceValidation.phase2samples_noPU_extend_more

Definition at line 259 of file hgcalPerformanceValidation.py.

◆ phase2samples_PU

hgcalPerformanceValidation.phase2samples_PU

Definition at line 331 of file hgcalPerformanceValidation.py.

◆ pngnamestring

hgcalPerformanceValidation.pngnamestring

Definition at line 963 of file hgcalPerformanceValidation.py.

◆ punum

hgcalPerformanceValidation.punum

Definition at line 332 of file hgcalPerformanceValidation.py.

◆ putype

hgcalPerformanceValidation.putype

Definition at line 332 of file hgcalPerformanceValidation.py.

Referenced by putype().

◆ RefRelease

hgcalPerformanceValidation.RefRelease

Definition at line 134 of file hgcalPerformanceValidation.py.

◆ refRelease

hgcalPerformanceValidation.refRelease

Definition at line 348 of file hgcalPerformanceValidation.py.

◆ RefRepository

hgcalPerformanceValidation.RefRepository

Definition at line 336 of file hgcalPerformanceValidation.py.

◆ refRepository

hgcalPerformanceValidation.refRepository

Definition at line 348 of file hgcalPerformanceValidation.py.

◆ samplename

hgcalPerformanceValidation.samplename

Definition at line 380 of file hgcalPerformanceValidation.py.

◆ scenario

hgcalPerformanceValidation.scenario

Definition at line 221 of file hgcalPerformanceValidation.py.

◆ thereleases

hgcalPerformanceValidation.thereleases

Definition at line 85 of file hgcalPerformanceValidation.py.

◆ val

hgcalPerformanceValidation.val

Definition at line 345 of file hgcalPerformanceValidation.py.

◆ version

hgcalPerformanceValidation.version

Definition at line 263 of file hgcalPerformanceValidation.py.

hgcalPerformanceValidation.parseOptions
def parseOptions()
Definition: hgcalPerformanceValidation.py:27
hgcalPerformanceValidation.processCmd
def processCmd(cmd, quite=0)
Definition: hgcalPerformanceValidation.py:52
hgcalPerformanceValidation.putype
def putype(t)
Definition: hgcalPerformanceValidation.py:61