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
 
 indexfiles
 
 inputpathNew
 
 inputpathRef
 
 lines
 
 localoutputdir
 
 midfix
 
 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 29 of file hgcalPerformanceValidation.py.

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

◆ processCmd()

def hgcalPerformanceValidation.processCmd (   cmd,
  quite = 0 
)

Definition at line 54 of file hgcalPerformanceValidation.py.

References print().

54 def processCmd(cmd, quite = 0):
55  print(cmd)
56  status, output = subprocess.getstatusoutput(cmd)
57  if (status !=0 and not quite):
58  print('Error in processing command:\n ['+cmd+']')
59  print('Output:\n ['+output+'] \n')
60  return output
61 
62 #PUtype
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ putype()

def hgcalPerformanceValidation.putype (   t)

Definition at line 63 of file hgcalPerformanceValidation.py.

References putype.

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

Variable Documentation

◆ _summary

hgcalPerformanceValidation._summary
private

Definition at line 870 of file hgcalPerformanceValidation.py.

◆ appendglobaltag

hgcalPerformanceValidation.appendglobaltag

Definition at line 197 of file hgcalPerformanceValidation.py.

◆ appendGlobalTag

hgcalPerformanceValidation.appendGlobalTag

Definition at line 275 of file hgcalPerformanceValidation.py.

◆ cmd

hgcalPerformanceValidation.cmd

Definition at line 469 of file hgcalPerformanceValidation.py.

◆ df

hgcalPerformanceValidation.df

Definition at line 870 of file hgcalPerformanceValidation.py.

Referenced by CastorNominalCoder.adc2fC(), HcalNominalCoder.adc2fC(), CastorCoderDb.adc2fC(), HcalCoderDb.adc2fC(), CastorCoderDb.adc2fC_(), HcalCoderDb.adc2fC_(), HcaluLUTTPGCoder.adc2Linear(), ESElectronicsSim.analogToDigital(), EcalElectronicsSim< CoderType, SamplesType, DataFrameType >.analogToDigital(), ESElectronicsSimFast.analogToDigital(), EcalLiteDTUCoder.analogToDigital(), EcalCoder.analogToDigital(), HGCalBHValidation.analyze(), EcalABAnalyzer.analyze(), EcalTPGAnalyzer.analyze(), EcalPerEvtLaserAnalyzer.analyze(), EcalTestPulseAnalyzer.analyze(), testChannel.analyze(), EcalPulseShapeGrapher.analyze(), EcalLaserAnalyzer.analyze(), EcalLaserAnalyzer2.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(), HcaluLUTTPGCoder.group0FGbits(), MuonSeedCleaner.GroupSeeds(), MuonSeedBuilder.IdentifyShowering(), HcaluLUTTPGCoder.lookupMSB(), SiStripConfigDb.partitions(), CastorNominalCoderTemplate.process(), HcalNominalCoderTemplate.process(), EcalFenixLinearizer.process(), EcalEBFenixLinearizer.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(), DCCSCBlock.unpackXtalData(), DCCTowerBlock.unpackXtalData(), SiStripPartition.update(), CommissioningHistosUsingDb.uploadAnalyses(), and ESUnpacker.word2digi().

◆ fastsimSamples

hgcalPerformanceValidation.fastsimSamples

Definition at line 415 of file hgcalPerformanceValidation.py.

◆ fragments

hgcalPerformanceValidation.fragments

Definition at line 442 of file hgcalPerformanceValidation.py.

◆ fullsimSamples

hgcalPerformanceValidation.fullsimSamples

Definition at line 414 of file hgcalPerformanceValidation.py.

◆ geometryTests

hgcalPerformanceValidation.geometryTests

Definition at line 167 of file hgcalPerformanceValidation.py.

◆ GeoScenario

hgcalPerformanceValidation.GeoScenario

Definition at line 177 of file hgcalPerformanceValidation.py.

◆ index_file

hgcalPerformanceValidation.index_file

Definition at line 579 of file hgcalPerformanceValidation.py.

◆ indexfiles

hgcalPerformanceValidation.indexfiles

Definition at line 569 of file hgcalPerformanceValidation.py.

◆ inputpathNew

