ATLAS Offline Software
Enumerations | Functions
Prompt::Def Namespace Reference

Enumerations

enum  Var {
  NONE = 0, TrackJetNTrack, DRlj, PtFrac,
  PtRel, LepTrackDR, Pt, AbsEta,
  NumberOfPIXHits, NumberOfSCTHits, NumberOfSiHits, NumberOfSharedSiHits,
  NumberOfSiHoles, NumberOfPixelHoles, TrackJetDR, TrackPtOverTrackJetPt,
  Z0Sin, D0Sig, Topoetcone30rel, Ptvarcone30rel,
  Ptvarcone30_TightTTVA_pt500rel, MVAXBin, RawPt, CaloClusterERel,
  CaloClusterSumEtRel, PromptLeptonRNN_prompt, CandVertex_normDistToPriVtxLongitudinalBest, CandVertex_normDistToPriVtxLongitudinalBest_ThetaCutVtx,
  CandVertex_NPassVtx
}
 

Functions

void StringTok (std::vector< std::string > &ls, const std::string &str, const std::string &tok)
 

Enumeration Type Documentation

◆ Var

Enumerator
NONE 
TrackJetNTrack 
DRlj 
PtFrac 
PtRel 
LepTrackDR 
Pt 
AbsEta 
NumberOfPIXHits 
NumberOfSCTHits 
NumberOfSiHits 
NumberOfSharedSiHits 
NumberOfSiHoles 
NumberOfPixelHoles 
TrackJetDR 
TrackPtOverTrackJetPt 
Z0Sin 
D0Sig 
Topoetcone30rel 
Ptvarcone30rel 
Ptvarcone30_TightTTVA_pt500rel 
MVAXBin 
RawPt 
CaloClusterERel 
CaloClusterSumEtRel 
PromptLeptonRNN_prompt 
CandVertex_normDistToPriVtxLongitudinalBest 
CandVertex_normDistToPriVtxLongitudinalBest_ThetaCutVtx 
CandVertex_NPassVtx 

Definition at line 56 of file VarHolder.h.

80  {
81  public:
82 
83  VarEntry();
84  VarEntry(unsigned key, double value);
85  ~VarEntry() {}
86 
87  unsigned getKey () const { return m_fKey; }
88  double getVar () const { return m_fData; }
89  double getData() const { return m_fData; }
90 
91  private:

Function Documentation

◆ StringTok()

void Prompt::Def::StringTok ( std::vector< std::string > &  ls,
const std::string &  str,
const std::string &  tok 
)

Definition at line 195 of file VarHolder.cxx.

198 {
199  //======================================================================
200  // Split a long string into a set of shorter strings spliting along
201  // divisions makers by the characters listed in the token string
202  //======================================================================
203  const std::string::size_type S = str.size();
204  std::string::size_type i = 0;
205 
206  while (i < S) {
207  // eat leading whitespace
208  while (i < S && tok.find(str[i]) != std::string::npos) {
209  ++i;
210  }
211  if (i == S) break; // nothing left but WS
212 
213  // find end of word
214  std::string::size_type j = i+1;
215  while (j < S && tok.find(str[j]) == std::string::npos) {
216  ++j;
217  }
218 
219  // add word
220  ls.push_back(str.substr(i,j-i));
221 
222  // set up for next loop
223  i = j+1;
224  }
225 }
InDetSimDataHelpers::getData
const InDetSimData * getData(const InDetSimDataCollection &coll, const Identifier &id)
Definition: InDetSimDataDict.h:24
Prompt::getVar
bool getVar(T1 &obj, T2 &value, const std::string &var_name)
Definition: PromptUtils.h:72
athena.value
value
Definition: athena.py:124
JetTiledMap::S
@ S
Definition: TiledEtaPhiMap.h:44
lumiFormat.i
int i
Definition: lumiFormat.py:85
str
Definition: BTagTrackIpAccessor.cxx:11
python.DiskUtils.ls
def ls(path, longls=False)
Definition: DiskUtils.py:112
pool::getKey
std::string getKey(const std::string &key, const std::string &encoded)
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37