]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONGlobalTrigger.cxx
Loading libraries needed for reading & decoding rawdata
[u/mrichter/AliRoot.git] / MUON / AliMUONGlobalTrigger.cxx
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 /* $Id$ */
18
19 // ------------------
20 // Class AliMUONGlobalTrigger
21 // ------------------
22 // Global Trigger algorithm data output
23 // built from Local and Regional algorithms 
24
25 #include "AliMUONGlobalTrigger.h"
26
27 ClassImp(AliMUONGlobalTrigger)
28 //----------------------------------------------------------------------
29 AliMUONGlobalTrigger::AliMUONGlobalTrigger()
30   : TObject()
31 {
32 // constructor 
33   fSinglePlusLpt = 0;
34   fSinglePlusHpt = 0;
35   fSinglePlusApt = 0;
36   
37   fSingleMinusLpt = 0;
38   fSingleMinusHpt = 0;
39   fSingleMinusApt = 0;
40   
41   fSingleUndefLpt = 0;
42   fSingleUndefHpt = 0;
43   fSingleUndefApt = 0;
44   
45   fPairUnlikeLpt = 0;
46   fPairUnlikeHpt = 0;
47   fPairUnlikeApt = 0;
48   
49   fPairLikeLpt   = 0;
50   fPairLikeHpt   = 0;
51   fPairLikeApt   = 0;
52 }
53 //----------------------------------------------------------------------
54 AliMUONGlobalTrigger::AliMUONGlobalTrigger(const AliMUONGlobalTrigger& theMUONGlobalTrig)
55   : TObject(theMUONGlobalTrig)
56 {
57 // copy constructor
58   fSinglePlusLpt  = theMUONGlobalTrig.fSinglePlusLpt;
59   fSinglePlusHpt  = theMUONGlobalTrig.fSinglePlusHpt;
60   fSinglePlusApt  = theMUONGlobalTrig.fSinglePlusApt;
61   
62   fSingleMinusLpt = theMUONGlobalTrig.fSingleMinusLpt;
63   fSingleMinusHpt = theMUONGlobalTrig.fSingleMinusHpt;
64   fSingleMinusApt = theMUONGlobalTrig.fSingleMinusApt;
65   
66   fSingleUndefLpt = theMUONGlobalTrig.fSingleUndefLpt;
67   fSingleUndefHpt = theMUONGlobalTrig.fSingleUndefHpt;
68   fSingleUndefApt = theMUONGlobalTrig.fSingleUndefApt;
69   
70   fPairUnlikeLpt  = theMUONGlobalTrig.fPairUnlikeLpt;
71   fPairUnlikeHpt  = theMUONGlobalTrig.fPairUnlikeHpt;
72   fPairUnlikeApt  = theMUONGlobalTrig.fPairUnlikeApt;
73   
74   fPairLikeLpt    = theMUONGlobalTrig.fPairLikeLpt;
75   fPairLikeHpt    = theMUONGlobalTrig.fPairLikeHpt;
76   fPairLikeApt    = theMUONGlobalTrig.fPairLikeApt;
77 }
78
79 //----------------------------------------------------------------------
80 AliMUONGlobalTrigger& AliMUONGlobalTrigger::operator=(const AliMUONGlobalTrigger& theMUONGlobalTrig)
81 {
82 // equal operator (useful for non-pointer member in TClonesArray)
83   if (this == &theMUONGlobalTrig)
84     return *this;
85     
86   // base class assignement
87   TObject::operator=(theMUONGlobalTrig);
88
89   fSinglePlusLpt  = theMUONGlobalTrig.fSinglePlusLpt;
90   fSinglePlusHpt  = theMUONGlobalTrig.fSinglePlusHpt;
91   fSinglePlusApt  = theMUONGlobalTrig.fSinglePlusApt;
92   
93   fSingleMinusLpt = theMUONGlobalTrig.fSingleMinusLpt;
94   fSingleMinusHpt = theMUONGlobalTrig.fSingleMinusHpt;
95   fSingleMinusApt = theMUONGlobalTrig.fSingleMinusApt;
96   
97   fSingleUndefLpt = theMUONGlobalTrig.fSingleUndefLpt;
98   fSingleUndefHpt = theMUONGlobalTrig.fSingleUndefHpt;
99   fSingleUndefApt = theMUONGlobalTrig.fSingleUndefApt;
100   
101   fPairUnlikeLpt  = theMUONGlobalTrig.fPairUnlikeLpt;
102   fPairUnlikeHpt  = theMUONGlobalTrig.fPairUnlikeHpt;
103   fPairUnlikeApt  = theMUONGlobalTrig.fPairUnlikeApt;
104   
105   fPairLikeLpt    = theMUONGlobalTrig.fPairLikeLpt;
106   fPairLikeHpt    = theMUONGlobalTrig.fPairLikeHpt;
107   fPairLikeApt    = theMUONGlobalTrig.fPairLikeApt;
108
109   return *this;
110 }
111
112 //----------------------------------------------------------------------
113 AliMUONGlobalTrigger::AliMUONGlobalTrigger(Int_t *singlePlus, 
114                                            Int_t *singleMinus,
115                                            Int_t *singleUndef,
116                                            Int_t *pairUnlike, Int_t *pairLike)
117 {
118 // Set the Global Trigger object
119   fSinglePlusLpt = singlePlus[0];
120   fSinglePlusHpt = singlePlus[1];
121   fSinglePlusApt = singlePlus[2];
122
123   fSingleMinusLpt = singleMinus[0];
124   fSingleMinusHpt = singleMinus[1];
125   fSingleMinusApt = singleMinus[2];
126
127   fSingleUndefLpt = singleUndef[0];
128   fSingleUndefHpt = singleUndef[1];
129   fSingleUndefApt = singleUndef[2];
130
131   fPairUnlikeLpt = pairUnlike[0];
132   fPairUnlikeHpt = pairUnlike[1];
133   fPairUnlikeApt = pairUnlike[2];
134
135   fPairLikeLpt   = pairLike[0];  
136   fPairLikeHpt   = pairLike[1];  
137   fPairLikeApt   = pairLike[2];  
138 }
139
140
141
142
143
144
145
146