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

Chip Class Reference

#include <chip.h>

List of all members.

Public Member Functions

 Chip (Int_t chip_number)
void Clean ()
void AddStats (Int_t in_channel, Int_t new_entries, Double_t new_mean, Double_t new_rms)
void SetStats (Int_t in_channel, Int_t new_entries, Double_t new_mean, Double_t new_rms)
Int_t GetEntries (Int_t in_channel)
Double_t GetMean (Int_t in_channel)
Double_t GetRMS (Int_t in_channel)
void CleanChannel (Int_t in_channel)
void FillMeanHist (TH1F *meanhist)

Protected Attributes

Channelchannels [22]
Int_t chip_no


Constructor & Destructor Documentation

Chip::Chip Int_t  chip_number  ) 
 

Definition at line 20 of file chip.cxx.

References channels, and chip_no.

00020                            {
00021   for(Int_t n=0;n<22;n++)
00022     channels[n]=0;
00023   chip_no = chip_number;
00024 };


Member Function Documentation

void Chip::AddStats Int_t  in_channel,
Int_t  new_entries,
Double_t  new_mean,
Double_t  new_rms
 

Definition at line 32 of file chip.cxx.

References Channel::AddEntry(), and channels.

Referenced by Plane::AddStats().

00032                                                                                            {
00033   if(channels[in_channel] ==0)
00034     channels[in_channel] = new Channel(in_channel);
00035   channels[in_channel]->AddEntry(new_entries,new_mean,new_rms);
00036 };

void Chip::Clean  ) 
 

Definition at line 26 of file chip.cxx.

References channels, and Channel::Clean().

Referenced by Plane::Clean().

00026                 {
00027   for(Int_t n=0;n<22;n++)
00028     if(channels[n]!=0)
00029       channels[n]->Clean();
00030 };

void Chip::CleanChannel Int_t  in_channel  ) 
 

Definition at line 60 of file chip.cxx.

References channels, and Channel::Clean().

Referenced by Plane::CleanChannel().

00060                                        {
00061   if(channels[in_channel]!=0)
00062     channels[in_channel]->Clean();
00063 };

void Chip::FillMeanHist TH1F *  meanhist  ) 
 

Definition at line 12 of file chip.cxx.

References channels, Channel::GetEntries(), and GetMean().

Referenced by Plane::FillMeanHist().

00012                                      {
00013   for(Int_t n=0;n<22;n++)
00014     if(channels[n]!=0)
00015       if(channels[n]->GetEntries()>0)
00016                                 meanhist->Fill(channels[n]->GetMean()); 
00017 };

Int_t Chip::GetEntries Int_t  in_channel  ) 
 

Definition at line 44 of file chip.cxx.

References channels, and Channel::GetEntries().

Referenced by Plane::FillChipHist(), and Plane::GetEntries().

00044                                       {
00045   if(channels[in_channel]!=0)
00046     return channels[in_channel]->GetEntries();
00047   return 0;
00048 };

Double_t Chip::GetMean Int_t  in_channel  ) 
 

Definition at line 49 of file chip.cxx.

References channels, and Channel::GetMean().

Referenced by FillMeanHist(), and Plane::GetMean().

00049                                       {
00050   if(channels[in_channel]!=0)
00051     return channels[in_channel]->GetMean();
00052   return 0;
00053 };

Double_t Chip::GetRMS Int_t  in_channel  ) 
 

Definition at line 54 of file chip.cxx.

References channels, and Channel::GetRMS().

Referenced by Plane::GetRMS().

00054                                      {
00055   if(channels[in_channel]!=0)
00056     return channels[in_channel]->GetRMS();
00057   return 0;
00058 };

void Chip::SetStats Int_t  in_channel,
Int_t  new_entries,
Double_t  new_mean,
Double_t  new_rms
 

Definition at line 38 of file chip.cxx.

References channels, and Channel::SetEntry().

Referenced by Plane::SetStats().

00038                                                                                            {
00039   if(channels[in_channel] ==0)
00040     channels[in_channel] = new Channel(in_channel);
00041   channels[in_channel]->SetEntry(new_entries,new_mean,new_rms);
00042 };


Member Data Documentation

Channel* Chip::channels[22] [protected]
 

Definition at line 20 of file chip.h.

Referenced by AddStats(), Chip(), Clean(), CleanChannel(), FillMeanHist(), GetEntries(), GetMean(), GetRMS(), and SetStats().

Int_t Chip::chip_no [protected]
 

Definition at line 21 of file chip.h.

Referenced by Chip().


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:08:59 2010 for loon by  doxygen 1.3.9.1