AliPhysics  master (3d17d9d)
AliAnalysisTaskRhoSparse.h
Go to the documentation of this file.
1 /**********************************************************************************
2  * Copyright (C) 2016, Copyright Holders of the ALICE Collaboration *
3  * All rights reserved. *
4  * *
5  * Redistribution and use in source and binary forms, with or without *
6  * modification, are permitted provided that the following conditions are met: *
7  * * Redistributions of source code must retain the above copyright *
8  * notice, this list of conditions and the following disclaimer. *
9  * * Redistributions in binary form must reproduce the above copyright *
10  * notice, this list of conditions and the following disclaimer in the *
11  * documentation and/or other materials provided with the distribution. *
12  * * Neither the name of the <organization> nor the *
13  * names of its contributors may be used to endorse or promote products *
14  * derived from this software without specific prior written permission. *
15  * *
16  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND *
17  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED *
18  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE *
19  * DISCLAIMED. IN NO EVENT SHALL ALICE COLLABORATION BE LIABLE FOR ANY *
20  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES *
21  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; *
22  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND *
23  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *
24  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS *
25  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
26  * *********************************************************************************/
27 #ifndef ALIANALYSISTASKRHOSPARSE_H
28 #define ALIANALYSISTASKRHOSPARSE_H
29 
30 #include "AliAnalysisTaskRhoBase.h"
31 
40 
41  public:
46 
52  AliAnalysisTaskRhoSparse(const char *name, Bool_t histo=kFALSE);
53 
58 
63  const char *nTracks = "usedefault",
64  const char *nClusters = "usedefault",
65  const char *nRho = "Rho",
66  Double_t jetradius = 0.2,
67  UInt_t acceptance = AliEmcalJet::kTPC,
70  const Bool_t histo = kFALSE,
71  const char *nJetsSig = "",
72  const char *cutType = "TPC",
73  Double_t jetptcut = 0.0,
74  Double_t jetareacut = 0.01,
75  Double_t emcareacut = 0,
76  const char *suffix = ""
77  );
78 
84  void SetExcludeOverlapJets(Bool_t input) { fExcludeOverlaps = input ; }
85  void SetRhoCMS(Bool_t cms) { fRhoCMS = cms ; }
86  void SetAreaCalculationDetails(Bool_t inputTPCArea, Bool_t inputExcludeJetArea){ fUseTPCArea = inputTPCArea ; fExcludeAreaExcludedJets = inputExcludeJetArea; }
87 
98 
108 
109  protected:
114  Bool_t Run();
115 
122 
125 
126  ClassDef(AliAnalysisTaskRhoSparse, 2);
127 };
128 #endif
TH2F * fHistOccCorrvsCent
! occupancy correction vs. centrality
double Double_t
Definition: External.C:58
Definition: External.C:236
Bool_t fRhoCMS
flag to run CMS method
virtual ~AliAnalysisTaskRhoSparse()
Destructor.
void UserCreateOutputObjects()
Create output histograms.
static AliAnalysisTaskRhoSparse * AddTaskRhoSparse(const char *nTracks="usedefault", const char *nClusters="usedefault", const char *nRho="Rho", Double_t jetradius=0.2, UInt_t acceptance=AliEmcalJet::kTPC, AliJetContainer::EJetType_t jetType=AliJetContainer::kChargedJet, AliJetContainer::ERecoScheme_t rscheme=AliJetContainer::pt_scheme, const Bool_t histo=kFALSE, const char *nJetsSig="", const char *cutType="TPC", Double_t jetptcut=0.0, Double_t jetareacut=0.01, Double_t emcareacut=0, const char *suffix="")
AliAnalysisTaskRhoSparse()
Dummy constructor, for ROOT I/O.
void SetExcludeOverlapJets(Bool_t input)
Bool_t fUseTPCArea
use the full TPC area for the denominator of the occupancy calculation
Bool_t fExcludeOverlaps
exclude background jets that overlap (share at least one track) with anti-KT signal jets ...
void SetAreaCalculationDetails(Bool_t inputTPCArea, Bool_t inputExcludeJetArea)
Bool_t IsJetOverlapping(AliEmcalJet *jet1, AliEmcalJet *jet2)
Check whether two jets are overlapping.
TPC acceptance.
Definition: AliEmcalJet.h:67
unsigned int UInt_t
Definition: External.C:33
AliAnalysisTaskRhoSparse & operator=(const AliAnalysisTaskRhoSparse &)
not implemented
UInt_t fNExclLeadJets
number of leading jets to be excluded from the median calculation
Calculation of background rho for sparse events (pp and pPb).
Bool_t Run()
Run the analysis.
Represent a jet reconstructed using the EMCal jet framework.
Definition: AliEmcalJet.h:51
bool Bool_t
Definition: External.C:53
Base class for rho calculation.
Bool_t IsJetSignal(AliEmcalJet *jet1)
Select jet as signal jet.