]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGJE/EMCALJetTasks/Tracks/AliEMCalPtTaskVTrackSelection.cxx
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGJE / EMCALJetTasks / Tracks / AliEMCalPtTaskVTrackSelection.cxx
CommitLineData
b12f3a2c 1/**************************************************************************
08f5b3a3 2 * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
b12f3a2c 3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 * Interface for track selection for the analysis of charged hadrons in
17 * EMCal-triggered events
18 *
19 * Author:
20 * Markus Fasel
21 */
22#include <TObjArray.h>
08f5b3a3 23#include "AliEMCalPtTaskVTrackSelection.h"
b12f3a2c 24
25ClassImp(EMCalTriggerPtAnalysis::AliEMCalPtTaskVTrackSelection)
26
27namespace EMCalTriggerPtAnalysis {
28
29AliEMCalPtTaskVTrackSelection::AliEMCalPtTaskVTrackSelection() :
30 TObject(),
31 fListOfTracks(NULL)
32{
33 /*
34 * Default constructor
35 */
36}
37
38AliEMCalPtTaskVTrackSelection::AliEMCalPtTaskVTrackSelection(const AliEMCalPtTaskVTrackSelection& ref):
39 TObject(ref),
40 fListOfTracks(NULL)
41{
42 if(ref.fListOfTracks) fListOfTracks = new TObjArray(*(ref.fListOfTracks));
43}
44
45AliEMCalPtTaskVTrackSelection& AliEMCalPtTaskVTrackSelection::operator=(const AliEMCalPtTaskVTrackSelection& ref) {
46 TObject::operator=(ref);
47 if(this != &ref){
48 this->~AliEMCalPtTaskVTrackSelection();
49 if(ref.fListOfTracks) fListOfTracks = new TObjArray(*(ref.fListOfTracks));
50 }
51 return *this;
52}
53
54AliEMCalPtTaskVTrackSelection::~AliEMCalPtTaskVTrackSelection() {
55 if(fListOfTracks) delete fListOfTracks;
56}
57
58} /* namespace EMCalTriggerPtAnalysis */