AliPhysics  ced2227 (ced2227)
AliJetEmbeddingFromPYTHIATask.h
Go to the documentation of this file.
1 
6 #ifndef ALIJETEMBEDDINGFROMPYTHIATASK_H
7 #define ALIJETEMBEDDINGFROMPYTHIATASK_H
8 
10 #include <TArrayD.h>
11 
12 template<class T>
13 class TParameter;
14 
15 class TString;
16 class TH1;
17 class THashTable;
18 
20  public:
22  AliJetEmbeddingFromPYTHIATask(const char *name, Bool_t drawqa=kFALSE);
24 
27 
28  void SetPYTHIAPath(const char* p) { fPYTHIAPath = p ; }
29  void SetPtHardBinScaling(Int_t n, Double_t *scaling) { new (&fPtHardBinScaling) TArrayD(n, scaling) ; }
30  void SetAnchorRun(Int_t r) { fAnchorRun = r ; }
32  void SetFileTable(THashTable *t) { fFileTable = t ; }
35  void SetDebugEmbedding(Bool_t d=kTRUE) { fDebugEmbedding = d ; }
36 
37  protected:
38  Bool_t ExecOnce() ;// intialize task
39  Bool_t GetNextEntry() ;// get next entry in current tree
40  Int_t GetRandomPtHardBin() ;// get a radnom pt hard bin according to fPtHardBinScaling
41  TFile *GetNextFile() ;// get next file
42 
43  TString fPYTHIAPath ;// Path of the PYTHIA production
44  TArrayD fPtHardBinScaling ;// Pt hard bin scaling
45  Bool_t fLHC11hAnchorRun ;// LHC11h anchor runs
46  Int_t fAnchorRun ;// Anchor run
47  THashTable *fFileTable ;// Table of allowed/vetoed files
48  Bool_t fUseAsVetoTable ;// Use fFileTable as a veto table
49  Int_t fMinEntriesPerPtHardBin ;// Minimum number of embedded events before changing pt hard bin, if < 0 change pt hard bin only when reach eof
53  Bool_t fDebugEmbedding ;// Debug embedding by embedding files in order. Do _not_ use on the grid! (It will embed the same files for each job)
54 
56 
57  private:
60 
61  ClassDef(AliJetEmbeddingFromPYTHIATask, 4) // Jet embedding from PYTHIA task
62 };
63 #endif
double Double_t
Definition: External.C:58
Class for Pythia event embedding into data.
Bool_t ExecOnce()
generate a particle with random eta,phi, and correlated pt,mass values
int Int_t
Definition: External.C:63
TParameter< int > * fPtHardBinParam
Pt hard bin of the current open file.
AliJetEmbeddingFromPYTHIATask & operator=(const AliJetEmbeddingFromPYTHIATask &)
bool Bool_t
Definition: External.C:53
Definition: External.C:196
Bool_t fDebugEmbedding
Number of event embedded from the current pt hard bin.
Class for embedding a AOD event into a data event.
void SetPtHardBinScaling(Int_t n, Double_t *scaling)