AliPhysics  b43479f (b43479f)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskParticleRandomizer Class Reference

Particle randomization task. More...

#include <AliAnalysisTaskParticleRandomizer.h>

Inheritance diagram for AliAnalysisTaskParticleRandomizer:

Public Member Functions

 AliAnalysisTaskParticleRandomizer ()
 
virtual ~AliAnalysisTaskParticleRandomizer ()
 
virtual void UserCreateOutputObjects ()
 
virtual void UserExec (Option_t *)
 
virtual void Terminate (Option_t *)
 
void ExecOnce ()
 
void SetRandomizeInPhi (Bool_t val)
 
void SetRandomizeInEta (Bool_t val)
 
void SetRandomizeInTheta (Bool_t val)
 
void SetRandomizeInPt (Bool_t val)
 
void SetPhiMin (Double_t val)
 
void SetPhiMax (Double_t val)
 
void SetEtaMin (Double_t val)
 
void SetEtaMax (Double_t val)
 
void SetPtMin (Double_t val)
 
void SetPtMax (Double_t val)
 
void ActivateJetRemoval (const char *arrName, Double_t threshold, const char *rhoObj)
 
void SetInputArrayName (const char *name)
 
void SetOutputArrayName (const char *name)
 

Private Member Functions

Bool_t IsParticleInJet (Int_t part)
 
Double_t GetExternalRho ()
 
 ClassDef (AliAnalysisTaskParticleRandomizer, 3)
 

Private Attributes

Bool_t fInitialized
 
Bool_t fRandomizeInPhi
 internal state when ExecOnce has been executed More...
 
Bool_t fRandomizeInEta
 randomize the particle's position in azimuth More...
 
Bool_t fRandomizeInTheta
 randomize the particle's position in pseudorap More...
 
Bool_t fRandomizeInPt
 randomize the particle's position in theta More...
 
Double_t fMinPhi
 randomize the particle's position in Pt More...
 
Double_t fMaxPhi
 range for phi for randomization More...
 
Double_t fMinEta
 range for phi for randomization More...
 
Double_t fMaxEta
 range for eta for randomization More...
 
Double_t fMinPt
 range for eta for randomization More...
 
Double_t fMaxPt
 range for Pt for randomization More...
 
TString fInputArrayName
 range for Pt for randomization More...
 
TString fOutputArrayName
 Name of the TClonesArray that will be loaded. More...
 
TClonesArray * fInputArray
 Name of the destination TClonesArray. More...
 
TClonesArray * fOutputArray
 ! Destination TClonesArray More...
 
TString fJetRemovalRhoObj
 
TString fJetRemovalArrayName
 Name of array to rho object. More...
 
TClonesArray * fJetRemovalArray
 Name of the TClonesArray containing jets for removal that will be loaded. More...
 
Double_t fJetRemovalPtThreshold
 
TRandom3 * fRandom
 threshold at which jets given in fInputJetArray will be removed More...
 

Detailed Description

Particle randomization task.

This task clones the tracks and randomize them in a given acceptance Use ActivateJetRemoval() to remove the given jets from the event before randomization

Author
Ruediger Haake ruedi.nosp@m.ger..nosp@m.haake.nosp@m.@cer.nosp@m.n.ch, CERN
Date
Apr 21, 2016

Definition at line 24 of file AliAnalysisTaskParticleRandomizer.h.

Constructor & Destructor Documentation

AliAnalysisTaskParticleRandomizer::AliAnalysisTaskParticleRandomizer ( )

Definition at line 32 of file AliAnalysisTaskParticleRandomizer.cxx.

AliAnalysisTaskParticleRandomizer::~AliAnalysisTaskParticleRandomizer ( )
virtual

Definition at line 39 of file AliAnalysisTaskParticleRandomizer.cxx.

Member Function Documentation

void AliAnalysisTaskParticleRandomizer::ActivateJetRemoval ( const char *  arrName,
Double_t  threshold,
const char *  rhoObj 
)
inline

Definition at line 46 of file AliAnalysisTaskParticleRandomizer.h.

AliAnalysisTaskParticleRandomizer::ClassDef ( AliAnalysisTaskParticleRandomizer  ,
 
)
private
void AliAnalysisTaskParticleRandomizer::ExecOnce ( )

