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
 
 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
 
 punum
 
 putype
 
 RefRelease
 
 refRelease
 
 RefRepository
 
 refRepository
 
 samplename
 
 scenario
 
 thereleases
 
 val
 
 version
 

Function Documentation

◆ parseOptions()

def hgcalPerformanceValidation.parseOptions ( )

Definition at line 25 of file hgcalPerformanceValidation.py.

25 def parseOptions():
26 
27  usage = ('usage: %prog [options]\n'
28  + '%prog -h for help')
29  parser = optparse.OptionParser(usage)
30 
31  parser.add_option('', '--Obj', dest='OBJ', type='string', default=None, help='Object to run. Options are: Geometry, SimHits, Digis, RecHits, Calibrations, CaloParticles, hgcalLayerClusters')
32  parser.add_option('', '--html-validation-name', dest='HTMLVALNAME', type='string', default='', help='Could be either be hgcalLayerClusters or hgcalMultiClusters')
33  parser.add_option('-d', '--download', action='store_true', dest='DOWNLOAD', default=False, help='Download DQM files from RelVals')
34  parser.add_option('-g', '--gather', dest='GATHER', type='string', default=None, help='Objects to gather: hitValidation, hitCalibration, hgcalLayerClusters, hgcalMultiClusters, ticlMultiClustersFromTrackstersEM, ticlMultiClustersFromTrackstersHAD')
35  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')
36  parser.add_option('-y', '--dry-run', action='store_true', dest='DRYRUN', default=False, help='perform a dry run (nothing is lauched).')
37  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')
38 
39  # store options and arguments as global variables
40  global opt, args
41  (opt, args) = parser.parse_args()
42 
44 
45 #------------------------------------------------------------------------------------------
46 #Some helpful functions
47 #Processing the external os commands

◆ processCmd()

def hgcalPerformanceValidation.processCmd (   cmd,
  quite = 0 
)

Definition at line 48 of file hgcalPerformanceValidation.py.

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

◆ putype()

def hgcalPerformanceValidation.putype (   t)

Definition at line 57 of file hgcalPerformanceValidation.py.

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

◆ appendglobaltag

hgcalPerformanceValidation.appendglobaltag

Definition at line 124 of file hgcalPerformanceValidation.py.

◆ appendGlobalTag

hgcalPerformanceValidation.appendGlobalTag

Definition at line 192 of file hgcalPerformanceValidation.py.

◆ cmd

hgcalPerformanceValidation.cmd

Definition at line 359 of file hgcalPerformanceValidation.py.

◆ df

hgcalPerformanceValidation.df

Definition at line 640 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(), PhotonFix.dPhi(), 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(), HSCPValidator.makeSimDigiPlotsECAL(), SiStripConfigDb.partitions(), CastorNominalCoderTemplate.process(), HcalNominalCoderTemplate.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(), PhotonFix.setup(), XHistogram.splitSegment(), DD4hep_XHistogram.splitSegment(), HcalZeroSuppressionAlgo.suppress(), CSCSegtoRPC.thePoints(), DCCSCBlock.unpackXtalData(), DCCTowerBlock.unpackXtalData(), SiStripPartition.update(), CommissioningHistosUsingDb.uploadAnalyses(), and ESUnpacker.word2digi().

◆ fastsimSamples

hgcalPerformanceValidation.fastsimSamples

Definition at line 309 of file hgcalPerformanceValidation.py.

◆ fragments

hgcalPerformanceValidation.fragments

Definition at line 338 of file hgcalPerformanceValidation.py.

◆ fullsimSamples

hgcalPerformanceValidation.fullsimSamples

Definition at line 308 of file hgcalPerformanceValidation.py.

◆ index_file

hgcalPerformanceValidation.index_file

Definition at line 392 of file hgcalPerformanceValidation.py.

◆ inputpathNew

hgcalPerformanceValidation.inputpathNew

Definition at line 356 of file hgcalPerformanceValidation.py.

◆ inputpathRef

hgcalPerformanceValidation.inputpathRef

