ATLAS Offline Software
Macros
TileTOFTool.cxx File Reference
#include "StoreGate/ReadHandle.h"
#include "TileTOFTool.h"
#include "CaloEvent/CaloCellContainer.h"
#include "TileEvent/TileCell.h"
#include "CaloIdentifier/TileID.h"
#include <cmath>
#include "TFile.h"
#include "TTree.h"
#include "TF1.h"
Include dependency graph for TileTOFTool.cxx:

Go to the source code of this file.

Macros

#define TIMECOR(MOD_REF1, MOD_REF2, PART_REF1, PART_REF2, COUNT, TCOR)
 

Macro Definition Documentation

◆ TIMECOR

#define TIMECOR (   MOD_REF1,
  MOD_REF2,
  PART_REF1,
  PART_REF2,
  COUNT,
  TCOR 
)
Value:
do { \
if (mod[i]==MOD_REF1 && mod[j]==MOD_REF2 && \
part[i]==PART_REF1 && part[j]==PART_REF2) { \
float TOF = sqrt(((x[j]-x[i])*(x[j]-x[i]))+((y[j]-y[i])*(y[j]-y[i]))+((z[j]-z[i])*(z[j]-z[i])))/299.792; \
float tc = t[j]-t[i]-TOF; \
++COUNT; \
TCOR += tc; \
} \
} while(0)
LArG4FSStartPointFilter.part
part
Definition: LArG4FSStartPointFilter.py:21
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
x
#define x
maskDeadModules.mod
mod
Definition: maskDeadModules.py:36
lumiFormat.i
int i
Definition: lumiFormat.py:85
z
#define z
y
#define y