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
29 ClassImp(AliMUONRegionalTrigger)
32 //----------------------------------------------------------------------
33 AliMUONRegionalTrigger::AliMUONRegionalTrigger()
39 /// Default constructor
40 fLocalOutput[0] = fLocalOutput[1] = 0;
43 //----------------------------------------------------------------------
44 AliMUONRegionalTrigger::AliMUONRegionalTrigger(const AliMUONRegionalTrigger& theMUONRegionalTrig)
45 : TObject(theMUONRegionalTrig),
46 fId(theMUONRegionalTrig.fId),
47 fLocalMask(theMUONRegionalTrig.fLocalMask),
48 fOutput(theMUONRegionalTrig.fOutput)
50 /// Copy constructor (useful for TClonesArray)
52 fLocalOutput[0] = theMUONRegionalTrig.fLocalOutput[0];
53 fLocalOutput[1] = theMUONRegionalTrig.fLocalOutput[1];
56 //----------------------------------------------------------------------
57 AliMUONRegionalTrigger& AliMUONRegionalTrigger::operator=(const AliMUONRegionalTrigger& theMUONRegionalTrig)
59 /// Assigment operator;
60 /// equal operator (useful for non-pointer member in TClonesArray)
62 if (this == &theMUONRegionalTrig)
65 // base class assignement
66 TObject::operator=(theMUONRegionalTrig);
68 fId = theMUONRegionalTrig.fId;
69 fLocalMask = theMUONRegionalTrig.fLocalMask;
70 fLocalOutput[0] = theMUONRegionalTrig.fLocalOutput[0];
71 fLocalOutput[1] = theMUONRegionalTrig.fLocalOutput[1];
72 fOutput = theMUONRegionalTrig.fOutput;
79 //----------------------------------------------------------------------
80 void AliMUONRegionalTrigger::Print(Option_t* opt) const
83 // Printing Regional Trigger information
88 if ( sopt.Contains("FULL") ) {
90 printf("<AliMUONRegionalTrigger> Id %d localMask %d localOutputs %d %d output %d\n",
91 fId, fLocalMask, fLocalOutput[0], fLocalOutput[1], fOutput);