|
// $Id: BrTpcFibDig.cxx,v 1.1 2001/10/02 22:27:42 videbaek Exp $ // /////////////////////////////////////////////////////////////////////// // // Digitized BrTpcFib for the calibration fibres behind any // tpc (front and back). These have at most 6 adc values. Rather // than having individual ones, I allocate 6 per structure. // The values are zero if no ADC connected. // // TPM2 back 3 fibres 2 ADCs each // TPM2 front 5 fibres 1 ADC each // T2 // T1 // The names will be TPM2F TPM2B T1B T2F // Example of Usage // if((BrTpcFib*) digp = (BrTpcFib*) event->GetDataObject("TpcFibDig T2F")){ // // for(int k=1; k<=5;k++){ // adc = digp->GetAdc(k); // if(adc > pedstal){ // ... // // #include "BrTpcFibDig.h" #include <BrIostream.h> ClassImp(BrTpcFibDig); //________________________________________________________________ Int_t BrTpcFibDig::GetAdc(const Int_t i) const { if(i>0 && i<= kNumTpcFibChan){ return fAdc[i-1]; } else return 0; } //________________________________________________________________ void BrTpcFibDig::SetAdc(const Int_t i,const Int_t adc) { if(i>0 && i<=kNumTpcFibChan) { fAdc[i-1] = adc; } else return; } //________________________________________________________________ void BrTpcFibDig::Print(Option_t* option) const{ // // List the content of an object on cout // TString opt(option); opt.ToLower(); BrDataObject::Print(option); if (opt.Contains("d")) cout << endl << " Original author: Flemming Videbaek" << endl << " Last Modifications: " << endl << " $Author: videbaek $" << endl << " $Date: 2001/10/02 22:27:42 $$" << endl << " $Revision: 1.1 $ " << endl << endl << "-------------------------------------------------" << endl; if (opt.Contains("r")) for (Short_t i = 0; i < kNumTpcFibChan; i++) cout << " Chan # " << setw(4) << i+1 << " ADC: " << setw(8) << fAdc[i] << endl; } ////////////////////////////////////////////////////////////////////////////////////// // // $Log: BrTpcFibDig.cxx,v $ // Revision 1.1 2001/10/02 22:27:42 videbaek // Changed datastructures for the fibres froint and back of the Tpcs // The old struct BrTpmfigDig has been removed and replace by a more general // BrTpcFibDig a struct of 6 adc, and with BrRawDataInput taking care // of the foru possible ones (TPM2 F/B T1/B and T2/B) // // Revision 1.2 2001/09/03 14:28:09 videbaek // Clean up of comments only // // Revision 1.1 2001/07/17 19:15:58 videbaek // Forgot to put these to cvs. // |
||||||
This page automatically generated by script docBrat by Christian Holm |
Copyright ; 2002 BRAHMS Collaboration
<brahmlib@rcf.rhic.bnl.gov>
|