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"
38 ClassImp( AliTriggerScalers )
40 //_____________________________________________________________________________
41 AliTriggerScalers::AliTriggerScalers():
51 // Default constructor
54 //_____________________________________________________________________________
55 AliTriggerScalers::AliTriggerScalers( UChar_t classIndex, UInt_t LOCB, UInt_t LOCA,
56 UInt_t L1CB, UInt_t L1CA, UInt_t L2CB, UInt_t L2CA ):
58 fClassIndex( classIndex ),
66 // Default constructor
69 //_____________________________________________________________________________
70 Int_t AliTriggerScalers::Compare( const TObject* obj ) const
72 // Compare Scaler by class index (to sort in Scaler Record by class index)
73 if( fClassIndex < ((AliTriggerScalers*)obj)->fClassIndex ) return -1;
74 if( fClassIndex > ((AliTriggerScalers*)obj)->fClassIndex ) return 1;
78 //_____________________________________________________________________________
79 void AliTriggerScalers::Print( const Option_t* ) const
82 cout << "Trigger Scalers for Class: " << (Int_t)fClassIndex << endl;
83 cout << " LOCB: " << fLOCB << " LOCA: " << fLOCA; //<< endl;
84 cout << " L1CB: " << fL1CB << " L1CA: " << fL1CA; //<< endl;
85 cout << " L2CB: " << fL2CB << " L2CA: " << fL2CA << endl;