AliPhysics  27f281d (27f281d)
AliAnalysisTaskRhoSparse.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKRHOSPARSE_H
2 #define ALIANALYSISTASKRHOSPARSE_H
3 
4 /**********************************************************************************
5  * Copyright (C) 2016, Copyright Holders of the ALICE Collaboration *
6  * All rights reserved. *
7  * *
8  * Redistribution and use in source and binary forms, with or without *
9  * modification, are permitted provided that the following conditions are met: *
10  * * Redistributions of source code must retain the above copyright *
11  * notice, this list of conditions and the following disclaimer. *
12  * * Redistributions in binary form must reproduce the above copyright *
13  * notice, this list of conditions and the following disclaimer in the *
14  * documentation and/or other materials provided with the distribution. *
15  * * Neither the name of the <organization> nor the *
16  * names of its contributors may be used to endorse or promote products *
17  * derived from this software without specific prior written permission. *
18  * *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND *
20  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED *
21  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE *
22  * DISCLAIMED. IN NO EVENT SHALL ALICE COLLABORATION BE LIABLE FOR ANY *
23  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES *
24  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; *
25  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND *
26  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *
27  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS *
28  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
29  * *********************************************************************************/
30 
41 #include "AliAnalysisTaskRhoBase.h"
42 
44 
45  public:
47  AliAnalysisTaskRhoSparse(const char *name, Bool_t histo=kFALSE);
49 
50 
52  const char *nTracks = "usedefault",
53  const char *nClusters = "usedefault",
54  const char *nRho = "Rho",
55  Double_t jetradius = 0.2,
56  UInt_t acceptance = AliEmcalJet::kTPCfid,
59  const Bool_t histo = kFALSE,
60  const char *nJetsSig = "",
61  const char *cutType = "TPC",
62  Double_t jetptcut = 0.0,
63  Double_t jetareacut = 0.01,
64  Double_t emcareacut = 0,
65  const char *suffix = ""
66  );
67 
70  void SetExcludeOverlapJets(Bool_t input) { fExcludeOverlaps = input ; }
71  void SetRhoCMS(Bool_t cms) { fRhoCMS = cms ; }
74 
75  protected:
76  Bool_t Run();
77 
81 
83 
86 
87  ClassDef(AliAnalysisTaskRhoSparse, 2);
88 };
89 #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
void SetExcludeOverlapJets(Bool_t input)
Bool_t fExcludeOverlaps
exclude background jets that overlap (share at least one track) with anti-KT signal jets ...
Bool_t IsJetOverlapping(AliEmcalJet *jet1, AliEmcalJet *jet2)
TPC fiducial acceptance (each eta edge narrowed by jet R)
Definition: AliEmcalJet.h:68
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
static AliAnalysisTaskRhoSparse * AddTaskRhoSparse(const char *nTracks="usedefault", const char *nClusters="usedefault", const char *nRho="Rho", Double_t jetradius=0.2, UInt_t acceptance=AliEmcalJet::kTPCfid, 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="")
Bool_t Run()
Run function. This is the core function of the analysis and contains the user code. Therefore users have to implement this function.
Represent a jet reconstructed using the EMCal jet framework.
Definition: AliEmcalJet.h:51
bool Bool_t
Definition: External.C:53
Bool_t IsJetSignal(AliEmcalJet *jet1)