1 /*************************************************************************
2 * Copyright(c) 1998-2008, 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 **************************************************************************/
16 ///////////////////////////////////////////////////////////////////////////////
18 // Class to define the ALICE Trigger Scalers
20 // For each trigger class there are six scalers:
22 // LOCB L0 triggers before any vetos
23 // LOCA L0 triggers after all vetos
24 // L1CB L1 triggers before any vetos
25 // L1CA L1 triggers after all vetos
26 // L2CB L2 triggers before any vetos
27 // L2CA L2 triggers after all vetos
29 //////////////////////////////////////////////////////////////////////////////
31 #include <Riostream.h>
34 #include "AliTriggerScalersESD.h"
38 ClassImp( AliTriggerScalersESD )
40 //_____________________________________________________________________________
41 AliTriggerScalersESD::AliTriggerScalersESD():
51 // Default constructor
54 //_____________________________________________________________________________
55 AliTriggerScalersESD::AliTriggerScalersESD( UChar_t classIndex, ULong64_t LOCB, ULong64_t LOCA,
56 ULong64_t L1CB, ULong64_t L1CA, ULong64_t L2CB, ULong64_t L2CA ):
58 fClassIndex( classIndex ),
66 // Default constructor
68 //_____________________________________________________________________________
69 AliTriggerScalersESD::AliTriggerScalersESD(UChar_t classIndex,ULong64_t* s64):
71 fClassIndex( classIndex ),
79 // Construct from array
81 //_____________________________________________________________________________
82 AliTriggerScalersESD::AliTriggerScalersESD(const AliTriggerScalersESD& scal ):
84 fClassIndex( scal.fClassIndex ),
94 //_____________________________________________________________________________
95 AliTriggerScalersESD& AliTriggerScalersESD::operator=(const AliTriggerScalersESD& scal)
97 if(&scal == this) return *this;
98 ((TObject *)this)->operator=(scal);
100 fClassIndex = scal.fClassIndex;
110 //____________________________________________________________________________
111 void AliTriggerScalersESD::GetAllScalers(ULong64_t *scalers) const
120 //_____________________________________________________________________________
121 void AliTriggerScalersESD::Print( const Option_t* ) const
124 cout << "Trigger Scalers for Class: " << (Int_t)fClassIndex << endl;
125 cout << " LOCB: " << fLOCB << " LOCA: " << fLOCA; //<< endl;
126 cout << " L1CB: " << fL1CB << " L1CA: " << fL1CA; //<< endl;
127 cout << " L2CB: " << fL2CB << " L2CA: " << fL2CA << endl;