ATLAS Offline Software
Classes | Typedefs | Functions | Variables
computils.h File Reference
#include <iostream>
#include <string>
#include <vector>
#include <cstdio>
#include <cstdlib>
#include <exception>
#include "label.h"
#include "utils.h"
#include "DrawLabel.h"
#include "TStyle.h"
#include "TPad.h"
#include "TH1D.h"
#include "TFile.h"
#include "TH1.h"
#include "TGraphAsymmErrors.h"
#include "TLegend.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  data_mismatch
 
class  true_mean
 
class  AxisInfo
 class to store information about axes, limits, whether it is log or linear scale etc More...
 
class  Legend
 slightly more convenient legend class More...
 
class  tPlotter< T >
 generic plotter class - better to have one of these - make sure it can be configured however you like, line styles, marker types, legends etc now a template so can be used for TH1D and TH2D etc More...
 
class  Plots
 set of generic plots More...
 
class  HistDetails
 details of the histogram axes etc More...
 
class  Panel
 

Typedefs

typedef tPlotter< TH1FPlotter
 

Functions

void ATLASFORAPP_LABEL (double x, double y, int color, double size=0.06)
 
void myText (Double_t x, Double_t y, Color_t color, const std::string &text, Double_t tsize)
 
std::string stime ()
 return the current data and time More...
 
double integral (TH1 *h)
 
void Norm (TH1 *h, double scale=1)
 
double Entries (TH1 *h)
 
bool contains (const std::string &s, const std::string &p)
 does a string contain the substring More...
 
bool contains (const std::string &s, char p) noexcept
 
bool fcontains (const std::string &s, const std::string &p)
 does a string contain the substring at the beginning of the string More...
 
bool exists (const std::string &filename)
 does a file exist More...
 
std::string tail (std::string s, const std::string &pattern)
 tail of a string More...
 
std::string head (std::string s, const std::string &pattern)
 head of a string More...
 
std::string globbed (const std::string &s)
 match a file name More...
 
void contents (std::vector< std::string > &keys, TDirectory *td, const std::string &directory="", const std::string &pattern="", const std::string &path="")
 
void contents (std::vector< std::string > &keys, TDirectory *td, const std::string &directory="", const std::vector< std::string > &patterns=std::vector< std::string >(), const std::string &path="")
 
double realmax (TH1 *h, bool include_error=true, double lo=0, double hi=0)
 
double realmin (TH1 *h, bool include_error=true, double lo=0, double hi=0)
 
std::string findcell (std::string name, const std::string &regex, const std::string &splitex="/")
 
std::string findrun (TFile *f)
 
double plotable (TH1 *h)
 
template<typename T >
std::ostream & operator<< (std::ostream &s, std::vector< T > &v)
 
std::vector< int > findxrange (TH1 *h, bool symmetric=false)
 automatically set the xrange on a histogram More...
 
std::vector< double > findxrangeuser (TH1 *h, bool symmetric=false)
 
void trim_tgraph (TH1 *h, TGraphAsymmErrors *t)
 
void xrange (TH1 *h, bool symmetric=true)
 
void copyReleaseInfo (TFile *finput, TFile *foutdir)
 copy the TTree of release info from one directory to another More...
 
std::ostream & operator<< (std::ostream &s, const AxisInfo &a)
 
template<typename T >
void setParameters (T *h, TGraphAsymmErrors *tg)
 
template<typename T >
void zeroErrors (T *h)
 
bool empty (TH1 *h)
 
void hminus (TH1 *h)
 
std::ostream & operator<< (std::ostream &s, const HistDetails &h)
 
std::ostream & operator<< (std::ostream &s, const Panel &p)
 

Variables

bool LINEF
 
bool LINES
 
int colours [6]
 
int markers [6]
 
double msizes [6]
 

Detailed Description

Author
mark sutton
Date
Sat Aug 30 2014 14:38:03 CEST

Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration

Definition in file computils.h.

Typedef Documentation

◆ Plotter

typedef tPlotter<TH1F> Plotter