Definition at line 58 of file AliAnalysisTaskParticleRandomizer.cxx.

Referenced by UserExec().

Double_t AliAnalysisTaskParticleRandomizer::GetExternalRho ( )
private

Definition at line 151 of file AliAnalysisTaskParticleRandomizer.cxx.

Referenced by IsParticleInJet().

Bool_t AliAnalysisTaskParticleRandomizer::IsParticleInJet ( Int_t  part)
private

Definition at line 135 of file AliAnalysisTaskParticleRandomizer.cxx.

Referenced by UserExec().

void AliAnalysisTaskParticleRandomizer::SetEtaMax ( Double_t  val)
inline

Definition at line 43 of file AliAnalysisTaskParticleRandomizer.h.

void AliAnalysisTaskParticleRandomizer::SetEtaMin ( Double_t  val)
inline

Definition at line 42 of file AliAnalysisTaskParticleRandomizer.h.

void AliAnalysisTaskParticleRandomizer::SetInputArrayName ( const char *  name)
inline

Definition at line 48 of file AliAnalysisTaskParticleRandomizer.h.

void AliAnalysisTaskParticleRandomizer::SetOutputArrayName ( const char *  name)
inline

Definition at line 49 of file AliAnalysisTaskParticleRandomizer.h.

void AliAnalysisTaskParticleRandomizer::SetPhiMax ( Double_t  val)
inline

Definition at line 41 of file AliAnalysisTaskParticleRandomizer.h.

void AliAnalysisTaskParticleRandomizer::SetPhiMin ( Double_t  val)
inline

Definition at line 40 of file AliAnalysisTaskParticleRandomizer.h.

void AliAnalysisTaskParticleRandomizer::SetPtMax ( Double_t  val)
inline

Definition at line 45 of file AliAnalysisTaskParticleRandomizer.h.

void AliAnalysisTaskParticleRandomizer::SetPtMin ( Double_t  val)
inline

Definition at line 44 of file AliAnalysisTaskParticleRandomizer.h.

void AliAnalysisTaskParticleRandomizer::SetRandomizeInEta ( Bool_t  val)
inline

Definition at line 36 of file AliAnalysisTaskParticleRandomizer.h.

void AliAnalysisTaskParticleRandomizer::SetRandomizeInPhi ( Bool_t  val)
inline

Definition at line 35 of file AliAnalysisTaskParticleRandomizer.h.

void AliAnalysisTaskParticleRandomizer::SetRandomizeInPt ( Bool_t  val)
inline

Definition at line 38 of file AliAnalysisTaskParticleRandomizer.h.

void AliAnalysisTaskParticleRandomizer::SetRandomizeInTheta ( Bool_t  val)
inline

Definition at line 37 of file AliAnalysisTaskParticleRandomizer.h.

virtual void AliAnalysisTaskParticleRandomizer::Terminate ( Option_t *  )
inlinevirtual

Definition at line 31 of file AliAnalysisTaskParticleRandomizer.h.

void AliAnalysisTaskParticleRandomizer::UserCreateOutputObjects ( )
virtual

Definition at line 46 of file AliAnalysisTaskParticleRandomizer.cxx.

void AliAnalysisTaskParticleRandomizer::UserExec ( Option_t *  )
virtual

Definition at line 87 of file AliAnalysisTaskParticleRandomizer.cxx.

Member Data Documentation

Bool_t AliAnalysisTaskParticleRandomizer::fInitialized
private

Definition at line 53 of file AliAnalysisTaskParticleRandomizer.h.

Referenced by ExecOnce(), and UserExec().

TClonesArray* AliAnalysisTaskParticleRandomizer::fInputArray
private

Name of the destination TClonesArray.

! TClonesArray that will be loaded

Definition at line 69 of file AliAnalysisTaskParticleRandomizer.h.

Referenced by ExecOnce(), and UserExec().

TString AliAnalysisTaskParticleRandomizer::fInputArrayName
private

range for Pt for randomization

Definition at line 66 of file AliAnalysisTaskParticleRandomizer.h.

Referenced by ExecOnce(), SetInputArrayName(), and UserCreateOutputObjects().

TClonesArray* AliAnalysisTaskParticleRandomizer::fJetRemovalArray
private

Name of the TClonesArray containing jets for removal that will be loaded.

! TClonesArray containing jets

