ATLAS Offline Software
Loading...
Searching...
No Matches
SingleTrackValidation.cxx File Reference
#include "SingleTrackValidation.h"
#include "StoreGate/StoreGateSvc.h"
#include "StoreGate/ReadCondHandle.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 "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 <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 53 of file SingleTrackValidation.cxx.

53 {
54 int cpuTime = 0;
55 {
56 static const int ticksPerJiffy = sysconf(_SC_CLK_TCK)/100;
57 struct tms buff{};
58 times(&buff);
59 cpuTime=(buff.tms_utime + buff.tms_stime + buff.tms_cutime + buff.tms_cstime)/ticksPerJiffy;
60 }
61 return cpuTime;
62}

◆ iabs()

int iabs ( int a)
inline

Definition at line 52 of file SingleTrackValidation.cxx.

52{ return (a>=0)? a : -a;}
static Double_t a