Definition at line 882 of file computils.h.

Function Documentation

◆ ATLASFORAPP_LABEL()

void ATLASFORAPP_LABEL ( double  x,
double  y,
int  color,
double  size = 0.06 
)

Definition at line 186 of file computils.cxx.

187 {
188  TLatex* lat = new TLatex(); //lat.SetTextAlign(12); lat.SetTextSize(tsize);
189  lat->SetNDC();
190  lat->SetTextFont(72);
191  lat->SetTextColor(color);
192  lat->SetTextSize(size);
193  lat->DrawLatex(x,y,"ATLAS");
194 
195  TLatex* lat2 = new TLatex(); //lat.SetTextAlign(12); lat.SetTextSize(tsize);
196  lat2->SetNDC();
197  lat2->SetTextFont(52);
198  lat2->SetTextColor(color);
199  lat2->SetTextSize(size); // this 0.13 should really be calculated as a ratio of the width of the canvas
200  lat2->DrawLatex(x+0.13,y,"For Approval");
201 }

◆ contains() [1/2]

bool contains ( const std::string &  s,
char  p 
)
noexcept

Definition at line 39 of file chainparser.cxx.

39  {
40  return s.find( c )!=std::string::npos;
41 }

◆ contains() [2/2]

bool contains ( const std::string &  s,
const std::string &  p 
)

does a string contain the substring

does a string contain the substring

Definition at line 111 of file hcg.cxx.

111 { return s.find(regx)!=std::string::npos; }

◆ contents() [1/2]

void contents ( std::vector< std::string > &  keys,
TDirectory *  td,
const std::string &  directory = "",
const std::string &  pattern = "",
const std::string &  path = "" 
)

Definition at line 319 of file computils.cxx.

320  {
321  std::vector<std::string> patterns;
322  patterns.push_back(pattern);
323  contents( keys, td, directory, patterns, path );
324 }

◆ contents() [2/2]

void contents ( std::vector< std::string > &  keys,
TDirectory *  td,
const std::string &  directory = "",
const std::vector< std::string > &  patterns = std::vector< std::string >(),
const std::string &  path = "" 
)

directory, cd to it ...

test to see whether we are searhing for a specific directory name not a directory so include this ...

Definition at line 329 of file computils.cxx.

330  {
331 
332  bool print = false;
333 
334  TList* tl = td->GetListOfKeys();
335 
336  for ( int i=tl->GetSize() ; i-- ; ) {
337 
338  TKey* tobj = (TKey*)tl->At(i);
339 
340  if ( tobj==0 ) continue;
341 
342  if ( std::string(tobj->GetClassName()).find("TDirectory")!=std::string::npos ) {
343 
344  TDirectory* tnd = (TDirectory*)tobj->ReadObj();
345 
347  std::string dname = tnd->GetName();
348 
349  std::string newpath = path+dname+"/";
350  contents( keys, tnd, directory, patterns, newpath );
351 
352  }
353  else {
356  if ( directory == "" || contains( path, directory ) ) {
357 
358 
359  bool matched = true;
360  for ( size_t i=patterns.size() ; i-- ; ) {
361  const std::string& pattern = patterns[i];
362  if ( contains(std::string(tobj->GetName()), pattern ) ) matched &=true;
363  else matched = false;
364  }
365  if ( matched ) {
366  if ( print ) std::cout << "will process " << td->GetName() << " \t:: " << tobj->GetName() << "\tpatterns: " << patterns.size() << std::endl;
367  print = false;
368  keys.push_back( path+tobj->GetName() );
369  }
370  }
371  }
372  }
373 }

◆ copyReleaseInfo()

void copyReleaseInfo ( TFile *  finput,
TFile *  foutdir 
)

copy the TTree of release info from one directory to another

copy the TTree of release info from one directory to another

Definition at line 618 of file computils.cxx.

618  {
619 
620  std::vector<std::string> release_data;
621 
622  if ( finput && foutdir ) {
623 
624  TTree* tree = (TTree*)finput->Get("dataTree");
625  TTree* clone = tree->CloneTree();
626 
627  foutdir->cd();
628  clone->Write("", TObject::kOverwrite);
629 
630  delete clone;
631 
632  }
633 
634 }

