]>
Commit | Line | Data |
---|---|---|
7fac8669 | 1 | // $Id: AliAnalysisTaskHLTEMCAL.cxx 40285 2010-04-09 14:04:51Z kkanaki $ |
2 | ||
3 | //************************************************************************** | |
4 | //* This file is property of and copyright by the ALICE HLT Project * | |
5 | //* ALICE Experiment at CERN, All rights reserved. * | |
6 | //* * | |
7 | //* Primary Authors: Zhongbao Yin <zbyin@mail.ccnu.edu.cn>, * | |
8 | //* Kalliopi Kanaki <Kalliopi.Kanaki@ift.uib.no> * | |
9 | //* Svein Lindal <svein.lindal@gmail.com> * | |
10 | //* for The ALICE HLT Project. * | |
11 | //* * | |
12 | //* Permission to use, copy, modify and distribute this software and its * | |
13 | //* documentation strictly for non-commercial purposes is hereby granted * | |
14 | //* without fee, provided that the above copyright notice appears in all * | |
15 | //* copies and that both the copyright notice and this permission notice * | |
16 | //* appear in the supporting documentation. The authors make no claims * | |
17 | //* about the suitability of this software for any purpose. It is * | |
18 | //* provided "as is" without express or implied warranty. * | |
19 | //************************************************************************** | |
20 | ||
21 | /** @file AliAnalysisTaskHLTEMCAL.cxx | |
22 | @author Zhongbao Yin, Kalliopi Kanaki, Svein Lindal | |
23 | @date | |
24 | @brief | |
25 | */ | |
26 | ||
27 | #include <iostream> | |
28 | ||
29 | #include "TChain.h" | |
30 | #include "TTree.h" | |
31 | #include "TH1F.h" | |
32 | #include "TH2F.h" | |
33 | #include "TCanvas.h" | |
34 | #include "TVector3.h" | |
35 | #include "TString.h" | |
36 | #include "TObjArray.h" | |
37 | #include "TFile.h" | |
38 | ||
39 | #include "AliESDEvent.h" | |
40 | #include "AliESDRun.h" | |
41 | #include "AliESDInputHandler.h" | |
42 | #include "AliESDCaloCluster.h" | |
43 | ||
44 | #include "AliAnalysisTask.h" | |
45 | #include "AliAnalysisManager.h" | |
46 | #include "AliAnalysisTaskHLTEMCAL.h" | |
47 | ||
48 | ||
49 | ClassImp(AliAnalysisTaskHLTEMCAL) | |
50 | ||
51 | ||
52 | //=========================================================================================== | |
53 | ||
54 | AliAnalysisTaskHLTEMCAL::AliAnalysisTaskHLTEMCAL() : AliAnalysisTaskHLTCalo() | |
55 | { | |
56 | // Constructor | |
57 | } | |
58 | AliAnalysisTaskHLTEMCAL::AliAnalysisTaskHLTEMCAL(const char *name) : AliAnalysisTaskHLTCalo(name) | |
59 | { | |
60 | // Constructor | |
61 | } | |
62 | ||
63 | void AliAnalysisTaskHLTEMCAL::CreateSpecificStuff(const TList * fOutputList){ | |
64 | //Create stuff specific to EMCAL class. | |
65 | if(fOutputList) | |
66 | return; | |
67 | else | |
68 | fOutputList = new TList(); | |
69 | return; | |
70 | } | |
71 | ||
72 | ||
73 | void AliAnalysisTaskHLTEMCAL::DoSpecificStuff(const AliESDEvent * evESD, const AliESDEvent * evHLTESD) const { | |
74 | //Do EMCAL specific tests | |
75 | if(evESD || evHLTESD) | |
76 | return; | |
77 | else | |
78 | return; | |
79 | } | |
80 | ||
81 | Int_t AliAnalysisTaskHLTEMCAL::GetClusters(AliESDEvent * event, TRefArray * clusters) { | |
82 | return event->GetEMCALClusters(clusters); | |
83 | } | |
84 | ||
85 | Bool_t AliAnalysisTaskHLTEMCAL::IsThisDetector(AliESDCaloCluster * cluster) { | |
86 | return cluster->IsEMCAL(); | |
87 | } |