AliRoot Core  edcc906 (edcc906)
AliMUONRegionalTrigger.cxx
Go to the documentation of this file.
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 #include <iostream>
19 
20 #include "AliMUONRegionalTrigger.h"
21 #include "AliLog.h"
22 
23 //-----------------------------------------------------------------------------
24 // Class AliMUONRegionalTrigger
25 // -----------------------------
26 // Regional Trigger algorithm data outputs
27 // Author: Ch. Finck
28 //-----------------------------------------------------------------------------
29 
30 using std::endl;
31 using std::cout;
33 ClassImp(AliMUONRegionalTrigger)
35 
36 //----------------------------------------------------------------------
38  : TObject(),
39  fId(0),
40  fLocalMask(0),
41  fOutput(0)
42 {
44  fLocalOutput[0] = fLocalOutput[1] = 0;
45 
46 }
47 //----------------------------------------------------------------------
49  : TObject(theMUONRegionalTrig),
50  fId(theMUONRegionalTrig.fId),
51  fLocalMask(theMUONRegionalTrig.fLocalMask),
52  fOutput(theMUONRegionalTrig.fOutput)
53 {
55 
56  fLocalOutput[0] = theMUONRegionalTrig.fLocalOutput[0];
57  fLocalOutput[1] = theMUONRegionalTrig.fLocalOutput[1];
58 
59 }
60 //----------------------------------------------------------------------
62 {
64 }
65 //----------------------------------------------------------------------
67 {
70 
71  if (this == &theMUONRegionalTrig)
72  return *this;
73 
74  // base class assignement
75  TObject::operator=(theMUONRegionalTrig);
76 
77  fId = theMUONRegionalTrig.fId;
78  fLocalMask = theMUONRegionalTrig.fLocalMask;
79  fLocalOutput[0] = theMUONRegionalTrig.fLocalOutput[0];
80  fLocalOutput[1] = theMUONRegionalTrig.fLocalOutput[1];
81  fOutput = theMUONRegionalTrig.fOutput;
82 
83  return *this;
84 }
85 
86 
87 
88 //----------------------------------------------------------------------
89 void AliMUONRegionalTrigger::Print(Option_t* opt) const
90 {
94  TString sopt(opt);
95  sopt.ToUpper();
96 
97  if ( sopt.Contains("FULL") ) {
98 
99  printf("<AliMUONRegionalTrigger> Id %d localMask %d localOutputs %d %d output %d\n",
101 
102  }
103 }
104 
printf("Chi2/npoints = %f\n", TMath::Sqrt(chi2/npoints))
UInt_t fLocalOutput[2]
local output Lpt & Hpt
AliMUONRegionalTrigger & operator=(const AliMUONRegionalTrigger &rhs)
UChar_t fOutput
regional output (single muon:2, unlike sign:1, like sign:1)
virtual void Print(Option_t *opt="") const
Reconstructed regional Trigger object.
UShort_t fLocalMask
local mask