ATLAS Offline Software
Classes | Functions
SingleTrackValidation.cxx File Reference
#include "SingleTrackValidation.h"
#include "StoreGate/StoreGateSvc.h"
#include "StoreGate/ReadCondHandle.h"
#include "GeneratorObjects/McEventCollection.h"
#include "GaudiKernel/NTuple.h"
#include "GaudiKernel/INTupleSvc.h"
#include "GaudiKernel/SmartDataPtr.h"
#include "CLHEP/GenericFunctions/FixedConstant.hh"
#include "HepPDT/ParticleDataTable.hh"
#include "HepPDT/ParticleData.hh"
#include "GaudiKernel/IPartPropSvc.h"
#include "AtlasBComponent.h"
#include "GeoXPEngine.h"
#include "CaloDetDescr/CaloDetDescrElement.h"
#include "LArSimEvent/LArHitContainer.h"
#include "CaloIdentifier/CaloCell_ID.h"
#include "CaloIdentifier/LArID_Exception.h"
#include "CLHEP/Units/PhysicalConstants.h"
#include "AthenaKernel/Units.h"
#include "GaudiKernel/ITHistSvc.h"
#include <signal.h>
#include <unistd.h>
#include <sys/types.h>
#include <sstream>
#include <fstream>
#include <iostream>
#include <sys/times.h>
#include <string>

Go to the source code of this file.

Classes

class  SingleTrackValidation::Clockwork
 

Functions

int iabs (int a)
 
int getCpu ()
 

Function Documentation

◆ getCpu()

int getCpu ( )
inline

Definition at line 60 of file SingleTrackValidation.cxx.

60  {
61  int cpuTime = 0;
62  {
63  static const int ticksPerJiffy = sysconf(_SC_CLK_TCK)/100;
64  struct tms buff{};
65  times(&buff);
66  cpuTime=(buff.tms_utime + buff.tms_stime + buff.tms_cutime + buff.tms_cstime)/ticksPerJiffy;
67  }
68  return cpuTime;
69 }

◆ iabs()

int iabs ( int  a)
inline

Definition at line 59 of file SingleTrackValidation.cxx.

59 { return (a>=0)? a : -a;}
get_hdefs.buff
buff
Definition: get_hdefs.py:64
a
TList * a
Definition: liststreamerinfos.cxx:10
plot_times.times
def times(fn)
Definition: plot_times.py:11