]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGGA/GammaConv/AliAnaConvCorrPion.cxx
set magnetic field if not set
[u/mrichter/AliRoot.git] / PWGGA / GammaConv / AliAnaConvCorrPion.cxx
CommitLineData
fc7e3b59 1/**************************************************************************
2 * This file is property of and copyright by the ALICE HLT Project *
3 * ALICE Experiment at CERN, All rights reserved. *
4 * *
5 * Primary Author: Svein Lindal <slindal@fys.uio.no> *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16/// @file AliAnaConvCorrPion.cxx
17/// @author Svein Lindal
18/// @brief Class used to run conversion gamma/pion - hadron/jet analysis
19
20
21
92efd725 22#include "TH2D.h"
fc7e3b59 23#include "AliAnaConvCorrPion.h"
92efd725 24//#include "AliAODTrack.h"
296f4e9c 25#include "AliAODConversionParticle.h"
c15c23b8 26
92efd725 27
fc7e3b59 28
29
30using namespace std;
31ClassImp(AliAnaConvCorrPion)
32
811b0806 33//________________________________________________________________________________
fc7e3b59 34AliAnaConvCorrPion::AliAnaConvCorrPion() :
296f4e9c 35AliAnaConvCorrBase("pion_hadron_corr", "Pion dPhi"),
92efd725 36//hTriggerPtvsMass(NULL),
6252ea9d 37 hTriggerPtvsMass(NULL),
38 fAxisM()
811b0806 39{
fc7e3b59 40 //consctructor
296f4e9c 41 InitMassAxis();
fc7e3b59 42}
811b0806 43//________________________________________________________________________________
296f4e9c 44AliAnaConvCorrPion::AliAnaConvCorrPion(TString name, TString title = "Pion Corr") :
45 AliAnaConvCorrBase(name, title),
92efd725 46 //hTriggerPtvsMass(NULL),
6252ea9d 47 hTriggerPtvsMass(NULL),
296f4e9c 48 fAxisM()
811b0806 49{
fc7e3b59 50 //consctructor
296f4e9c 51 InitMassAxis();
fc7e3b59 52}
53
54
55//________________________________________________________________________________
56AliAnaConvCorrPion::~AliAnaConvCorrPion() {
57 //destructor
58}
3b77b2d1 59
3bff49c3 60//________________________________________________________________________________
296f4e9c 61void AliAnaConvCorrPion::InitMassAxis() {
62 Double_t mbins[7] = {0.1, 0.11, 0.12, 0.15, 0.16, 0.18, 0.2};
63 fAxisM.Set(6, mbins);
64 fAxisM.SetNameTitle("InvMass", "invariant mass");
6252ea9d 65 GetAxisList().AddAt(&fAxisM, 6);
66 GetTrackAxisList().AddAt(&fAxisM, 5);
67 GetTrigAxisList().AddAt(&fAxisM, 4);
296f4e9c 68}
69
811b0806 70///________________________________________________________________________________
71void AliAnaConvCorrPion::CreateHistograms() {
72 //Create histograms
73 CreateBaseHistograms();
92efd725 74
6252ea9d 75 hTriggerPtvsMass = new TH2D(Form("hTriggerPtvsMass_all_%s", GetName()), "Pt vs Mass all pizero",
76 400, 0, .400, GetAxistPt().GetNbins(), GetAxistPt().GetXbins()->GetArray());
77 GetHistograms()->Add(hTriggerPtvsMass);
811b0806 78}
79
296f4e9c 80
811b0806 81///________________________________________________________________________________
6252ea9d 82void AliAnaConvCorrPion::FillTriggerCounters(const AliAODConversionParticle * particle) {
83 hTriggerPtvsMass->Fill(particle->M(), particle->Pt());
fc7e3b59 84}
92efd725 85