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"
23 // -----------------------------
24 // Class AliMUONRegionalTrigger
25 // -----------------------------
26 // Regional Trigger algorithm data outputs
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::operator=(const AliMUONRegionalTrigger& theMUONRegionalTrig)
60 /// Assigment operator;
61 /// equal operator (useful for non-pointer member in TClonesArray)
63 if (this == &theMUONRegionalTrig)
66 // base class assignement
67 TObject::operator=(theMUONRegionalTrig);
69 fId = theMUONRegionalTrig.fId;
70 fLocalMask = theMUONRegionalTrig.fLocalMask;
71 fLocalOutput[0] = theMUONRegionalTrig.fLocalOutput[0];
72 fLocalOutput[1] = theMUONRegionalTrig.fLocalOutput[1];
73 fOutput = theMUONRegionalTrig.fOutput;
80 //----------------------------------------------------------------------
81 void AliMUONRegionalTrigger::Print(Option_t* opt) const
84 // Printing Regional Trigger information
89 if ( sopt.Contains("FULL") ) {
91 printf("<AliMUONRegionalTrigger> Id %d localMask %d localOutputs %d %d output %d\n",
92 fId, fLocalMask, fLocalOutput[0], fLocalOutput[1], fOutput);