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