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

channel.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                                   channel.h 
00003                              -------------------
00004     begin                : Fri Feb 8 2002
00005     copyright            : (C) 2002 by Robert Morse
00006     email                : r.morse@sussex.ac.uk
00007  ***************************************************************************/
00008 
00009 
00010 #ifndef CHANNEL_H
00011 #define CHANNEL_H
00012 #include "RootHeaders.h"
00013 #include "RawData/RawChannelId.h"
00014 #include "Plex/PlexHandle.h"
00015 #include "Plex/PlexSEIdAltL.h"
00016 class Channel {
00017 
00018  protected:
00019   
00020   RawChannelId chAdd;
00021   Int_t channel_no;
00022   Int_t no_entries;
00023   Double_t mean;
00024   Double_t rms;
00025   Double_t sigma1;
00026   Double_t sigma2;
00027 
00028  public:
00029   Channel(RawChannelId new_chAdd){
00030     no_entries=0;
00031     mean=0;
00032     rms=0;
00033     sigma1=0;
00034     sigma2=0;
00035     channel_no = -1;
00036     chAdd = new_chAdd;
00037   }
00038 
00039   void Clean();
00040 
00041   RawChannelId GetChannelId(){ return chAdd;};
00042 
00043   void SetMean(Double_t value);
00044   void SetEntries(Int_t values);
00045   void SetRMS(Double_t value);
00046 
00047   Double_t GetMean();
00048   Int_t GetEntries();
00049   Double_t GetRMS();
00050 
00051   void AddEntry(Int_t entries, Double_t new_mean, Double_t new_rms);
00052   void SetEntry(Int_t entries, Double_t new_mean, Double_t new_rms);
00053 
00054 
00055 
00056 };
00057 
00058 #endif

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