1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
20 #include "AliMUONRegionalTrigger.h"
23 //-----------------------------------------------------------------------------
24 // Class AliMUONRegionalTrigger
25 // -----------------------------
26 // Regional Trigger algorithm data outputs
28 //-----------------------------------------------------------------------------
33 ClassImp(AliMUONRegionalTrigger)
36 //----------------------------------------------------------------------
37 AliMUONRegionalTrigger::AliMUONRegionalTrigger()
43 /// Default constructor
44 fLocalOutput[0] = fLocalOutput[1] = 0;
47 //----------------------------------------------------------------------
48 AliMUONRegionalTrigger::AliMUONRegionalTrigger(const AliMUONRegionalTrigger& theMUONRegionalTrig)
49 : TObject(theMUONRegionalTrig),
50 fId(theMUONRegionalTrig.fId),
51 fLocalMask(theMUONRegionalTrig.fLocalMask),
52 fOutput(theMUONRegionalTrig.fOutput)
54 /// Copy constructor (useful for TClonesArray)
56 fLocalOutput[0] = theMUONRegionalTrig.fLocalOutput[0];
57 fLocalOutput[1] = theMUONRegionalTrig.fLocalOutput[1];
60 //----------------------------------------------------------------------
61 AliMUONRegionalTrigger::~AliMUONRegionalTrigger()
65 //----------------------------------------------------------------------
66 AliMUONRegionalTrigger& AliMUONRegionalTrigger::operator=(const AliMUONRegionalTrigger& theMUONRegionalTrig)
68 /// Assigment operator;
69 /// equal operator (useful for non-pointer member in TClonesArray)
71 if (this == &theMUONRegionalTrig)
74 // base class assignement
75 TObject::operator=(theMUONRegionalTrig);
77 fId = theMUONRegionalTrig.fId;
78 fLocalMask = theMUONRegionalTrig.fLocalMask;
79 fLocalOutput[0] = theMUONRegionalTrig.fLocalOutput[0];
80 fLocalOutput[1] = theMUONRegionalTrig.fLocalOutput[1];
81 fOutput = theMUONRegionalTrig.fOutput;
88 //----------------------------------------------------------------------
89 void AliMUONRegionalTrigger::Print(Option_t* opt) const
92 /// Printing Regional Trigger information
97 if ( sopt.Contains("FULL") ) {
99 printf("<AliMUONRegionalTrigger> Id %d localMask %d localOutputs %d %d output %d\n",
100 fId, fLocalMask, fLocalOutput[0], fLocalOutput[1], fOutput);