AliPhysics  d2444a6 (d2444a6)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
25  Bool_t UserNotify();
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 ; }
31  void SetLHC11hAnchorRuns(Bool_t a=kTRUE) { fLHC11hAnchorRun = a ; }
32  void SetFileTable(THashTable *t) { fFileTable = t ; }
33  void SetUseAsVetoTable(Bool_t v) { fUseAsVetoTable = v ; }
35 
36  protected:
37  Bool_t ExecOnce() ;// intialize task
38  Bool_t GetNextEntry() ;// get next entry in current tree
39  Int_t GetRandomPtHardBin() ;// get a radnom pt hard bin according to fPtHardBinScaling
40  TFile *GetNextFile() ;// get next file
41 
42  TString fPYTHIAPath ;// Path of the PYTHIA production
43  TArrayD fPtHardBinScaling ;// Pt hard bin scaling
44  Bool_t fLHC11hAnchorRun ;// LHC11h anchor runs
45  Int_t fAnchorRun ;// Anchor run
46  THashTable *fFileTable ;// Table of allowed/vetoed files
47  Bool_t fUseAsVetoTable ;// Use fFileTable as a veto table
48  Int_t fMinEntriesPerPtHardBin ;// Minimum number of embedded events before changing pt hard bin, if < 0 change pt hard bin only when reach eof
52 
54 
55  private:
58 
59  ClassDef(AliJetEmbeddingFromPYTHIATask, 4) // Jet embedding from PYTHIA task
60 };
61 #endif
Class for Pythia event embedding into data.
TH1 * fHistPtHardBins
Number of event embedded from the current pt hard bin.
Bool_t ExecOnce()
generate a particle with random eta,phi, and correlated pt,mass values
TParameter< int > * fPtHardBinParam
Pt hard bin of the current open file.
AliJetEmbeddingFromPYTHIATask & operator=(const AliJetEmbeddingFromPYTHIATask &)
Class for embedding a AOD event into a data event.
void SetPtHardBinScaling(Int_t n, Double_t *scaling)