◆ empty()

bool empty ( TH1 h)

Definition at line 294 of file computils.cxx.

294  {
295  for ( int i=h->GetNbinsX() ; i>0 ; i-- ) if ( h->GetBinContent(i)!=0 ) return false;
296  return true;
297 }

◆ Entries()

double Entries ( TH1 h)

Definition at line 50 of file computils.cxx.

50  {
51  double n = 0;
52  for ( int i=h->GetNbinsX()+1 ; --i ; ) n += h->GetBinContent(i);
53  return n;
54 }

◆ exists()

bool exists ( const std::string &  filename)

does a file exist

Definition at line 254 of file computils.cxx.

254  {
255  struct stat sb;
256  if ( stat( filename.c_str(), &sb)==0 ) return true; // && S_ISREG(sb.st_mode ))
257  else return false;
258 }

◆ fcontains()

bool fcontains ( const std::string &  s,
const std::string &  p 
)

does a string contain the substring at the beginning of the string

does a string contain the substring at the beginning of the string

Definition at line 232 of file computils.cxx.

232  {
233  return (s.find(p)==0);
234 }

◆ findcell()

std::string findcell ( std::string  name,
const std::string &  regex,
const std::string &  splitex = "/" 
)

Definition at line 545 of file computils.cxx.

545  {
546 
547  size_t posex = name.find( regex );
548 
549  if ( posex==std::string::npos ) return "";
550 
551  size_t pos = name.find_last_of( splitex );
552 
553  std::string duff = name;
554 
555  while ( pos!=std::string::npos && pos>posex+regex.size() ) {
556  name.resize(pos); //pos must be <=string length
557  pos = name.find_last_of( splitex );
558  }
559 
560  pos = name.find( regex );
561 
562  name = name.substr( pos, name.size() );
563 
564  pos = name.find( splitex );
565 
566  if ( pos!=std::string::npos ) return name.substr( 0, pos );
567 
568  return name;
569 }

◆ findrun()

std::string findrun ( TFile *  f)

go through sub directories

Definition at line 573 of file computils.cxx.

573  {
574 
575  TDirectory* here = gDirectory;
576 
577  f->cd();
578 
579  std::cout << "gDirectory::GetName() " << gDirectory->GetName() << std::endl;
580 
581  // gDirectory->pwd();
582 
583  // gDirectory->ls();
584 
585  TList* tl = gDirectory->GetListOfKeys();
586 
588 
589  for ( int i=0 ; i<tl->GetSize() ; i++ ) {
590 
591  TKey* tobj = (TKey*)tl->At(i);
592 
593  if ( tobj==0 ) continue;
594 
595  if ( std::string(tobj->GetClassName()).find("TDirectory")!=std::string::npos ) {
596 
597  TDirectory* tnd = (TDirectory*)tobj->ReadObj();
598 
599  std::string name = tnd->GetName();
600 
601  if ( name.find( "run_" )==0 ) {
602  here->cd();
603  return name;
604  }
605  }
606  }
607 
608  here->cd();
609 
610  return "";
611 }

◆ findxrange()

std::vector<int> findxrange ( TH1 h,
bool  symmetric = false 
)

automatically set the xrange on a histogram

zoom on non-empty bins

Definition at line 446 of file computils.cxx.

