add setter
authormverweij <marta.verweij@cern.ch>
Tue, 25 Mar 2014 13:09:47 +0000 (14:09 +0100)
committerhristov <Peter.Hristov@cern.ch>
Thu, 27 Mar 2014 15:27:24 +0000 (16:27 +0100)
PWGJE/EMCALJetTasks/UserTasks/AliAnalysisTaskEmcalDiJetAna.cxx
PWGJE/EMCALJetTasks/UserTasks/AliAnalysisTaskEmcalDiJetBase.cxx
PWGJE/EMCALJetTasks/UserTasks/AliAnalysisTaskEmcalDiJetBase.h
PWGJE/EMCALJetTasks/UserTasks/AliAnalysisTaskEmcalDiJetResponse.cxx

index c69095a..59ba028 100644 (file)
@@ -403,9 +403,11 @@ void AliAnalysisTaskEmcalDiJetAna::CorrelateTwoJets(const Int_t type) {
     if(!jetAssoc)
       continue;
 
-    if(type==0 || type==1) {
-      if(GetJetPt(jetAssoc,typea)>jetTrigPt)
-       continue;
+    if(fDoPtBias) {
+      if(type==0 || type==1) {
+       if(GetJetPt(jetAssoc,typea)>jetTrigPt)
+         continue;
+      }
     }
 
     FillDiJetHistos(jetTrig,jetAssoc, type);
index b4176af..c856ce5 100644 (file)
@@ -51,6 +51,7 @@ AliAnalysisTaskEmcalDiJetBase::AliAnalysisTaskEmcalDiJetBase() :
   fDoFullCharged(kTRUE),
   fDoFullFull(kFALSE),
   fPtMinTriggerJet(10.),
+  fDoPtBias(kTRUE),
   fMinFractionShared(0.5),
   fMatchingDone(kFALSE),
   faFullFracIndex(0),
@@ -83,6 +84,7 @@ AliAnalysisTaskEmcalDiJetBase::AliAnalysisTaskEmcalDiJetBase(const char *name) :
   fDoFullCharged(kTRUE),
   fDoFullFull(kFALSE),
   fPtMinTriggerJet(10.),
+  fDoPtBias(kTRUE),
   fMinFractionShared(0.5),
   fMatchingDone(kFALSE),
   faFullFracIndex(0),
index 540ee59..2c0906c 100644 (file)
@@ -56,7 +56,8 @@ class AliAnalysisTaskEmcalDiJetBase : public AliAnalysisTaskEmcalJet {
   void SetDoFullCharged(Bool_t b)           { fDoFullCharged    = b;}
   void SetDoFullFull(Bool_t b)              { fDoFullFull       = b;}
 
-  void SetPtMinTriggerJet(Double_t ptmin)  {fPtMinTriggerJet = ptmin;}
+  void SetPtMinTriggerJet(Double_t ptmin)   { fPtMinTriggerJet  = ptmin;}
+  void SetDoPtBias(Bool_t b)                { fDoPtBias         = b;}
 
   void SetMinSharedFraction(Double_t f)     { fMinFractionShared = f;}
 
@@ -105,6 +106,7 @@ class AliAnalysisTaskEmcalDiJetBase : public AliAnalysisTaskEmcalJet {
   Bool_t            fDoFullFull;                //  do full-full ana
 
   Double_t          fPtMinTriggerJet;           //  minimum pT of trigger jet
+  Bool_t            fDoPtBias;                  //  pT trigger jet > pT assoc jet
   Double_t          fMinFractionShared;         //  minimum fraction charged pT
 
   Bool_t            fMatchingDone;              // flag to indicate if matching is done or not
@@ -118,6 +120,6 @@ class AliAnalysisTaskEmcalDiJetBase : public AliAnalysisTaskEmcalJet {
   AliAnalysisTaskEmcalDiJetBase(const AliAnalysisTaskEmcalDiJetBase&);            // not implemented
   AliAnalysisTaskEmcalDiJetBase &operator=(const AliAnalysisTaskEmcalDiJetBase&); // not implemented
 
-  ClassDef(AliAnalysisTaskEmcalDiJetBase, 5) // dijet base task
+  ClassDef(AliAnalysisTaskEmcalDiJetBase, 6) // dijet base task
 };
 #endif
index bd679fb..09c93a6 100644 (file)
@@ -414,7 +414,6 @@ void AliAnalysisTaskEmcalDiJetResponse::CorrelateTwoJets(const Int_t type) {
        fh1TriggersLostCharged->Fill(jetTrigPtMC);
       if(type==2)
        fh1TriggersLostFull->Fill(jetTrigPtMC);
-      
       continue;
     }
 
@@ -440,9 +439,11 @@ void AliAnalysisTaskEmcalDiJetResponse::CorrelateTwoJets(const Int_t type) {
       continue;
     }
 
-    if(type==0 || type==1) {
-      if(GetJetPt(jetAssocDet,typea)>GetJetPt(jetTrigDet,typet))
-       continue;
+    if(fDoPtBias) {
+      if(type==0 || type==1) {
+       if(GetJetPt(jetAssocDet,typea)>GetJetPt(jetTrigDet,typet))
+         continue;
+      }
     }
 
     FillDiJetResponse(jetTrigMC,jetAssocMC,jetTrigDet,jetAssocDet,type);