]>
Commit | Line | Data |
---|---|---|
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 | |
25 | ClassImp(EMCalTriggerPtAnalysis::AliEMCalPtTaskVTrackSelection) | |
26 | ||
27 | namespace EMCalTriggerPtAnalysis { | |
28 | ||
29 | AliEMCalPtTaskVTrackSelection::AliEMCalPtTaskVTrackSelection() : | |
30 | TObject(), | |
31 | fListOfTracks(NULL) | |
32 | { | |
33 | /* | |
34 | * Default constructor | |
35 | */ | |
36 | } | |
37 | ||
38 | AliEMCalPtTaskVTrackSelection::AliEMCalPtTaskVTrackSelection(const AliEMCalPtTaskVTrackSelection& ref): | |
39 | TObject(ref), | |
40 | fListOfTracks(NULL) | |
41 | { | |
42 | if(ref.fListOfTracks) fListOfTracks = new TObjArray(*(ref.fListOfTracks)); | |
43 | } | |
44 | ||
45 | AliEMCalPtTaskVTrackSelection& 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 | ||
54 | AliEMCalPtTaskVTrackSelection::~AliEMCalPtTaskVTrackSelection() { | |
55 | if(fListOfTracks) delete fListOfTracks; | |
56 | } | |
57 | ||
58 | } /* namespace EMCalTriggerPtAnalysis */ |