Side Class Reference

#include <side.h>

List of all members.

Public Member Functions

 Side (Int_t side_number)
void Clean ()
void CleanChannel (Int_t in_plane, Int_t in_chip, Int_t in_channel)
void AddStats (Int_t in_plane, Int_t in_chip, Int_t in_channel, Int_t new_entries, Double_t new_mean, Double_t new_rms)
void SetStats (Int_t in_plane, Int_t in_chip, Int_t in_channel, Int_t new_entries, Double_t new_mean, Double_t new_rms)
Int_t GetEntries (Int_t in_plane, Int_t in_chip, Int_t in_channel)
Double_t GetMean (Int_t in_plane, Int_t in_chip, Int_t in_channel)
Double_t GetRMS (Int_t in_plane, Int_t in_chip, Int_t in_channel)
Double_t GetMean (Int_t plane, Int_t strip)
Double_t GetRMS (Int_t plane, Int_t strip)
Int_t GetEntries (Int_t plane, Int_t strip)
Int_t GetStrip (Int_t plane, Int_t chip, Int_t channel, Int_t led)
void RemoveDemons (Int_t box, Int_t led)
void FillMeanHist (TH1F *meanhist)
void FillStripHist (Int_t box, Int_t led, TH2F *ratiohist)
void FillChipHist (TH2F *chiphist)

Protected Attributes

Planeplanes [500]
Int_t side_no

Detailed Description

Definition at line 15 of file side.h.


Constructor & Destructor Documentation

Side::Side ( Int_t  side_number  )  [inline]

Definition at line 22 of file side.h.

References n, planes, and side_no.

00022                          {
00023     for(Int_t n=0;n<500;n++)
00024       planes[n]=0;
00025     side_no = side_number;
00026   };


Member Function Documentation

void Side::AddStats ( Int_t  in_plane,
Int_t  in_chip,
Int_t  in_channel,
Int_t  new_entries,
Double_t  new_mean,
Double_t  new_rms 
)

Definition at line 51 of file side.cxx.

References Plane::AddStats(), planes, and side_no.

Referenced by Detector::AddStats().

00051                                                                                                                          {
00052 
00053   if(in_plane < 0)
00054     in_plane =0;
00055 
00056   if(planes[in_plane] == 0)
00057     planes[in_plane] = new Plane(side_no,in_plane);
00058   planes[in_plane]->AddStats(in_chip,in_channel,new_entries,new_mean,new_rms);
00059 
00060 };

void Side::Clean (  ) 

Definition at line 44 of file side.cxx.

References Plane::Clean(), n, and planes.

Referenced by Detector::Clean(), and RemoveDemons().

00044                 {
00045   for(Int_t n=0;n<256;n++)
00046     if(planes[n] != 0)
00047       planes[n]->Clean();
00048 };

void Side::CleanChannel ( Int_t  in_plane,
Int_t  in_chip,
Int_t  in_channel 
)

Definition at line 85 of file side.cxx.

References Plane::CleanChannel(), and planes.

00085                                                                       {
00086   if(planes[in_plane] != 0)
00087     planes[in_plane]->CleanChannel(in_chip,in_channel);
00088 };

void Side::FillChipHist ( TH2F *  chiphist  ) 

Definition at line 115 of file side.cxx.

References Plane::FillChipHist(), n, and planes.

Referenced by Detector::FillChipHist().

00115                                      {
00116 for(Int_t n=0;n<256;n++)
00117         if(planes[n]!=0)
00118                         planes[n]->FillChipHist(chiphist);
00119 
00120 }

void Side::FillMeanHist ( TH1F *  meanhist  ) 

Definition at line 35 of file side.cxx.

References Plane::FillMeanHist(), n, and planes.

Referenced by Detector::FillMeanHist().

00035                                      {
00036   for(Int_t n=0;n<256;n++)
00037     if(planes[n]!=0)
00038       planes[n]->FillMeanHist(meanhist);
00039 
00040 };

void Side::FillStripHist ( Int_t  box,
Int_t  led,
TH2F *  ratiohist 
)

Definition at line 14 of file side.cxx.

References Plane::FillStripHist(), n, and planes.

Referenced by Detector::FillStripHist().