446  {
447 
448  int ilo = 1;
449  int ihi = h->GetNbinsX();
450 
451  h->GetXaxis()->SetRange( ilo, ihi );
452 
453  std::vector<int> limits(2,0);
454  limits[0] = ilo;
455  limits[1] = ihi;
456 
457  if ( empty(h) ) return limits;
458 
459 #if 1
460 
462  for ( ; ilo<=ihi ; ilo++ ) if ( h->GetBinContent(ilo)!=0 ) break;
463  for ( ; ihi>=ilo ; ihi-- ) if ( h->GetBinContent(ihi)!=0 ) break;
464 
465 #else
466 
468 
470 
471  double icont = 1/content;
472 
473  double flo = 0;
474  double fhi = 0;
475  for ( ; ilo<=ihi ; ilo++ ) {
476  flo += h->GetBinContent(ilo);
477  if ( (flo*icont)>0.0005 ) break;
478  }
479 
480  for ( ; ihi>=ilo ; ihi-- ) {
481  fhi += h->GetBinContent(ihi);
482  if ( (fhi*icont)>0.0005 ) break;
483  }
484 
485 #endif
486 
487  int delta_lo = ilo-1;
488  int delta_hi = h->GetNbinsX()-ihi;
489 
490  if ( symmetric ) {
491  if ( delta_hi<delta_lo ) {
492  limits[0] = 1+delta_hi;
493  limits[1] = ihi;
494  }
495  else {
496  limits[0] = 1+delta_lo;
497  limits[1] = h->GetNbinsX()-delta_lo;
498  }
499  }
500  else {
501 
502  if ( ilo>1 ) ilo--;
503  if ( ihi<h->GetNbinsX() ) ihi++;
504 
505  limits[0] = ilo;
506  limits[1] = ihi;
507  }
508 
509  return limits;
510 
511 }

◆ findxrangeuser()

std::vector<double> findxrangeuser ( TH1 h,
bool  symmetric = false 
)

Definition at line 523 of file computils.cxx.

523  {
524 
525  std::vector<int> limits = findxrange( h, symmetric );
526 
527  std::vector<double> dlimits(2,0);
528 
529  double dx = h->GetBinLowEdge(limits[1]+1)-h->GetBinLowEdge(limits[1]);
530 
531  dlimits[0] = h->GetBinLowEdge(limits[0]);
532  dlimits[1] = h->GetBinLowEdge(limits[1]+1)-dx*1e-11;
533 
534  return dlimits;
535 }

◆ globbed()

std::string globbed ( const std::string &  s)

match a file name

glob for a file based on the pattern, then return the name of the first matching file

Definition at line 262 of file computils.cxx.

262  {
265 
266  glob_t glob_result;
267  glob( s.c_str(), GLOB_TILDE, 0, &glob_result );
268 
269  std::vector<std::string> ret;
270  for( unsigned i=0 ; i<glob_result.gl_pathc ; i++ ){
271  ret.push_back( std::string(glob_result.gl_pathv[i]) );
272  }
273  globfree(&glob_result);
274 
275 
276  if ( ret.empty() ) {
277  std::cerr << "no matching file: " << s << std::endl;
278  return "";
279  }
280 
281  if ( ret.size()>1 ) {
282  for ( unsigned i=0 ; i<ret.size() ; i++ ) {
283  std::cout << "matched " << ret[i] << std::endl;
284  }
285  }
286 
287  return ret[0];
288 }

◆ head()

std::string head ( std::string  s,
const std::string &  pattern 
)

head of a string

Definition at line 310 of file computils.cxx.

310  {
311  size_t pos = s.find_last_of(pattern);
312  if ( pos != std::string::npos ) {
313  s.erase( pos, s.size() );
314  }
315  return s;
316 }

◆ hminus()

void hminus ( TH1 h)
inline

Definition at line 899 of file computils.h.

899  {
900  std::cout << __FUNCTION__ << std::endl;
901  for ( int i=1 ; i<=h->GetNbinsX() ; i++ ) {
902  double duff = h->GetBinContent(i);
903  if ( duff<0 ) {
904  std::cout<< "\t\t" << __FUNCTION__ << " " << h->GetName() << " " << i << " " << h->GetBinContent(i) << " " << (duff*1e6) << std::endl;
905  }
906  }
907  h->DrawCopy();
908  gPad->Print( (std::string("duff-")+h->GetName()+".pdf").c_str() );
909 }

◆ integral()

double integral ( TH1 h)

Definition at line 57 of file computils.cxx.

57  {
58  double n=0;
59  for ( int i=h->GetNbinsX() ; i>0 ; i-- ) n += h->GetBinContent(i);
60  return n;
61 }

