]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/JetTasks/AliAnalyseLeadingTrackUE.h
New analysis devoted to shower shape studies
[u/mrichter/AliRoot.git] / PWG4 / JetTasks / AliAnalyseLeadingTrackUE.h
CommitLineData
a75aacd6 1//-*- Mode: C++ -*-
2#ifndef ALIANALYSELEADINGTRACKUE_H
3#define ALIANALYSELEADINGTRACKUE_H
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7////////////////////////////////////////////////
8//---------------------------------------------
9// Class for transverse regions analysis w.r.t leading track
10//---------------------------------------------
11////////////////////////////////////////////////
12
13// --- ROOT system ---
14#include <TObject.h>
15
16class AliAODEvent;
144bd037 17class AliAODInputHandler;
a75aacd6 18class AliESDEvent;
19class AliAODTrack;
20class AliESDTrack;
21class AliGenPythiaEventHeader;
22class AliInputEventHandler;
144bd037 23class AliLog;
a75aacd6 24class AliMCEvent;
25class AliStack;
26class AliVParticle;
27class TClonesArray;
28class TObject;
144bd037 29class TROOT;
a75aacd6 30class TVector3;
31
32class AliAnalyseLeadingTrackUE : public TObject {
33
34 public:
35
36 AliAnalyseLeadingTrackUE(); //constructor
37 AliAnalyseLeadingTrackUE(const AliAnalyseLeadingTrackUE & g); //copy constructor
38 AliAnalyseLeadingTrackUE & operator = (const AliAnalyseLeadingTrackUE & g); //assignment operator
39 virtual ~AliAnalyseLeadingTrackUE(); //virtual destructor
40
41 // Setters
42 void SetParticleSelectionCriteria(Int_t filterbit, Bool_t onlyhadrons, Double_t etacut) { fFilterBit = filterbit;
43 fOnlyHadrons = onlyhadrons;
44 fTrackEtaCut = etacut; }
45 void SetDebug(Int_t debug) { fDebug = debug; }
46 Bool_t ApplyCuts(TObject* track, Int_t filterbit); // Reproduces the cuts of the corresponding bit in the ESD->AOD filtering
47 TObjArray* FindLeadingObjects(TObject* obj); // Looks for leading track or MC particle
48 TObjArray* GetMinMaxRegion(TList* transv1, TList* transv2); // Sorts the transverse regions in MIN and MAX
49 Int_t NParticles(TObject *obj); // Counts tracks or MC particles
b1831bcb 50 AliVParticle* ParticleWithCuts(TObject* obj, Int_t ipart, Bool_t onlyprimaries = kTRUE, Int_t particleSpecies = -1); // Returns track or MC particle at position "ipart" if passes selection criteria
a75aacd6 51 void QSortTracks(TObjArray &a, Int_t first, Int_t last); // Sort by pT an array of AliVParticles
52 TObjArray* SortRegions(const AliVParticle* leading, TObject* obj, TObject* arrayMC, Bool_t onlyprimaries = kTRUE); // Assign particles to towards, away or transverse regions
b1831bcb 53 TObjArray* GetAcceptedParticles(TObject* obj, TObject* arrayMC, Bool_t onlyprimaries = kTRUE, Int_t particleSpecies = -1);
a75aacd6 54 Bool_t TriggerSelection(const TObject* obj); // Select good triggers with AliPhysicsSelection class
55 Bool_t VertexSelection(const TObject* obj, Int_t ntracks, Double_t zed); // Vertex selection: see implementation
56
57 private:
58 Int_t fDebug; // debug flag
59 Int_t fFilterBit; // track selection cuts
60 Bool_t fOnlyHadrons; // consider only charged Pions, Protons and Kaons
61 Double_t fTrackEtaCut; // pseudo-rapidity limit of transverse regions
62 ClassDef(AliAnalyseLeadingTrackUE,0)
63};
64#endif