CMS 3D CMS Logo

Functions
hcalInitDb.cc File Reference
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <map>
#include <algorithm>
#include <string>
#include "DataFormats/Common/interface/Timestamp.h"
#include "CondCore/IOVService/interface/IOV.h"
#include "CondTools/Hcal/interface/HcalDbTool.h"
#include "CondFormats/HcalObjects/interface/HcalPedestals.h"
#include "CondFormats/HcalObjects/interface/HcalPedestalWidths.h"
#include "CondFormats/HcalObjects/interface/HcalGains.h"
#include "CondFormats/HcalObjects/interface/HcalGainWidths.h"
#include "CondFormats/HcalObjects/interface/HcalElectronicsMap.h"
#include "CondFormats/HcalObjects/interface/HcalChannelQuality.h"
#include "CondFormats/HcalObjects/interface/HcalQIEData.h"
#include "CondFormats/HcalObjects/interface/HcalCalibrationQIEData.h"

Go to the source code of this file.

Functions

int main (int argn, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argn,
char *  argv[] 
)

Definition at line 100 of file hcalInitDb.cc.

100  {
101 
102  Args args;
103  args.defineParameter ("-db", "DB connection string, POOL format, i.e. oracle://devdb10/CMS_COND_HCAL");
104  args.defineOption ("-help", "this help");
105  args.defineOption ("-verbose", "verbose");
106 
107  args.parse (argn, argv);
108 
109  std::vector<std::string> arguments = args.arguments ();
110 
111  if (args.getParameter ("-db").empty() || args.optionIsSet ("-help")) {
112  printHelp (args);
113  return -1;
114  }
115 
116  std::string inputdb = args.getParameter ("-db");
117  bool verbose = args.optionIsSet ("-verbose");
118 
119  initDb (inputdb, verbose);
120  return 0;
121 }

References writedatasetfile::args, runGCPTkAlMap::arguments, cmsBatch::argv, align_cfg::inputdb, printHelp(), AlCaHLTBitMon_QueryRunRegistry::string, and verbose.

writedatasetfile.args
args
Definition: writedatasetfile.py:18
cmsBatch.argv
argv
Definition: cmsBatch.py:279
printHelp
void printHelp(const Args &args)
Definition: hcalPublishConditions.cc:52
runGCPTkAlMap.arguments
arguments
Definition: runGCPTkAlMap.py:46
verbose
static constexpr int verbose
Definition: HLTExoticaSubAnalysis.cc:25
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
align_cfg.inputdb
inputdb
Definition: align_cfg.py:8