]>
Commit | Line | Data |
---|---|---|
47dc4ee7 | 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 | ||
19 | #include "AliMUONRegionalTrigger.h" | |
47dc4ee7 | 20 | #include "AliLog.h" |
21 | ||
3d1463c8 | 22 | //----------------------------------------------------------------------------- |
4b6ea57b | 23 | // Class AliMUONRegionalTrigger |
24 | // ----------------------------- | |
25 | // Regional Trigger algorithm data outputs | |
26 | // Author: Ch. Finck | |
3d1463c8 | 27 | //----------------------------------------------------------------------------- |
47dc4ee7 | 28 | |
29 | /// \cond CLASSIMP | |
30 | ClassImp(AliMUONRegionalTrigger) | |
31 | /// \endcond | |
32 | ||
33 | //---------------------------------------------------------------------- | |
34 | AliMUONRegionalTrigger::AliMUONRegionalTrigger() | |
35 | : TObject(), | |
36 | fId(0), | |
37 | fLocalMask(0), | |
38 | fOutput(0) | |
39 | { | |
40 | /// Default constructor | |
41 | fLocalOutput[0] = fLocalOutput[1] = 0; | |
42 | ||
43 | } | |
44 | //---------------------------------------------------------------------- | |
45 | AliMUONRegionalTrigger::AliMUONRegionalTrigger(const AliMUONRegionalTrigger& theMUONRegionalTrig) | |
b21698f0 | 46 | : TObject(theMUONRegionalTrig), |
47 | fId(theMUONRegionalTrig.fId), | |
48 | fLocalMask(theMUONRegionalTrig.fLocalMask), | |
49 | fOutput(theMUONRegionalTrig.fOutput) | |
47dc4ee7 | 50 | { |
51 | /// Copy constructor (useful for TClonesArray) | |
52 | ||
47dc4ee7 | 53 | fLocalOutput[0] = theMUONRegionalTrig.fLocalOutput[0]; |
54 | fLocalOutput[1] = theMUONRegionalTrig.fLocalOutput[1]; | |
47dc4ee7 | 55 | |
71a2d3aa | 56 | } |
57 | //---------------------------------------------------------------------- | |
58 | AliMUONRegionalTrigger::~AliMUONRegionalTrigger() | |
59 | { | |
60 | /// Destructor | |
47dc4ee7 | 61 | } |
62 | //---------------------------------------------------------------------- | |
63 | AliMUONRegionalTrigger& AliMUONRegionalTrigger::operator=(const AliMUONRegionalTrigger& theMUONRegionalTrig) | |
64 | { | |
65 | /// Assigment operator; | |
66 | /// equal operator (useful for non-pointer member in TClonesArray) | |
67 | ||
68 | if (this == &theMUONRegionalTrig) | |
69 | return *this; | |
70 | ||
71 | // base class assignement | |
72 | TObject::operator=(theMUONRegionalTrig); | |
73 | ||
74 | fId = theMUONRegionalTrig.fId; | |
75 | fLocalMask = theMUONRegionalTrig.fLocalMask; | |
76 | fLocalOutput[0] = theMUONRegionalTrig.fLocalOutput[0]; | |
77 | fLocalOutput[1] = theMUONRegionalTrig.fLocalOutput[1]; | |
78 | fOutput = theMUONRegionalTrig.fOutput; | |
79 | ||
80 | return *this; | |
81 | } | |
82 | ||
83 | ||
84 | ||
85 | //---------------------------------------------------------------------- | |
86 | void AliMUONRegionalTrigger::Print(Option_t* opt) const | |
87 | { | |
71a2d3aa | 88 | /// |
89 | /// Printing Regional Trigger information | |
90 | /// | |
47dc4ee7 | 91 | TString sopt(opt); |
92 | sopt.ToUpper(); | |
93 | ||
94 | if ( sopt.Contains("FULL") ) { | |
95 | ||
96 | printf("<AliMUONRegionalTrigger> Id %d localMask %d localOutputs %d %d output %d\n", | |
97 | fId, fLocalMask, fLocalOutput[0], fLocalOutput[1], fOutput); | |
98 | ||
99 | } | |
100 | } | |
101 |