ATLAS Offline Software
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
9 
18 #include <sstream>
19 #include <string>
20 
21 namespace 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  std::string getenv(const std::string & variableName);
40 
42 
43  }
44 }
45 #endif
SCT_Cabling::calculateLink
int calculateLink(const int MURorder, const int ModID, const int theSide, const bool isSwapped=false)
calculate link, normal and swapped (from Kondo)
Definition: SCT_CablingUtilities.cxx:55
SCT_Cabling::CoveritySafe::getenv
std::string getenv(const std::string &variableName)
get an environment variable
Definition: SCT_CablingUtilities.cxx:63
athena.value
value
Definition: athena.py:124
SCT_Cabling
Definition: SCT_CablingUtilities.cxx:17
SCT_Cabling::inRange
bool inRange(const int value, const int lowerBound, const int upperBound, const std::string &valueName)
Check range and give error if out of range.
Definition: SCT_CablingUtilities.cxx:45
SCT_Cabling::stringToInt
int stringToInt(const std::string &hexOrDecString)
Convert a string (decimal or hex) to an int; -1 indicates an error.
Definition: SCT_CablingUtilities.cxx:20