hgcalPerformanceValidation.inputpathNew

Definition at line 466 of file hgcalPerformanceValidation.py.

◆ inputpathRef

hgcalPerformanceValidation.inputpathRef

Definition at line 464 of file hgcalPerformanceValidation.py.

◆ lines

hgcalPerformanceValidation.lines

Definition at line 590 of file hgcalPerformanceValidation.py.

◆ localoutputdir

hgcalPerformanceValidation.localoutputdir

Definition at line 930 of file hgcalPerformanceValidation.py.

◆ midfix

hgcalPerformanceValidation.midfix

Definition at line 275 of file hgcalPerformanceValidation.py.

◆ NewRelease

hgcalPerformanceValidation.NewRelease

Definition at line 181 of file hgcalPerformanceValidation.py.

◆ newRelease

hgcalPerformanceValidation.newRelease

Definition at line 417 of file hgcalPerformanceValidation.py.

◆ NewRepository

hgcalPerformanceValidation.NewRepository

Definition at line 405 of file hgcalPerformanceValidation.py.

◆ newRepository

hgcalPerformanceValidation.newRepository

Definition at line 417 of file hgcalPerformanceValidation.py.

◆ NotNormalRefRelease

hgcalPerformanceValidation.NotNormalRefRelease

Definition at line 184 of file hgcalPerformanceValidation.py.

◆ NotNormalRelease

hgcalPerformanceValidation.NotNormalRelease

Definition at line 183 of file hgcalPerformanceValidation.py.

◆ objects

hgcalPerformanceValidation.objects

Definition at line 928 of file hgcalPerformanceValidation.py.

◆ orient

hgcalPerformanceValidation.orient

◆ output

hgcalPerformanceValidation.output

Definition at line 492 of file hgcalPerformanceValidation.py.

◆ particletypes

hgcalPerformanceValidation.particletypes

TODO #This is the CaloParticles part.

Definition at line 752 of file hgcalPerformanceValidation.py.

◆ phase2samples_noPU

hgcalPerformanceValidation.phase2samples_noPU

Definition at line 254 of file hgcalPerformanceValidation.py.

◆ phase2samples_noPU_extend

hgcalPerformanceValidation.phase2samples_noPU_extend

Definition at line 297 of file hgcalPerformanceValidation.py.

◆ phase2samples_noPU_extend_more

hgcalPerformanceValidation.phase2samples_noPU_extend_more

Definition at line 312 of file hgcalPerformanceValidation.py.

◆ phase2samples_PU

hgcalPerformanceValidation.phase2samples_PU

Definition at line 399 of file hgcalPerformanceValidation.py.

◆ pngnamestring

hgcalPerformanceValidation.pngnamestring

Definition at line 1102 of file hgcalPerformanceValidation.py.

◆ punum

hgcalPerformanceValidation.punum

Definition at line 400 of file hgcalPerformanceValidation.py.

◆ putype

hgcalPerformanceValidation.putype

Definition at line 400 of file hgcalPerformanceValidation.py.

Referenced by putype().

◆ RefRelease

hgcalPerformanceValidation.RefRelease

Definition at line 179 of file hgcalPerformanceValidation.py.

◆ refRelease

hgcalPerformanceValidation.refRelease

Definition at line 416 of file hgcalPerformanceValidation.py.

◆ RefRepository

hgcalPerformanceValidation.RefRepository

Definition at line 404 of file hgcalPerformanceValidation.py.

◆ refRepository

hgcalPerformanceValidation.refRepository

Definition at line 416 of file hgcalPerformanceValidation.py.

◆ samplename

hgcalPerformanceValidation.samplename

Definition at line 447 of file hgcalPerformanceValidation.py.

◆ scenario

hgcalPerformanceValidation.scenario

Definition at line 275 of file hgcalPerformanceValidation.py.

◆ thereleases

hgcalPerformanceValidation.thereleases

Definition at line 87 of file hgcalPerformanceValidation.py.

◆ val

hgcalPerformanceValidation.val

Definition at line 413 of file hgcalPerformanceValidation.py.

◆ version

hgcalPerformanceValidation.version

Definition at line 400 of file hgcalPerformanceValidation.py.