◆ myText()

void myText ( Double_t  x,
Double_t  y,
Color_t  color,
const std::string &  text,
Double_t  tsize 
)

Definition at line 203 of file computils.cxx.

203  {
204 
205  //Double_t tsize=0.05;
206  TLatex lat; lat.SetTextAlign(12); lat.SetTextSize(tsize);
207  lat.SetNDC();
208  lat.SetTextColor(color);
209  lat.DrawLatex(x,y,text.c_str());
210 }

◆ Norm()

void Norm ( TH1 h,
double  scale = 1 
)

Definition at line 65 of file computils.cxx.

65  {
66  double n = 0;
67  for ( int i=h->GetNbinsX()+2 ; --i ; ) n += h->GetBinContent(i);
68  if ( n!=0 ) {
69  double in=scale/n;
70  for ( int i=h->GetNbinsX()+2 ; --i ; ) {
71  h->SetBinContent(i, h->GetBinContent(i)*in );
72  h->SetBinError(i, h->GetBinError(i)*in );
73  }
74  }
75 
76 }

◆ operator<<() [1/4]

std::ostream& operator<< ( std::ostream &  s,
const AxisInfo a 
)
inline

Definition at line 318 of file computils.h.

318  {
319  s << "[ " << a.tag() << ( a.log() ? " : log" : "" ) << " ";
320  if ( a.autoset() ) s << " : auto";
321  else if ( a.rangeset() ) s << " : range " << a.lo() << " - " << a.hi();
322  s << " ]";
323  return s;
324 }

◆ operator<<() [2/4]

std::ostream& operator<< ( std::ostream &  s,
const HistDetails h 
)
inline

Definition at line 1309 of file computils.h.

1309  {
1310  return s << "[ " << h.name() << " \tx: \"" << h.xtitle() << "\" " << h.xaxis() << "\t\ty: \"" << h.ytitle() << "\" " << h.yaxis() << " ]";
1311 }

◆ operator<<() [3/4]

std::ostream& operator<< ( std::ostream &  s,
const Panel p 
)
inline

Definition at line 1368 of file computils.h.

1368  {
1369  s << "Panel: " << p.name();
1370  if ( p.size() == 1 ) s << "\t" << p[0];
1371  else for ( size_t i=0 ; i<p.size() ; i++ ) s << "\n\t" << p[i];
1372  return s;
1373 }

◆ operator<<() [4/4]

template<typename T >
std::ostream& operator<< ( std::ostream &  s,
std::vector< T > &  v 
)

Definition at line 106 of file computils.h.

106  {
107  for ( unsigned i=0 ; i<v.size() ; i++ ) s << "\t" << v[i];
108  return s;
109 }

◆ plotable()

double plotable ( TH1 h)

Definition at line 237 of file computils.cxx.

237  { // , double xlo, double xhi ) {
238  double n = 0;
239 
240  double xlo = h->GetBinLowEdge(1);
241  double xhi = h->GetBinLowEdge(h->GetNbinsX()+1);
242 
243  // if ( xlo!=-999 ) _xlo = xlo;
244  // if ( xhi!=-999 ) _xhi = xhi;
245 
246  for ( int i=h->GetNbinsX()+1 ; --i ; ) {
247  if ( h->GetBinCenter(i)>xlo && h->GetBinCenter(i)<xhi ) n += h->GetBinContent(i);
248  }
249  return n;
250 }

◆ realmax()

double realmax ( TH1 h,
bool  include_error = true,
double  lo = 0,
double  hi = 0 
)

Definition at line 379 of file computils.cxx.

379  {
380  double rm = 0;
381  if ( h->GetNbinsX()==0 ) return 0;
382 
383  bool first = true;
384  for ( int i=1 ; i<=h->GetNbinsX() ; i++ ) {
385 
386  if ( lo!=hi ) {
387  double c = h->GetBinCenter(i);
388  if ( lo>c || hi<c ) continue;
389  }
390 
391  double re = h->GetBinContent(i);
392  if ( include_error ) re += h->GetBinError(i);
393  if ( re!=0 ) {
394  if ( first || rm<re ) {
395  rm = re;
396  first = false;
397  }
398  }
399  }
400 
401  return rm;
402 }