Definition at line 354 of file hgcalPerformanceValidation.py.

◆ lines

hgcalPerformanceValidation.lines

Definition at line 402 of file hgcalPerformanceValidation.py.

◆ localoutputdir

hgcalPerformanceValidation.localoutputdir

Definition at line 697 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 192 of file hgcalPerformanceValidation.py.

◆ NewRelease

hgcalPerformanceValidation.NewRelease

Definition at line 111 of file hgcalPerformanceValidation.py.

◆ newRelease

hgcalPerformanceValidation.newRelease

Definition at line 311 of file hgcalPerformanceValidation.py.

◆ NewRepository

hgcalPerformanceValidation.NewRepository

Definition at line 299 of file hgcalPerformanceValidation.py.

◆ newRepository

hgcalPerformanceValidation.newRepository

Definition at line 311 of file hgcalPerformanceValidation.py.

◆ NotNormalRefRelease

hgcalPerformanceValidation.NotNormalRefRelease

Definition at line 114 of file hgcalPerformanceValidation.py.

◆ NotNormalRelease

hgcalPerformanceValidation.NotNormalRelease

Definition at line 113 of file hgcalPerformanceValidation.py.

◆ objects

hgcalPerformanceValidation.objects

◆ orient

hgcalPerformanceValidation.orient

◆ output

hgcalPerformanceValidation.output

Definition at line 378 of file hgcalPerformanceValidation.py.

◆ particletypes

hgcalPerformanceValidation.particletypes

TODO #This is the CaloParticles part.

Definition at line 559 of file hgcalPerformanceValidation.py.

◆ phase2samples_noPU

hgcalPerformanceValidation.phase2samples_noPU

Definition at line 174 of file hgcalPerformanceValidation.py.

◆ phase2samples_noPU_extend

hgcalPerformanceValidation.phase2samples_noPU_extend

Definition at line 212 of file hgcalPerformanceValidation.py.

◆ phase2samples_noPU_extend_more

hgcalPerformanceValidation.phase2samples_noPU_extend_more

Definition at line 229 of file hgcalPerformanceValidation.py.

◆ phase2samples_PU

hgcalPerformanceValidation.phase2samples_PU

Definition at line 293 of file hgcalPerformanceValidation.py.

◆ punum

hgcalPerformanceValidation.punum

Definition at line 294 of file hgcalPerformanceValidation.py.

◆ putype

hgcalPerformanceValidation.putype

Definition at line 294 of file hgcalPerformanceValidation.py.

Referenced by putype().

◆ RefRelease

hgcalPerformanceValidation.RefRelease

Definition at line 109 of file hgcalPerformanceValidation.py.

◆ refRelease

hgcalPerformanceValidation.refRelease

Definition at line 310 of file hgcalPerformanceValidation.py.

◆ RefRepository

hgcalPerformanceValidation.RefRepository

Definition at line 298 of file hgcalPerformanceValidation.py.

◆ refRepository

hgcalPerformanceValidation.refRepository

Definition at line 310 of file hgcalPerformanceValidation.py.

◆ samplename

hgcalPerformanceValidation.samplename

Definition at line 342 of file hgcalPerformanceValidation.py.

◆ scenario

hgcalPerformanceValidation.scenario

Definition at line 192 of file hgcalPerformanceValidation.py.

◆ thereleases

hgcalPerformanceValidation.thereleases

Definition at line 81 of file hgcalPerformanceValidation.py.

◆ val

hgcalPerformanceValidation.val

Definition at line 307 of file hgcalPerformanceValidation.py.

◆ version

hgcalPerformanceValidation.version

Definition at line 294 of file hgcalPerformanceValidation.py.

hgcalPerformanceValidation.parseOptions
def parseOptions()
Definition: hgcalPerformanceValidation.py:25
hgcalPerformanceValidation.processCmd
def processCmd(cmd, quite=0)
Definition: hgcalPerformanceValidation.py:48
hgcalPerformanceValidation.putype
def putype(t)
Definition: hgcalPerformanceValidation.py:57