- Adding comment lines to class description needed for Root documentation
[u/mrichter/AliRoot.git] / MUON / AliMUONRegionalTrigger.cxx
CommitLineData
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
4b6ea57b 22// -----------------------------
23// Class AliMUONRegionalTrigger
24// -----------------------------
25// Regional Trigger algorithm data outputs
26// Author: Ch. Finck
47dc4ee7 27
28/// \cond CLASSIMP
29ClassImp(AliMUONRegionalTrigger)
30/// \endcond
31
32//----------------------------------------------------------------------
33AliMUONRegionalTrigger::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//----------------------------------------------------------------------
44AliMUONRegionalTrigger::AliMUONRegionalTrigger(const AliMUONRegionalTrigger& theMUONRegionalTrig)
b21698f0 45 : TObject(theMUONRegionalTrig),
46 fId(theMUONRegionalTrig.fId),
47 fLocalMask(theMUONRegionalTrig.fLocalMask),
48 fOutput(theMUONRegionalTrig.fOutput)
47dc4ee7 49{
50/// Copy constructor (useful for TClonesArray)
51
47dc4ee7 52 fLocalOutput[0] = theMUONRegionalTrig.fLocalOutput[0];
53 fLocalOutput[1] = theMUONRegionalTrig.fLocalOutput[1];
47dc4ee7 54
55}
56//----------------------------------------------------------------------
71a2d3aa 57AliMUONRegionalTrigger::~AliMUONRegionalTrigger()
58{
59/// Destructor
60}
61//----------------------------------------------------------------------
47dc4ee7 62AliMUONRegionalTrigger& 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//----------------------------------------------------------------------
85void AliMUONRegionalTrigger::Print(Option_t* opt) const
86{
71a2d3aa 87 ///
88 /// Printing Regional Trigger information
89 ///
47dc4ee7 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