|
// $Id: BrTrigScaler.cxx,v 1.1.1.1 2001/06/21 14:55:01 hagel Exp $ // ///////////////////////////////////////////////////////////////////////////// // // BrTrigScaler is a class which holds scaler information from // BRAHMS online data. // The class was formerly BrTriggerScalers // ///////////////////////////////////////////////////////////////////////////// #include "BrTrigScaler.h" #include <BrIostream.h> ClassImp(BrTrigScaler) Int_t BrTrigScaler::GetScaler(const Int_t i) const { if(i<kScalerChan) { return fScaler[i]; } else return 0; } Int_t BrTrigScaler::GetVetoedScaler(const Int_t i) const { if(i<kScalerChan) { return fVetoedScaler[i]; } else return 0; } void BrTrigScaler::SetScaler(const Int_t iscaler,const Int_t value) { if(iscaler<kScalerChan) { fScaler[iscaler] = value; } else return; } void BrTrigScaler::SetVetoedScaler(const Int_t iscaler,const Int_t value) { if(iscaler<kScalerChan) { fVetoedScaler[iscaler] = value; } else return; } void BrTrigScaler::List(){ // List the values of the scalers printf("Scaler Number Raw Scalers Vetoed Scalersn"); for(Int_t i=0;i<kScalerChan;i++) { printf(" %d %d %dn", i,fScaler[i],fVetoedScaler[i]); } } // $Log: BrTrigScaler.cxx,v $ // Revision 1.1.1.1 2001/06/21 14:55:01 hagel // Initial revision of brat2 // // Revision 1.1 2001/05/01 00:30:04 videbaek // Added bnew directory for trigger handling // This is taken mainly from base and BB, but better and more consistent // handling // // // |
||||||
This page automatically generated by script docBrat by Christian Holm |
Copyright ; 2002 BRAHMS Collaboration
<brahmlib@rcf.rhic.bnl.gov>
|