◆ realmin()

double realmin ( TH1 h,
bool  include_error = true,
double  lo = 0,
double  hi = 0 
)

Definition at line 406 of file computils.cxx.

406  {
407 
408  if ( h->GetNbinsX()==0 ) return 0;
409 
410  double rm = 0;
411 
412  bool first = true;
413  for ( int i=1 ; i<=h->GetNbinsX() ; i++ ) {
414 
415  if ( lo!=hi ) {
416  double c = h->GetBinCenter(i);
417  if ( lo>c || hi<c ) continue;
418  }
419 
420  double re = h->GetBinContent(i);
421 
422  if ( re!=0 ) {
423  // if ( include_error ) re -= h->GetBinError(i);
424  if ( first || rm>re ) rm = re;
425  first = false;
426  }
427  }
428 
429  return rm;
430 }

◆ setParameters()

template<typename T >
void setParameters ( T *  h,
TGraphAsymmErrors *  tg 
)

Definition at line 432 of file computils.h.

432  {
433  tg->SetLineColor( h->GetLineColor() );
434  tg->SetMarkerColor( h->GetMarkerColor() );
435  tg->SetMarkerStyle( h->GetMarkerStyle() );
436  tg->SetMarkerSize( h->GetMarkerSize() );
437  tg->SetLineWidth( h->GetLineWidth() );
438  tg->SetLineStyle( h->GetLineStyle() );
439 }

◆ stime()

std::string stime ( )

return the current data and time

Definition at line 213 of file computils.cxx.

213  {
214  time_t t;
215  time(&t);
216  return label("%s", ctime(&t) );
217 }

◆ tail()

std::string tail ( std::string  s,
const std::string &  pattern 
)

tail of a string

Definition at line 300 of file computils.cxx.

300  {
301  size_t pos = s.find(pattern);
302  while ( pos != std::string::npos ) {
303  s.erase( 0, pos+1 );
304  pos = s.find(pattern);
305  }
306  return s;
307 }

◆ trim_tgraph()

void trim_tgraph ( TH1 h,
TGraphAsymmErrors *  t 
)

Definition at line 151 of file computils.cxx.

151  {
152 
153  double ylo = h->GetMinimum();
154 
155  int ih=1;
156 
157  for ( int i=0 ; i<t->GetN() && ih<=h->GetNbinsX() ; i++, ih++ ) {
158 
159  double yt = 0;
160  double xt = 0;
161  double ye = 0;
162 
163  t->GetPoint( i, xt, yt );
164  ye = t->GetErrorYlow( i );
165 
166  double yh = h->GetBinContent(ih);
167  double xh = h->GetBinCenter(ih);
168 
169  while( !almost_equal( xh, xt, 5 ) && ih<=h->GetNbinsX() ) {
170  ih++;
171  yh = h->GetBinContent(ih);
172  xh = h->GetBinCenter(ih);
173  }
174 
175  if ( !almost_equal( yh, yt, 5 ) ) throw data_mismatch(std::string("for histogram ")+h->GetName());
176 
177  if ( (yt-ye) < ylo ) {
178  h->SetBinContent(ih, ylo-100 );
179  t->SetPoint( i, xt, ylo-100 );
180  }
181 
182  }
183 }

◆ xrange()

void xrange ( TH1 h,
bool  symmetric = true 
)

Definition at line 515 of file computils.cxx.

515  {
516  std::vector<int> limits = findxrange( h, symmetric );
517  h->GetXaxis()->SetRange( limits[0], limits[1] );
518 }

◆ zeroErrors()

template<typename T >
void zeroErrors ( T *  h)

Definition at line 443 of file computils.h.

443  {
444  for ( int i=1 ; i<=h->GetNbinsX() ; i++ ) h->SetBinError( i, 1e-100 );
445 }

Variable Documentation