Definition at line 74 of file AliAnalysisTaskParticleRandomizer.h.

Referenced by ExecOnce(), IsParticleInJet(), and UserExec().

TString AliAnalysisTaskParticleRandomizer::fJetRemovalArrayName
private

Name of array to rho object.

Definition at line 73 of file AliAnalysisTaskParticleRandomizer.h.

Referenced by ActivateJetRemoval(), and ExecOnce().

Double_t AliAnalysisTaskParticleRandomizer::fJetRemovalPtThreshold
private

Definition at line 75 of file AliAnalysisTaskParticleRandomizer.h.

Referenced by ActivateJetRemoval(), and IsParticleInJet().

TString AliAnalysisTaskParticleRandomizer::fJetRemovalRhoObj
private

Definition at line 72 of file AliAnalysisTaskParticleRandomizer.h.

Referenced by ActivateJetRemoval(), and GetExternalRho().

Double_t AliAnalysisTaskParticleRandomizer::fMaxEta
private

range for eta for randomization

Definition at line 62 of file AliAnalysisTaskParticleRandomizer.h.

Referenced by SetEtaMax(), and UserExec().

Double_t AliAnalysisTaskParticleRandomizer::fMaxPhi
private

range for phi for randomization

Definition at line 60 of file AliAnalysisTaskParticleRandomizer.h.

Referenced by SetPhiMax(), and UserExec().

Double_t AliAnalysisTaskParticleRandomizer::fMaxPt
private

range for Pt for randomization

Definition at line 64 of file AliAnalysisTaskParticleRandomizer.h.

Referenced by SetPtMax(), and UserExec().

Double_t AliAnalysisTaskParticleRandomizer::fMinEta
private

range for phi for randomization

Definition at line 61 of file AliAnalysisTaskParticleRandomizer.h.

Referenced by SetEtaMin(), and UserExec().

Double_t AliAnalysisTaskParticleRandomizer::fMinPhi
private

randomize the particle's position in Pt

Definition at line 59 of file AliAnalysisTaskParticleRandomizer.h.

Referenced by SetPhiMin(), and UserExec().

Double_t AliAnalysisTaskParticleRandomizer::fMinPt
private

range for eta for randomization

Definition at line 63 of file AliAnalysisTaskParticleRandomizer.h.

Referenced by SetPtMin(), and UserExec().

TClonesArray* AliAnalysisTaskParticleRandomizer::fOutputArray
private

! Destination TClonesArray

Definition at line 70 of file AliAnalysisTaskParticleRandomizer.h.

Referenced by ExecOnce(), and UserExec().

TString AliAnalysisTaskParticleRandomizer::fOutputArrayName
private

Name of the TClonesArray that will be loaded.

Definition at line 67 of file AliAnalysisTaskParticleRandomizer.h.

Referenced by ExecOnce(), SetOutputArrayName(), and UserCreateOutputObjects().

TRandom3* AliAnalysisTaskParticleRandomizer::fRandom
private

threshold at which jets given in fInputJetArray will be removed

! random number generator

Definition at line 77 of file AliAnalysisTaskParticleRandomizer.h.

Referenced by UserCreateOutputObjects(), and UserExec().

Bool_t AliAnalysisTaskParticleRandomizer::fRandomizeInEta
private

randomize the particle's position in azimuth

Definition at line 55 of file AliAnalysisTaskParticleRandomizer.h.

Referenced by SetRandomizeInEta(), and UserExec().

Bool_t AliAnalysisTaskParticleRandomizer::fRandomizeInPhi
private

internal state when ExecOnce has been executed

Definition at line 54 of file AliAnalysisTaskParticleRandomizer.h.

Referenced by SetRandomizeInPhi(), and UserExec().

Bool_t AliAnalysisTaskParticleRandomizer::fRandomizeInPt
private

randomize the particle's position in theta

Definition at line 57 of file AliAnalysisTaskParticleRandomizer.h.

Referenced by SetRandomizeInPt(), and UserExec().

Bool_t AliAnalysisTaskParticleRandomizer::fRandomizeInTheta
private

randomize the particle's position in pseudorap

Definition at line 56 of file AliAnalysisTaskParticleRandomizer.h.

Referenced by SetRandomizeInTheta(), and UserExec().


The documentation for this class was generated from the following files: