CMS 3D CMS Logo

Functions | Variables
EcalCondDB Namespace Reference

Functions

def usage ()
 

Variables

 a = FWIncantation()
 
string authpath = "/afs/cern.ch/cms/DB/conddb"
 
 db = rdbms.getReadOnlyDB(dbName)
 
string dbName = "frontier://FrontierProd/CMS_COND_31X_ECAL"
 
int do_comp = 0
 
int do_dump = 0
 
int do_hist = 0
 
int do_liio = 0
 
int do_list = 0
 
int do_plot = 0
 
string inf = "4294967295"
 
 outfilename = None
 
 rdbms = RDBMS(authpath)
 
list sinces = []
 
list tags = []
 

Function Documentation

◆ usage()

def EcalCondDB.usage ( )

Definition at line 13 of file EcalCondDB.py.

References print().

13 def usage():
14  print()
15  print("NAME ")
16  print(" EcalCondDB - inpect EcalCondDB")
17  print()
18  print("SYNOPSIS")
19  print(" EcalCondDB [options] [command] [command_options]")
20  print()
21  print("OPTIONS")
22  print()
23  print("Specify short options as '-o foo', long options as '--option=foo'")
24  print()
25  print(" -c, --connect= [connectstring]")
26  print(" specify database, default frontier://FrontierProd/CMS_COND_31X_ECAL")
27  print()
28  print(" -P, --authpath= [authenticationpath], default /afs/cern.ch/cms/DB/conddb ")
29  print()
30  print("COMMAND OPTIONS")
31  print()
32  print(" -t, --tag= [tag,file] specify tag or xml file (histo,compare)")
33  print()
34  print(" -s, --since= [runnumber] specify since")
35 
36  print("COMMANDS")
37 
38  print(" -l, --listtags list all tags and exit")
39  print()
40  print(" -m, --listiovs list iovs for a given tag")
41  print(" Example EcalCondDB.py -t tag")
42  print()
43  print(" -d, --dump= [file] dump record to xml file")
44  print(" Example EcalCondDB.py -d file.xml -t tag -s since")
45  print()
46  print(" -p, --plot= [file] plot record to file, extension specifies ",\
47  "format (.root,.png,.jpg,.gif,.svg)")
48  print(" Example: EcalCondDB.py -p=plot.png -t tag -s since")
49  print()
50 
51  print(" -q, --compare= [file]")
52  print(" compare two tags and write histograms to file, extension",\
53  " specifies format.")
54  print(" Example:")
55  print(" EcalCondDB -q=h.root -t tag1 -s since1 -t tag2 -s since2")
56  print()
57  print(" -g, --histo= [file] make histograms and write to file")
58  print(" Example : ")
59  print(" EcalCondDB -g=h.png -t tag1 -s since1 ")
60  print()
61 
62 try:
63  opts, args = getopt.getopt(sys.argv[1:],
64  "c:P:t:ld:p:q:g:ms:h",
65  ["connect=","authpath=","tag=","listtags",\
66  "dump=","plot=","compare=","histo=","listiovs",\
67  "since=","help"])
68 
69  if not len(opts):
70  usage()
71  sys.exit(0)
72 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
void usage()
Definition: array2xmlEB.cc:14

Variable Documentation

◆ a

EcalCondDB.a = FWIncantation()

Definition at line 150 of file EcalCondDB.py.

◆ authpath

EcalCondDB.authpath = "/afs/cern.ch/cms/DB/conddb"

◆ db

EcalCondDB.db = rdbms.getReadOnlyDB(dbName)

Definition at line 153 of file EcalCondDB.py.

