AliPhysics  master (3d17d9d)
AliAnalysisTaskRhoDev.h
Go to the documentation of this file.
1 /************************************************************************************
2  * Copyright (C) 2017, 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 ALIANALYSISTASKRHODEV_H
28 #define ALIANALYSISTASKRHODEV_H
29 
30 #include <utility>
31 
33 
52 
53 public:
58 
65  AliAnalysisTaskRhoDev(const char *name, Bool_t histo=kFALSE);
66 
71 
77 
79  void SetRhoSparse(Bool_t b) { fRhoSparse = b ; }
81 
98  TString nTracks = "usedefault",
99  Double_t trackPtCut = 0.15,
100  TString nClusters = "usedefault",
101  Double_t clusECut = 0.30,
102  TString nRho = "Rho",
103  Double_t jetradius = 0.2,
104  UInt_t acceptance = AliEmcalJet::kTPCfid,
107  Bool_t histo = kTRUE,
108  TString suffix = ""
109  );
110 
111  protected:
117  void CalculateRho();
118 
123 
129 
134  std::pair<AliEmcalJet*, AliEmcalJet*>
135  GetLeadingJets();
136 
140 
143 
144  AliAnalysisTaskRhoDev(const AliAnalysisTaskRhoDev&); // not implemented
145  AliAnalysisTaskRhoDev& operator=(const AliAnalysisTaskRhoDev&); // not implemented
146 
147  ClassDef(AliAnalysisTaskRhoDev, 2);
148 };
149 #endif
double Double_t
Definition: External.C:58
Definition: External.C:236
Double_t fOccupancyFactor
!occupancy correction factor for sparse events
Base class for a task that calculates the UE.
TH2F * fHistOccCorrvsCent
!occupancy correction vs. centrality
void SetExcludeLeadJets(UInt_t n)
AliAnalysisTaskRhoDev & operator=(const AliAnalysisTaskRhoDev &)
void SetExclJetOverlap(TString n)
AliAnalysisTaskRhoDev()
Default constructor. Needed by ROOT I/O.
TPC fiducial acceptance (each eta edge narrowed by jet R)
Definition: AliEmcalJet.h:68
unsigned int UInt_t
Definition: External.C:33
static AliAnalysisTaskRhoDev * AddTaskRhoDev(TString nTracks="usedefault", Double_t trackPtCut=0.15, TString nClusters="usedefault", Double_t clusECut=0.30, TString 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, Bool_t histo=kTRUE, TString suffix="")
Create an instance of this class and add it to the analysis manager.
virtual ~AliAnalysisTaskRhoDev()
Destructor.
Bool_t fRhoSparse
flag to run CMS method as described in https://arxiv.org/abs/1207.2392
TString fExclJetOverlap
name of the jet collection that should be used to reject jets that are considered "signal" ...
Bool_t VerifyContainers()
Verify that the required particle, cluster and jet containers were provided.
Class for a task that calculates the UE.
bool Bool_t
Definition: External.C:53
std::pair< AliEmcalJet *, AliEmcalJet * > GetLeadingJets()
UInt_t fNExclLeadJets
number of leading jets to be excluded from the median calculation