Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
FWCore
Services
bin
cmsGetFnConnect.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: Utilities
4
// Class : cmsGetFnConnect
5
//
6
// Implementation:
7
// Looks up a frontier connect string
8
//
9
// Original Author: Dave Dykstra
10
// Created: Tue Feb 22 16:54:06 CST 2011
11
//
12
13
#include "
FWCore/Catalog/interface/SiteLocalConfig.h
"
14
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
15
#include "
FWCore/ServiceRegistry/interface/Service.h
"
16
#include "
FWCore/Services/interface/setupSiteLocalConfig.h
"
17
#include "
FWCore/Utilities/interface/Exception.h
"
18
#include <iostream>
19
#include <cstring>
20
#include <memory>
21
22
int
main
(
int
argc
,
char
*
argv
[]) {
23
if
((argc != 2) || (strncmp(argv[1],
"frontier://"
, 11) != 0)) {
24
std::cerr
<<
"Usage: cmsGetFnConnect frontier://shortname"
<< std::endl;
25
return
2;
26
}
27
28
try
{
29
auto
operate =
edm::setupSiteLocalConfig
();
30
31
edm::Service<edm::SiteLocalConfig>
localconfservice;
32
33
std::cout
<< localconfservice->
lookupCalibConnect
(argv[1]) << std::endl;
34
}
catch
(
cms::Exception
const
&
e
) {
35
std::cerr
<< e.
explainSelf
() << std::endl;
36
return
2;
37
}
38
return
0;
39
}
setupSiteLocalConfig.h
edm::Service
Definition:
Service.h:30
cms::Exception::explainSelf
virtual std::string explainSelf() const
Definition:
Exception.cc:108
edm::SiteLocalConfig::lookupCalibConnect
virtual std::string const lookupCalibConnect(std::string const &input) const =0
ParameterSet.h
Service.h
edm::setupSiteLocalConfig
ServiceRegistry::Operate setupSiteLocalConfig()
Definition:
setupSiteLocalConfig.cc:15
Exception.h
cms::Exception
Definition:
Exception.h:70
dir2webdir.argc
tuple argc
Definition:
dir2webdir.py:39
cmsStageWithFailover.argv
list argv
Definition:
cmsStageWithFailover.py:18
alignCSCRings.e
list e
Definition:
alignCSCRings.py:91
gather_cfg.cout
tuple cout
Definition:
gather_cfg.py:144
SiteLocalConfig.h
EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0.cerr
tuple cerr
Definition:
EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0.py:8
magneticFieldFilterJSON.main
def main
Definition:
magneticFieldFilterJSON.py:22
Generated for CMSSW Reference Manual by
1.8.5