ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_CablingUtilities.h
Go to the documentation of this file.
1// -*- C++ -*-
2
3/*
4 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef SCT_CablingUtilities_H
8#define SCT_CablingUtilities_H
17
18#include <sstream>
19#include <string>
20
21namespace SCT_Cabling{
23
24
26 int stringToInt(const std::string &hexOrDecString);
27
29 bool inRange(const int value, const int lowerBound, const int upperBound, const std::string & valueName="");
30
32 int calculateLink(const int MURorder, const int ModID, const int theSide,const bool isSwapped = false);
34 //End of utility functions
35 namespace CoveritySafe{
37
38
39 std::string getenv(const std::string & variableName);
40
42
43 }
44}
45#endif
std::string getenv(const std::string &variableName)
get an environment variable
int calculateLink(const int MURorder, const int ModID, const int theSide, const bool isSwapped=false)
calculate link, normal and swapped (from Kondo)
int stringToInt(const std::string &hexOrDecString)
Convert a string (decimal or hex) to an int; -1 indicates an error.
bool inRange(const int value, const int lowerBound, const int upperBound, const std::string &valueName)
Check range and give error if out of range.