]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG/EMCAL/AliEmcalTriggerSetupInfo.cxx
Add ptr to original AliVTrack.
[u/mrichter/AliRoot.git] / PWG / EMCAL / AliEmcalTriggerSetupInfo.cxx
CommitLineData
00c77045 1// $Id$
2//
3// Emcal particle trigger class, which can contain either
4//
5// Author: J.Kral
6
7#include "AliEmcalTriggerSetupInfo.h"
8#include "AliLog.h"
9
10//_________________________________________________________________________________________________
11AliEmcalTriggerSetupInfo::AliEmcalTriggerSetupInfo() :
12 TNamed(),
001765f7 13 fThresholds(),
14 fThresholdsSimple()
00c77045 15{
16 // Default constructor.
17 for( int i = 0; i < 4; i++ )
18 fThresholds[i] = -1;
001765f7 19 for( int i = 0; i < 4; i++ )
20 fThresholdsSimple[i] = -1;
00c77045 21}
22
23
24//_________________________________________________________________________________________________
25AliEmcalTriggerSetupInfo::AliEmcalTriggerSetupInfo(const AliEmcalTriggerSetupInfo &p) :
26 TNamed(p)
27{
28 // Copy constructor.
29 for( int i = 0; i < 4; i++ )
30 fThresholds[i] = p.fThresholds[i];
001765f7 31 for( int i = 0; i < 4; i++ )
32 fThresholdsSimple[i] = p.fThresholdsSimple[i];
00c77045 33}
34
35//_________________________________________________________________________________________________
36AliEmcalTriggerSetupInfo::~AliEmcalTriggerSetupInfo()
37{
38 // Destructor.
39}
40
41//_________________________________________________________________________________________________
42AliEmcalTriggerSetupInfo &AliEmcalTriggerSetupInfo::operator=(const AliEmcalTriggerSetupInfo &p)
43{
44 // Assignment operator.
45
46 if (this != &p) {
47 for( int i = 0; i < 4; i++ )
48 fThresholds[i] = p.fThresholds[i];
001765f7 49 for( int i = 0; i < 4; i++ )
50 fThresholdsSimple[i] = p.fThresholdsSimple[i];
00c77045 51 }
52
53 return *this;
54}
55
56//_________________________________________________________________________________________________
57void AliEmcalTriggerSetupInfo::Clean(){
58 // cleaner
59 for( int i = 0; i < 4; i++ )
60 fThresholds[i] = -1;
001765f7 61 for( int i = 0; i < 4; i++ )
62 fThresholdsSimple[i] = -1;
00c77045 63}
64