Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

LIChannel.h

Go to the documentation of this file.
00001 
00002 
00003 // Program name: LIChannel.h
00004 //                                                                     
00005 // Package: LISummary                     
00006 //
00007 // Coded by Jeff Hartnell Oct/2002  
00008 //
00009 // Based on code by: Rob Morse Feb/2002                  
00010 //
00011 // Purpose: To store and calculate the average mean and rms for a 
00012 //          given channel
00013 //
00014 //          The inputs for mean and rms are floats but they are
00015 //          manipulated internally as doubles to avoid rounding errors
00016 //                                                                    
00017 // Contact: jeffrey.hartnell@physics.ox.ac.uk   
00019 
00020 #ifndef LICHANNEL_H
00021 #define LICHANNEL_H
00022 
00023 #include "RawData/RawChannelId.h"
00024 
00025 class LIChannel {
00026 
00027  public:
00028 
00029   //constructor and destructor
00030   LIChannel();
00031   ~LIChannel();
00032 
00033   //methods that modify the data members
00034   void AddEntry(Int_t entries,Float_t mean,Float_t rms);
00035   void Clean();
00036   Float_t GetRms();
00037   void SetChannelId(RawChannelId channelId) {fChannelId=channelId;}
00038   void SetEntry(Int_t entries,Float_t mean,Float_t rms);
00039   void SetMean(Float_t mean) {fMean=static_cast<Double_t>(mean);}
00040   void SetNumEntries(Int_t numEntries) {fNumEntries=numEntries;}
00041   void SetRms(Float_t rms) {fRms=static_cast<Double_t>(rms);}
00042   void SetSummaryCounter(Int_t counts) {fSummaryCounter=counts;}
00043 
00044   //methods that don't modify the data members
00045   RawChannelId GetChannelId() {return fChannelId;}
00046   RawChannelId GetRawChannelId() {return fChannelId;}
00047   Float_t GetMean() {return static_cast<Float_t>(fMean);}
00048   Int_t GetNumEntries() {return fNumEntries;}
00049   Int_t GetSummaryCounter() {return fSummaryCounter;}
00050 
00051  private:
00052 
00053   RawChannelId fChannelId;
00054   Double_t fMean;
00055   Int_t fNumEntries;
00056   Double_t fRms;
00057   Double_t fSigma1;
00058   Double_t fSigma2;
00059   Int_t fSummaryCounter;
00060 
00061 };
00062 
00063 #endif //LICHANNEL_H

Generated on Mon Feb 15 11:06:51 2010 for loon by  doxygen 1.3.9.1