ATLAS Offline Software
PhysicsAnalysis/MuonID/MuonIDAnalysis/MuonEfficiencyCorrections/MuonEfficiencyCorrections/UtilFunctions.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3  */
4 
5 #ifndef MUONEFFICIENCYCORRECTIONS_UTILFUNCTIONS_H
6 #define MUONEFFICIENCYCORRECTIONS_UTILFUNCTIONS_H
7 
8 #include <string>
9 #include <vector>
10 #include <functional>
11 #include <memory>
12 #include <TH1.h>
13 #include <AsgTools/AsgTool.h>
14 
15 namespace CP {
17  std::string EraseWhiteSpaces(std::string str);
19  std::string ReplaceExpInString(std::string str, const std::string &exp, const std::string &rep);
21  std::string LowerString(const std::string &str);
23  std::string RandomString(size_t s);
25  std::unique_ptr<TH1> clone(TH1* H);
27  bool isOverflowBin(const TH1 *Histo, int bin);
28 
29 
30 }
31 #endif // MUONEFFICIENCYCORRECTIONS_MUONEFFICIENCYTYPE_H
CP::RandomString
std::string RandomString(size_t s)
Generates a random string consisting of capital & small letters + numbers.
Definition: PhysicsAnalysis/MuonID/MuonIDAnalysis/MuonEfficiencyCorrections/Root/UtilFunctions.cxx:11
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
make_hlt_rep.rep
rep
Definition: make_hlt_rep.py:32
bin
Definition: BinsDiffFromStripMedian.h:43
CP::isOverflowBin
bool isOverflowBin(const TH1 *Histo, int bin)
Checks whether a global bin number belongs to over/underflow or is in the bulk.
Definition: PhysicsAnalysis/MuonID/MuonIDAnalysis/MuonEfficiencyCorrections/Root/UtilFunctions.cxx:54
drawFromPickle.exp
exp
Definition: drawFromPickle.py:36
CP::LowerString
std::string LowerString(const std::string &str)
Lowers all characters in the string.
Definition: PhysicsAnalysis/MuonID/MuonIDAnalysis/MuonEfficiencyCorrections/Root/UtilFunctions.cxx:37
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
CP::clone
std::unique_ptr< TH1 > clone(TH1 *H)
Clones a TH1 and handles the ownership then to a unique_ptr.
Definition: PhysicsAnalysis/MuonID/MuonIDAnalysis/MuonEfficiencyCorrections/Root/UtilFunctions.cxx:43
CP::EraseWhiteSpaces
std::string EraseWhiteSpaces(std::string str)
Removes beginning and trailing white spaces from a string.
Definition: PhysicsAnalysis/MuonID/MuonIDAnalysis/MuonEfficiencyCorrections/Root/UtilFunctions.cxx:31
CP::ReplaceExpInString
std::string ReplaceExpInString(std::string str, const std::string &exp, const std::string &rep)
Replaces all expressions an string by something else.
Definition: PhysicsAnalysis/MuonID/MuonIDAnalysis/MuonEfficiencyCorrections/Root/UtilFunctions.cxx:24
TH1
Definition: rootspy.cxx:268
str
Definition: BTagTrackIpAccessor.cxx:11
AsgTool.h