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 **************************************************************************/
16 /* $Id: AliTriggerScalers.cxx 22322 2007-11-22 11:43:14Z cvetan $ */
18 ///////////////////////////////////////////////////////////////////////////////
20 // Class to define the ALICE Trigger Scalers
22 // For each trigger class there are six scalers:
24 // LOCB L0 triggers before any vetos
25 // LOCA L0 triggers after all vetos
26 // L1CB L1 triggers before any vetos
27 // L1CA L1 triggers after all vetos
28 // L2CB L2 triggers before any vetos
29 // L2CA L2 triggers after all vetos
31 //////////////////////////////////////////////////////////////////////////////
33 #include <Riostream.h>
36 #include "AliTriggerScalers.h"
40 ClassImp( AliTriggerScalers )
42 //_____________________________________________________________________________
43 AliTriggerScalers::AliTriggerScalers():
53 // Default constructor
56 //_____________________________________________________________________________
57 AliTriggerScalers::AliTriggerScalers( UChar_t classIndex, UInt_t LOCB, UInt_t LOCA,
58 UInt_t L1CB, UInt_t L1CA, UInt_t L2CB, UInt_t L2CA ):
60 fClassIndex( classIndex ),
68 // Default constructor
71 //_____________________________________________________________________________
72 Int_t AliTriggerScalers::Compare( const TObject* obj ) const
74 // Compare Scaler by class index (to sort in Scaler Record by class index)
75 if( fClassIndex < ((AliTriggerScalers*)obj)->fClassIndex ) return -1;
76 if( fClassIndex > ((AliTriggerScalers*)obj)->fClassIndex ) return 1;
79 //____________________________________________________________________________
80 void AliTriggerScalers::GetAllScalers(UInt_t *scalers) const
89 //_____________________________________________________________________________
90 void AliTriggerScalers::Print( const Option_t* ) const
93 cout << "Trigger Scalers for Class: " << (Int_t)fClassIndex << endl;
94 cout << " LOCB: " << fLOCB << " LOCA: " << fLOCA; //<< endl;
95 cout << " L1CB: " << fL1CB << " L1CA: " << fL1CA; //<< endl;
96 cout << " L2CB: " << fL2CB << " L2CA: " << fL2CA << endl;