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 /// \class AliMUONRegionalTrigger
24 /// Regional Trigger algorithm data outputs
28 ClassImp(AliMUONRegionalTrigger)
31 //----------------------------------------------------------------------
32 AliMUONRegionalTrigger::AliMUONRegionalTrigger()
38 /// Default constructor
39 fLocalOutput[0] = fLocalOutput[1] = 0;
42 //----------------------------------------------------------------------
43 AliMUONRegionalTrigger::AliMUONRegionalTrigger(const AliMUONRegionalTrigger& theMUONRegionalTrig)
44 : TObject(theMUONRegionalTrig)
46 /// Copy constructor (useful for TClonesArray)
48 fId = theMUONRegionalTrig.fId;
49 fLocalMask = theMUONRegionalTrig.fLocalMask;
50 fLocalOutput[0] = theMUONRegionalTrig.fLocalOutput[0];
51 fLocalOutput[1] = theMUONRegionalTrig.fLocalOutput[1];
52 fOutput = theMUONRegionalTrig.fOutput;
55 //----------------------------------------------------------------------
56 AliMUONRegionalTrigger& AliMUONRegionalTrigger::operator=(const AliMUONRegionalTrigger& theMUONRegionalTrig)
58 /// Assigment operator;
59 /// equal operator (useful for non-pointer member in TClonesArray)
61 if (this == &theMUONRegionalTrig)
64 // base class assignement
65 TObject::operator=(theMUONRegionalTrig);
67 fId = theMUONRegionalTrig.fId;
68 fLocalMask = theMUONRegionalTrig.fLocalMask;
69 fLocalOutput[0] = theMUONRegionalTrig.fLocalOutput[0];
70 fLocalOutput[1] = theMUONRegionalTrig.fLocalOutput[1];
71 fOutput = theMUONRegionalTrig.fOutput;
78 //----------------------------------------------------------------------
79 void AliMUONRegionalTrigger::Print(Option_t* opt) const
82 // Printing Regional Trigger information
87 if ( sopt.Contains("FULL") ) {
89 printf("<AliMUONRegionalTrigger> Id %d localMask %d localOutputs %d %d output %d\n",
90 fId, fLocalMask, fLocalOutput[0], fLocalOutput[1], fOutput);