]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGJE/AliAnalysisTaskJetResponseV2.h
method Destroy added to AliGeomManager for clean removal of geometry
[u/mrichter/AliRoot.git] / PWGJE / AliAnalysisTaskJetResponseV2.h
index b847223b4bb4667d8c9bec204a5027408917098e..fee03c6fb21090d57d825d45595ce4c2cafad74d 100644 (file)
@@ -1,12 +1,23 @@
 #ifndef ALIANALYSISTASKJETRESPONSEV2_H
 #define ALIANALYSISTASKJETRESPONSEV2_H
 
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+//
+// task compares jets in two branches,
+// written for analysis of jet embedding in HI events
+//
+
 class TH1F;
+class TH1I;
 class TH2F;
 class TH3F;
 class THnSparse;
 class AliESDEvent;
 class AliAODEvent;
+class AliAODJet;
+class AliAODExtension;
 
 #include "AliAnalysisTaskSE.h"
 #include "AliVEvent.h"
@@ -47,8 +58,9 @@ public:
    virtual Float_t  GetJetPtFractionMin() const { return fJetPtFractionMin; }
    virtual Int_t    GetNMatchJets() const { return fNMatchJets; }
 
-   virtual void     SetBranchNames(const TString &branch1, const TString &branch2);
+   virtual void     SetBranchNames(const TString &branch1= "", const TString &branch2 = "", const TString &branch3 = "");
    virtual void     SetBackgroundBranch(TString &branch) { fBackgroundBranch = branch;}
+   virtual void     SetNonStdFile(char* c){fNonStdFile = c;} 
    virtual void     SetIsPbPb(Bool_t b=kTRUE) { fIsPbPb = b; }
    virtual void     SetOfflineTrgMask(AliVEvent::EOfflineTriggerTypes mask) { fOfflineTrgMask = mask; }
    virtual void     SetMinContribVtx(Int_t n) { fMinContribVtx = n; }
@@ -74,22 +86,27 @@ public:
    virtual void     SetFillJetsEta(Bool_t b) { fbJetsEta = b; }
    virtual void     SetFillJetsPhi(Bool_t b) { fbJetsPhi = b; }
    virtual void     SetFillJetsArea(Bool_t b) { fbJetsArea = b; }
+   virtual void     SetFillJets3Branches(Bool_t b) { fbJets3Branches = b; }
    virtual void     SetFillJetsBeforeCut1(Bool_t b) { fbJetsBeforeCut1 = b; }
    virtual void     SetFillJetsBeforeCut2(Bool_t b) { fbJetsBeforeCut2 = b; }
    virtual void     SetKeepJets(Bool_t b = kTRUE) { fKeepJets = b; }
+   virtual void     SetMatchMaxDist(Double_t max) { fMatchMaxDist = max;}
 
 private:
    // ESD/AOD events
-   AliESDEvent *fESD;    //! ESD object
-   AliAODEvent *fAOD;    //! AOD event
+   AliESDEvent      *fESD;    //! ESD object
+   AliAODEvent      *fAOD;    //! AOD event
+   AliAODEvent      *fAODOut; //! AOD event out
+   AliAODExtension  *fAODExtension; //! where we take the jets from can be input or output AOD
 
    // jets to compare
-   TString fJetBranchName[2]; //  name of jet branches to compare
-   TList *fListJets[2];       //! jet lists
+   TString fJetBranchName[3]; //  name of jet branches to compare
+   TList *fListJets[3];       //! jet lists
 
-   TString fBackgroundBranch;
+   TString       fNonStdFile; // name of delta aod file to catch the extension
+   TString fBackgroundBranch;  // branch of external background
 
-   // event selection
+    // event selection
    Bool_t fIsPbPb;         // is Pb-Pb (fast embedding) or p-p (detector response)
    AliVEvent::EOfflineTriggerTypes fOfflineTrgMask; // mask of offline triggers to accept
    Int_t   fMinContribVtx; // minimum number of track contributors for primary vertex
@@ -112,7 +129,7 @@ private:
 
 
    // output objects
-   const Int_t fkNbranches;                   //! number of branches to be read
+   Int_t fkNbranches;                   //! number of branches to be read
    const Int_t fkEvtClasses;                  //! number of event classes
    TList *fOutputList;                        //! output data container
    Bool_t fbEvent;                            // fill fhnEvent
@@ -123,6 +140,7 @@ private:
    Bool_t fbJetsEta;                          // fill fhnJetsEta
    Bool_t fbJetsPhi;                          // fill fhnJetsEta
    Bool_t fbJetsArea;                         // fill fhnJetsArea
+   Bool_t fbJets3Branches;                         // fill fhnJets3Branches
    Bool_t fbJetsBeforeCut1;                   // fill fhnJetsBeforeCut1
    Bool_t fbJetsBeforeCut2;                   // fill fhnJetsBeforeCut2
    TH1I  *fHistEvtSelection;                  //! event selection statistic
@@ -136,13 +154,14 @@ private:
    THnSparse *fhnJetsEta;                     //! variables per jet
    THnSparse *fhnJetsPhi;                     //! variables per jet
    THnSparse *fhnJetsArea;                    //! variables per jet
-   THnSparse *fhnJetsBeforeCut1;               //! variables per jet before acceptance cut
-   THnSparse *fhnJetsBeforeCut2;               //! variables per jet before acceptance cut
+   THnSparse *fhnJets3Branches;               //! variables per jet
+   THnSparse *fhnJetsBeforeCut1;              //! variables per jet before acceptance cut
+   THnSparse *fhnJetsBeforeCut2;              //! variables per jet before acceptance cut
 
    AliAnalysisTaskJetResponseV2(const AliAnalysisTaskJetResponseV2&); // not implemented
    AliAnalysisTaskJetResponseV2& operator=(const AliAnalysisTaskJetResponseV2&); // not implemented
 
-   ClassDef(AliAnalysisTaskJetResponseV2, 4);
+   ClassDef(AliAnalysisTaskJetResponseV2, 6);
 };
 
 #endif