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