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