- Welding section on absorber side (LHCVC2C_001)
[u/mrichter/AliRoot.git] / MUON / AliMUONGlobalTrigger.cxx
CommitLineData
a9e2aefa 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
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/*
17
18*/
19
20#include "AliMUONGlobalTrigger.h"
21
22ClassImp(AliMUONGlobalTrigger);
23//----------------------------------------------------------------------
24AliMUONGlobalTrigger::AliMUONGlobalTrigger()
25{
26// constructor
27 fSinglePlusLpt = 0;
28 fSinglePlusHpt = 0;
29 fSinglePlusApt = 0;
30
31 fSingleMinusLpt = 0;
32 fSingleMinusHpt = 0;
33 fSingleMinusApt = 0;
34
35 fSingleUndefLpt = 0;
36 fSingleUndefHpt = 0;
37 fSingleUndefApt = 0;
38
39 fPairUnlikeLpt = 0;
40 fPairUnlikeHpt = 0;
41 fPairUnlikeApt = 0;
42
43 fPairLikeLpt = 0;
44 fPairLikeHpt = 0;
45 fPairLikeApt = 0;
46}
47//----------------------------------------------------------------------
e9b63742 48AliMUONGlobalTrigger::AliMUONGlobalTrigger(const AliMUONGlobalTrigger& MUONGlobalTrig):TObject(MUONGlobalTrig)
49{
50// copy constructor
51 fSinglePlusLpt = MUONGlobalTrig.fSinglePlusLpt;
52 fSinglePlusHpt = MUONGlobalTrig.fSinglePlusHpt;
53 fSinglePlusApt = MUONGlobalTrig.fSinglePlusApt;
54
55 fSingleMinusLpt = MUONGlobalTrig.fSingleMinusLpt;
56 fSingleMinusHpt = MUONGlobalTrig.fSingleMinusHpt;
57 fSingleMinusApt = MUONGlobalTrig.fSingleMinusApt;
58
59 fSingleUndefLpt = MUONGlobalTrig.fSingleUndefLpt;
60 fSingleUndefHpt = MUONGlobalTrig.fSingleUndefHpt;
61 fSingleUndefApt = MUONGlobalTrig.fSingleUndefApt;
62
63 fPairUnlikeLpt = MUONGlobalTrig.fPairUnlikeLpt;
64 fPairUnlikeHpt = MUONGlobalTrig.fPairUnlikeHpt;
65 fPairUnlikeApt = MUONGlobalTrig.fPairUnlikeApt;
66
67 fPairLikeLpt = MUONGlobalTrig.fPairLikeLpt;
68 fPairLikeHpt = MUONGlobalTrig.fPairLikeHpt;
69 fPairLikeApt = MUONGlobalTrig.fPairLikeApt;
70}
71
72//----------------------------------------------------------------------
73AliMUONGlobalTrigger& AliMUONGlobalTrigger::operator=(const AliMUONGlobalTrigger& MUONGlobalTrig)
74{
75// equal operator (useful for non-pointer member in TClonesArray)
76 if (this == &MUONGlobalTrig)
77 return *this;
78
79 fSinglePlusLpt = MUONGlobalTrig.fSinglePlusLpt;
80 fSinglePlusHpt = MUONGlobalTrig.fSinglePlusHpt;
81 fSinglePlusApt = MUONGlobalTrig.fSinglePlusApt;
82
83 fSingleMinusLpt = MUONGlobalTrig.fSingleMinusLpt;
84 fSingleMinusHpt = MUONGlobalTrig.fSingleMinusHpt;
85 fSingleMinusApt = MUONGlobalTrig.fSingleMinusApt;
86
87 fSingleUndefLpt = MUONGlobalTrig.fSingleUndefLpt;
88 fSingleUndefHpt = MUONGlobalTrig.fSingleUndefHpt;
89 fSingleUndefApt = MUONGlobalTrig.fSingleUndefApt;
90
91 fPairUnlikeLpt = MUONGlobalTrig.fPairUnlikeLpt;
92 fPairUnlikeHpt = MUONGlobalTrig.fPairUnlikeHpt;
93 fPairUnlikeApt = MUONGlobalTrig.fPairUnlikeApt;
94
95 fPairLikeLpt = MUONGlobalTrig.fPairLikeLpt;
96 fPairLikeHpt = MUONGlobalTrig.fPairLikeHpt;
97 fPairLikeApt = MUONGlobalTrig.fPairLikeApt;
98
99 return *this;
100}
101
102//----------------------------------------------------------------------
a9e2aefa 103AliMUONGlobalTrigger::AliMUONGlobalTrigger(Int_t *singlePlus,
104 Int_t *singleMinus,
105 Int_t *singleUndef,
106 Int_t *pairUnlike, Int_t *pairLike)
107{
108// Set the Global Trigger object
109 fSinglePlusLpt = singlePlus[0];
110 fSinglePlusHpt = singlePlus[1];
111 fSinglePlusApt = singlePlus[2];
112
113 fSingleMinusLpt = singleMinus[0];
114 fSingleMinusHpt = singleMinus[1];
115 fSingleMinusApt = singleMinus[2];
116
117 fSingleUndefLpt = singleUndef[0];
118 fSingleUndefHpt = singleUndef[1];
119 fSingleUndefApt = singleUndef[2];
120
121 fPairUnlikeLpt = pairUnlike[0];
122 fPairUnlikeHpt = pairUnlike[1];
123 fPairUnlikeApt = pairUnlike[2];
124
125 fPairLikeLpt = pairLike[0];
126 fPairLikeHpt = pairLike[1];
127 fPairLikeApt = pairLike[2];
128}
402fb06e 129
402fb06e 130
131
132
133
134
135
136