Referenced by SiPixelGenErrorDBObjectReader.analyze(), module::EcalSRCondTools.analyze(), DiamondSampicCalibrationDQMSource.analyze(), HcalTrigPrimDigiProducer.beginRun(), SiStripCondObjBuilderFromDb.buildAnalysisRelatedObjects(), SiStripFedCablingBuilderFromDb.buildFecCabling(), SiStripFedCablingBuilderFromDb.buildFecCablingFromDetIds(), SiStripFedCablingBuilderFromDb.buildFecCablingFromDevices(), SiStripFedCablingBuilderFromDb.buildFecCablingFromFedConnections(), SiStripCondObjBuilderFromDb.buildFECRelatedObjects(), SiStripCondObjBuilderFromDb.buildFEDRelatedObjects(), SiStripCondObjBuilderFromDb.buildStripRelatedObjects(), PPSDiamondSampicTimingCalibrationPCLHarvester.calibDb(), PPSDiamondSampicTimingCalibrationPCLHarvester.calibJson(), l1t::CaloConfigHelper.CaloConfigHelper(), SiStripCommissioningOfflineDbClient.createHistos(), TEveEllipsoidProjectedGL.DrawRhoZ(), EcalCondDBReader.EcalCondDBReader(), EcalCondDBWriter.EcalCondDBWriter(), ParametersPerChannel< param, PayloadType >.fill(), Fit_MaximumPoint(), HcalLutManager.get_brickSet_from_oracle(), PPSDiamondSampicTimingCalibrationPCLHarvester.getDbSampicChannel(), HcalFeatureHFEMBit.getE(), ParametersPerRun< param, PayloadType >.getFromPayload(), HcalQIEManager.getHfQieTable(), HcalLutManager.getLutFromXml_old(), HcalQIEManager.getTableFromDb(), HcalLutManager.init(), edm::service::LoadAllDictionaries.LoadAllDictionaries(), main(), EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >.PerformAnalyticFit(), PFTauElecRejectionBenchmarkAnalyzer.PFTauElecRejectionBenchmarkAnalyzer(), HiEvtPlaneFlatProducer.produce(), EvtPlaneProducer.produce(), publishObjects(), SiPixelGenError.pushfile(), SiPixelTemplate.pushfile(), HcalLutManager.read_luts(), SiStripCondObjBuilderFromDb.retrieveFedDescriptions(), SiStripCondObjBuilderFromDb.retrieveTimingAnalysisDescriptions(), HcalZeroSuppressionAlgo.setDbService(), SiStripCondObjBuilderFromDb.setValuesApvTiming(), HcalLutManager.test_xml_access(), TotemTimingConversions.timeOfFirstSample(), TotemTimingConversions.timePrecision(), SiStripPartition.update(), l1t::CaloConfigHelper.UpdatePayload(), TotemTimingConversions.voltSamples(), and HcalLutManager.~HcalLutManager().

◆ dbName

EcalCondDB.dbName = "frontier://FrontierProd/CMS_COND_31X_ECAL"

Definition at line 78 of file EcalCondDB.py.

◆ do_comp

int EcalCondDB.do_comp = 0

Definition at line 90 of file EcalCondDB.py.

◆ do_dump

int EcalCondDB.do_dump = 0

Definition at line 88 of file EcalCondDB.py.

◆ do_hist

int EcalCondDB.do_hist = 0

Definition at line 91 of file EcalCondDB.py.

◆ do_liio

int EcalCondDB.do_liio = 0

Definition at line 87 of file EcalCondDB.py.

◆ do_list

int EcalCondDB.do_list = 0

Definition at line 86 of file EcalCondDB.py.

◆ do_plot

int EcalCondDB.do_plot = 0

Definition at line 89 of file EcalCondDB.py.

◆ inf

string EcalCondDB.inf = "4294967295"

◆ outfilename

EcalCondDB.outfilename = None

◆ rdbms

EcalCondDB.rdbms = RDBMS(authpath)

Definition at line 152 of file EcalCondDB.py.

◆ sinces

list EcalCondDB.sinces = []

Definition at line 82 of file EcalCondDB.py.

Referenced by cond::persistency.importIovs().

◆ tags

list EcalCondDB.tags = []

Definition at line 81 of file EcalCondDB.py.