AliRoot Core  edcc906 (edcc906)
AliL1Delay.C File Reference

Macro that measures the time delay of L1 trigger in TPC. More...

#include <TMath.h>
#include <TError.h>
#include <Riostream.h>
#include <TH1F.h>
#include <TF1.h>
#include <TTree.h>
#include <TCanvas.h>
#include <TFile.h>
#include <TStyle.h>
#include <TGeoManager.h>
#include "AliRunLoader.h"
#include "AliRun.h"
#include "AliESD.h"
#include "AliTracker.h"
#include "AliTPCParam.h"
#include "AliMagF.h"
#include "AliITStrackV2.h"
Include dependency graph for AliL1Delay.C:

Go to the source code of this file.

## Functions

Int_t CorrectForDeadZoneMaterial (AliITStrackV2 *t)

Bool_t PropagateToVertex (AliESDtrack *track, Float_t *vtxXYZ)

Bool_t PropagateToVertexG (AliESDtrack *track, Float_t *vtxXYZ)

void AliL1Delay (const Char_t *esdfilename="./AliESDs.root", const Char_t *galicefilename="./galice.root", Bool_t withTGeo=kFALSE, const Char_t *geomfilename="./geometry.root")

## Detailed Description

Macro that measures the time delay of L1 trigger in TPC.

It reads the ESD tracks and fills histograms with the distance between the primary vertex and the Z position of the point of closest approach between the track and the beam axis. The processing of forward and backward tracks is done separately. The corresponding histograms are fitted with gaussian and the shifts of the Z positions are extracted. The L1 time delay is taken as an average of the forward and backward (with opposite sign) shifts divided by the drift velocity. We assume that the ESD tracks are obtained by the TPC tracking stand alone. The propagation to the vertex can be done either with or without TGeoManager.

Definition in file AliL1Delay.C.

## Function Documentation

 void AliL1Delay ( const Char_t * esdfilename = "./AliESDs.root", const Char_t * galicefilename = "./galice.root", Bool_t withTGeo = kFALSE, const Char_t * geomfilename = "./geometry.root" )

Definition at line 43 of file AliL1Delay.C.

 Int_t CorrectForDeadZoneMaterial ( AliITStrackV2 * t )

Correction for the material between the TPC and the ITS (should it belong to the TPC code ?)

Definition at line 265 of file AliL1Delay.C.

Referenced by PropagateToVertex().

 Bool_t PropagateToVertex ( AliESDtrack * track, Float_t * vtxXYZ )

Make an ITS track and propagate it to the vertex

Definition at line 298 of file AliL1Delay.C.

Referenced by AliL1Delay().

 Bool_t PropagateToVertexG ( AliESDtrack * track, Float_t * vtxXYZ )

Make an ITS track and propagate it to the vertex using TGeoManager

Definition at line 312 of file AliL1Delay.C.

Referenced by AliL1Delay().