]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONRegionalTrigger.cxx
Optional geometry without CPV
[u/mrichter/AliRoot.git] / MUON / AliMUONRegionalTrigger.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
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  **************************************************************************/
15
16 /* $Id$ */
17
18
19 #include "AliMUONRegionalTrigger.h"
20 #include "AliLog.h"
21
22 // -----------------------------
23 // Class AliMUONRegionalTrigger
24 // -----------------------------
25 // Regional Trigger algorithm data outputs
26 // Author:  Ch. Finck
27
28 /// \cond CLASSIMP
29 ClassImp(AliMUONRegionalTrigger)
30 /// \endcond
31
32 //----------------------------------------------------------------------
33 AliMUONRegionalTrigger::AliMUONRegionalTrigger()
34   : TObject(), 
35     fId(0),
36     fLocalMask(0),
37     fOutput(0)
38 {
39 /// Default constructor
40   fLocalOutput[0] = fLocalOutput[1] = 0;
41
42 }
43 //----------------------------------------------------------------------
44 AliMUONRegionalTrigger::AliMUONRegionalTrigger(const AliMUONRegionalTrigger& theMUONRegionalTrig)
45   : TObject(theMUONRegionalTrig),
46     fId(theMUONRegionalTrig.fId),
47     fLocalMask(theMUONRegionalTrig.fLocalMask),  
48     fOutput(theMUONRegionalTrig.fOutput)           
49 {
50 /// Copy constructor (useful for TClonesArray)
51
52   fLocalOutput[0] = theMUONRegionalTrig.fLocalOutput[0];
53   fLocalOutput[1] = theMUONRegionalTrig.fLocalOutput[1];
54  
55 }
56 //----------------------------------------------------------------------
57 AliMUONRegionalTrigger& AliMUONRegionalTrigger::operator=(const AliMUONRegionalTrigger& theMUONRegionalTrig)
58 {
59 /// Assigment operator;
60 /// equal operator (useful for non-pointer member in TClonesArray)
61
62   if (this == &theMUONRegionalTrig)
63     return *this;
64
65   // base class assignement
66   TObject::operator=(theMUONRegionalTrig);
67
68   fId             = theMUONRegionalTrig.fId;
69   fLocalMask      = theMUONRegionalTrig.fLocalMask;   
70   fLocalOutput[0] = theMUONRegionalTrig.fLocalOutput[0];
71   fLocalOutput[1] = theMUONRegionalTrig.fLocalOutput[1];
72   fOutput         = theMUONRegionalTrig.fOutput;           
73
74   return *this;
75 }
76
77
78
79 //----------------------------------------------------------------------
80 void AliMUONRegionalTrigger::Print(Option_t* opt) const
81 {
82   //
83   // Printing Regional Trigger information
84   //
85   TString sopt(opt);
86   sopt.ToUpper();
87  
88   if ( sopt.Contains("FULL") ) { 
89
90       printf("<AliMUONRegionalTrigger> Id %d localMask %d localOutputs %d %d output %d\n",
91              fId, fLocalMask, fLocalOutput[0], fLocalOutput[1], fOutput);
92
93   }
94 }
95