◆ colours

int colours[6]

Definition at line 44 of file computils.cxx.

◆ LINEF

bool LINEF

Definition at line 38 of file computils.cxx.

◆ LINES

bool LINES

Definition at line 39 of file computils.cxx.

◆ markers

int markers[6]

Definition at line 45 of file computils.cxx.

◆ msizes

double msizes[6]

Definition at line 46 of file computils.cxx.

mergePhysValFiles.pattern
pattern
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:26
python.CaloRecoConfig.f
f
Definition: CaloRecoConfig.py:127
color
Definition: jFexInputByteStreamTool.cxx:25
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
yt
#define yt
athena.path
path
python interpreter configuration --------------------------------------—
Definition: athena.py:126
patterns
std::vector< std::string > patterns
Definition: listroot.cxx:187
PlotCalibFromCool.label
label
Definition: PlotCalibFromCool.py:78
tree
TChain * tree
Definition: tile_monitor.h:30
data_mismatch
Definition: computils.h:97
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
yodamerge_tmp.scale
scale
Definition: yodamerge_tmp.py:138
x
#define x
empty
bool empty(TH1 *h)
Definition: computils.cxx:294
python.Utilities.clone
clone
Definition: Utilities.py:134
PrepareReferenceFile.regex
regex
Definition: PrepareReferenceFile.py:43
grepfile.content
string content
Definition: grepfile.py:56
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
xt
#define xt
contains
bool contains(const std::string &s, const std::string &p)
contains a string
Definition: computils.cxx:221
WritePulseShapeToCool.xhi
xhi
Definition: WritePulseShapeToCool.py:152
DeMoScan.directory
string directory
Definition: DeMoScan.py:80
ParseInputs.gDirectory
gDirectory
Definition: Final2012/ParseInputs.py:133
lumiFormat.i
int i
Definition: lumiFormat.py:92
ret
T ret(T t)
Definition: rootspy.cxx:260
beamspotman.n
n
Definition: beamspotman.py:731
WritePulseShapeToCool.xlo
xlo
Definition: WritePulseShapeToCool.py:133
contents
void contents(std::vector< std::string > &keys, TDirectory *td, const std::string &directory, const std::string &pattern, const std::string &path)
Definition: computils.cxx:319
WritePulseShapeToCool.ylo
ylo
Definition: WritePulseShapeToCool.py:134
beamspotman.stat
stat
Definition: beamspotman.py:266
keylayer_zslicemap.sb
sb
Definition: keylayer_zslicemap.py:192
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
findxrange
std::vector< int > findxrange(TH1 *h, bool symmetric)
automatically set the xrange on a histogram
Definition: computils.cxx:446
python.ElectronD3PDObject.matched
matched
Definition: ElectronD3PDObject.py:138
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
PlotCalibFromCool.lat
lat
Definition: PlotCalibFromCool.py:867
python.PyAthena.v
v
Definition: PyAthena.py:157
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
a
TList * a
Definition: liststreamerinfos.cxx:10
y
#define y
h
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
DeMoScan.first
bool first
Definition: DeMoScan.py:534
re
const boost::regex re(r_e)
makeTRTBarrelCans.dx
tuple dx
Definition: makeTRTBarrelCans.py:20
Muon::print
std::string print(const MuPatSegment &)
Definition: MuonTrackSteering.cxx:28
CaloCellTimeCorrFiller.filename
filename
Definition: CaloCellTimeCorrFiller.py:24
makeTransCanvas.text
text
Definition: makeTransCanvas.py:11
dq_defect_create_virtual_defects.dname
dname
Definition: dq_defect_create_virtual_defects.py:71
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
dqt_zlumi_alleff_HIST.tl
tl
Definition: dqt_zlumi_alleff_HIST.py:73
atlasStyleMacro.tsize
float tsize
Definition: atlasStyleMacro.py:37
almost_equal
bool almost_equal(floaty_t a, floaty_t b, int max_diff)
Definition: computils.cxx:124
python.compressB64.c
def c
Definition: compressB64.py:93