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()
61 //----------------------------------------------------------------------
62 AliMUONRegionalTrigger& AliMUONRegionalTrigger::operator=(const AliMUONRegionalTrigger& theMUONRegionalTrig)
64 /// Assigment operator;
65 /// equal operator (useful for non-pointer member in TClonesArray)
67 if (this == &theMUONRegionalTrig)
70 // base class assignement
71 TObject::operator=(theMUONRegionalTrig);
73 fId = theMUONRegionalTrig.fId;
74 fLocalMask = theMUONRegionalTrig.fLocalMask;
75 fLocalOutput[0] = theMUONRegionalTrig.fLocalOutput[0];
76 fLocalOutput[1] = theMUONRegionalTrig.fLocalOutput[1];
77 fOutput = theMUONRegionalTrig.fOutput;
84 //----------------------------------------------------------------------
85 void AliMUONRegionalTrigger::Print(Option_t* opt) const
88 /// Printing Regional Trigger information
93 if ( sopt.Contains("FULL") ) {
95 printf("<AliMUONRegionalTrigger> Id %d localMask %d localOutputs %d %d output %d\n",
96 fId, fLocalMask, fLocalOutput[0], fLocalOutput[1], fOutput);