00014                                                              {
00015 
00016   for(Int_t n=0;n<256;n++)
00017     if(planes[n]!=0)
00018       planes[n]->FillStripHist(box,led,ratiohist);
00019 };

Int_t Side::GetEntries ( Int_t  plane,
Int_t  strip 
)

Definition at line 107 of file side.cxx.

References Plane::GetEntries(), and planes.

00107                                               {
00108 
00109   if(planes[plane] !=0)
00110     return planes[plane]->GetEntries(strip);
00111   return 0;
00112 
00113 };

Int_t Side::GetEntries ( Int_t  in_plane,
Int_t  in_chip,
Int_t  in_channel 
)

Definition at line 67 of file side.cxx.

References Plane::GetEntries(), and planes.

Referenced by Detector::GetEntries().

00067                                                                     {
00068   if(planes[in_plane] != 0)
00069     return planes[in_plane]->GetEntries(in_chip,in_channel);
00070   return 0;
00071 };

Double_t Side::GetMean ( Int_t  plane,
Int_t  strip 
)

Definition at line 91 of file side.cxx.

References Plane::GetMean(), and planes.

00091                                               {
00092 
00093   if(planes[plane] !=0)
00094     return planes[plane]->GetMean(strip);
00095   return 0;
00096 
00097 };

Double_t Side::GetMean ( Int_t  in_plane,
Int_t  in_chip,
Int_t  in_channel 
)

Definition at line 73 of file side.cxx.

References Plane::GetMean(), and planes.

Referenced by Detector::GetMean().

00073                                                                     {
00074   if(planes[in_plane] != 0)
00075     return planes[in_plane]->GetMean(in_chip,in_channel);
00076   return 0;
00077 };

Double_t Side::GetRMS ( Int_t  plane,
Int_t  strip 
)

Definition at line 99 of file side.cxx.

References Plane::GetRMS(), and planes.

00099                                              {
00100 
00101   if(planes[plane] !=0)
00102     return planes[plane]->GetRMS(strip);
00103   return 0;
00104 
00105 };

Double_t Side::GetRMS ( Int_t  in_plane,
Int_t  in_chip,
Int_t  in_channel 
)

Definition at line 78 of file side.cxx.

References Plane::GetRMS(), and planes.

Referenced by Detector::GetRMS().

00078                                                                    {
00079   if(planes[in_plane] != 0)
00080     return planes[in_plane]->GetRMS(in_chip,in_channel);
00081   return 0;
00082 };

Int_t Side::GetStrip ( Int_t  plane,
Int_t  chip,
Int_t  channel,
Int_t  led 
)

Definition at line 123 of file side.cxx.

References Plane::GetStrip(), and planes.

Referenced by Detector::GetStrip().

00123                                                                      {
00124         if(planes[plane]!=0)
00125                 return planes[plane]->GetStrip(chip,channel,led);
00126          return -1;
00127 };

void Side::RemoveDemons ( Int_t  box,
Int_t  led 
)

Definition at line 24 of file side.cxx.

References Clean(), n, planes, Plane::RemoveDemons(), and side_no.

Referenced by Detector::RemoveDemons().

00024                                            {
00025 
00026   if( box%2 == side_no){
00027     for(Int_t n=0;n<256;n++)
00028       if(planes[n]!=0)
00029                                 planes[n]->RemoveDemons(box,led);
00030         }
00031   else
00032     Clean();
00033 };

void Side::SetStats ( Int_t  in_plane,
Int_t  in_chip,
Int_t  in_channel,
Int_t  new_entries,
Double_t  new_mean,
Double_t  new_rms 
)

Definition at line 61 of file side.cxx.

References planes, Plane::SetStats(), and side_no.

Referenced by Detector::SetStats().

00061                                                                                                                          {
00062   if(planes[in_plane] == 0)
00063     planes[in_plane] = new Plane(side_no, in_plane);
00064   planes[in_plane]->SetStats(in_chip,in_channel,new_entries,new_mean,new_rms);
00065 };


Member Data Documentation

Plane* Side::planes[500] [protected]
Int_t Side::side_no [protected]

Definition at line 18 of file side.h.

Referenced by AddStats(), RemoveDemons(), SetStats(), and Side().


The documentation for this class was generated from the following files:

Generated on 24 Jul 2018 for loon by  doxygen 1.6.1