Converting PWG/TRD to native cmake
[u/mrichter/AliRoot.git] / MUON / MUONtrigger / 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
cdd730d0 18#include <iostream>
47dc4ee7 19
20#include "AliMUONRegionalTrigger.h"
47dc4ee7 21#include "AliLog.h"
22
3d1463c8 23//-----------------------------------------------------------------------------
4b6ea57b 24// Class AliMUONRegionalTrigger
25// -----------------------------
26// Regional Trigger algorithm data outputs
27// Author: Ch. Finck
3d1463c8 28//-----------------------------------------------------------------------------
47dc4ee7 29
cdd730d0 30using std::endl;
31using std::cout;
47dc4ee7 32/// \cond CLASSIMP
33ClassImp(AliMUONRegionalTrigger)
34/// \endcond
35
36//----------------------------------------------------------------------
37AliMUONRegionalTrigger::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//----------------------------------------------------------------------
48AliMUONRegionalTrigger::AliMUONRegionalTrigger(const AliMUONRegionalTrigger& theMUONRegionalTrig)
b21698f0 49 : TObject(theMUONRegionalTrig),
50 fId(theMUONRegionalTrig.fId),
51 fLocalMask(theMUONRegionalTrig.fLocalMask),
52 fOutput(theMUONRegionalTrig.fOutput)
47dc4ee7 53{
54/// Copy constructor (useful for TClonesArray)
55
47dc4ee7 56 fLocalOutput[0] = theMUONRegionalTrig.fLocalOutput[0];
57 fLocalOutput[1] = theMUONRegionalTrig.fLocalOutput[1];
47dc4ee7 58
59}
60//----------------------------------------------------------------------
71a2d3aa 61AliMUONRegionalTrigger::~AliMUONRegionalTrigger()
62{
63/// Destructor
64}
65//----------------------------------------------------------------------
47dc4ee7 66AliMUONRegionalTrigger& 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//----------------------------------------------------------------------
89void AliMUONRegionalTrigger::Print(Option_t* opt) const
90{
71a2d3aa 91 ///
92 /// Printing Regional Trigger information
93 ///
47dc4ee7 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