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 **************************************************************************/
19 #include "AliMUONRegionalTrigger.h"
22 //-----------------------------------------------------------------------------
23 // Class AliMUONRegionalTrigger
24 // -----------------------------
25 // Regional Trigger algorithm data outputs
27 //-----------------------------------------------------------------------------
30 ClassImp(AliMUONRegionalTrigger)
33 //----------------------------------------------------------------------
34 AliMUONRegionalTrigger::AliMUONRegionalTrigger()
40 /// Default constructor
41 fLocalOutput[0] = fLocalOutput[1] = 0;
44 //----------------------------------------------------------------------
45 AliMUONRegionalTrigger::AliMUONRegionalTrigger(const AliMUONRegionalTrigger& theMUONRegionalTrig)
46 : TObject(theMUONRegionalTrig),
47 fId(theMUONRegionalTrig.fId),
48 fLocalMask(theMUONRegionalTrig.fLocalMask),
49 fOutput(theMUONRegionalTrig.fOutput)
51 /// Copy constructor (useful for TClonesArray)
53 fLocalOutput[0] = theMUONRegionalTrig.fLocalOutput[0];
54 fLocalOutput[1] = theMUONRegionalTrig.fLocalOutput[1];
57 //----------------------------------------------------------------------
58 AliMUONRegionalTrigger::~AliMUONRegionalTrigger()
62 //----------------------------------------------------------------------
63 AliMUONRegionalTrigger& AliMUONRegionalTrigger::operator=(const AliMUONRegionalTrigger& theMUONRegionalTrig)
65 /// Assigment operator;
66 /// equal operator (useful for non-pointer member in TClonesArray)
68 if (this == &theMUONRegionalTrig)
71 // base class assignement
72 TObject::operator=(theMUONRegionalTrig);
74 fId = theMUONRegionalTrig.fId;
75 fLocalMask = theMUONRegionalTrig.fLocalMask;
76 fLocalOutput[0] = theMUONRegionalTrig.fLocalOutput[0];
77 fLocalOutput[1] = theMUONRegionalTrig.fLocalOutput[1];
78 fOutput = theMUONRegionalTrig.fOutput;
85 //----------------------------------------------------------------------
86 void AliMUONRegionalTrigger::Print(Option_t* opt) const
89 /// Printing Regional Trigger information
94 if ( sopt.Contains("FULL") ) {
96 printf("<AliMUONRegionalTrigger> Id %d localMask %d localOutputs %d %d output %d\n",
97 fId, fLocalMask, fLocalOutput[0], fLocalOutput[1], fOutput);