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