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