Ignore:
Timestamp:
08/01/03 14:44:13 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHCamera.cc

    r2297 r2298  
    10771077    fNotify->ForEach(MCamEvent, DrawPixelContent)(idx);
    10781078}
     1079
     1080UInt_t MHCamera::GetNumPixels() const
     1081{
     1082    return fGeomCam->GetNumPixels();
     1083}
  • trunk/MagicSoft/Mars/mhist/MHCamera.h

    r2297 r2298  
    144144    void  AddNotify(const MCamEvent &event) { fNotify->Add((TObject*)(&event)); }
    145145
    146     Stat_t GetMean(Int_t axis) const;
    147     Stat_t GetRMS(Int_t axis) const;
     146    Stat_t GetMean(Int_t axis=-1) const;
     147    Stat_t GetRMS(Int_t axis=-1) const;
     148
     149    UInt_t GetNumPixels() const;
    148150
    149151    //void SetStatusBar(TGStatusBar *bar) { fStatusBar = bar; }
  • trunk/MagicSoft/Mars/mhist/MHTriggerLvl0.cc

    r2265 r2298  
    142142}
    143143
     144void MHTriggerLvl0::PrintOutlayers(Float_t s) const
     145{
     146    const Double_t mean = fSum->GetMean();
     147    const Double_t rms  = fSum->GetRMS();
     148
     149    *fLog << all << underline << GetDescriptor() << ": Mean=" << mean << ", Rms=" << rms << endl;
     150
     151    for (unsigned int i=0; i<fSum->GetNumPixels(); i++)
     152    {
     153        if (!fSum->IsUsed(i))
     154            continue;
     155
     156        if ((*fSum)[i+1]>mean+s*rms)
     157            *fLog << "Contents of Pixel-Index #" << i << ": " << (*fSum)[i+1] << " > " << s << "*rms" << endl;
     158        // if ((*fSum)[i+1]==0)
     159        //     *fLog << "Contents of Pixel-Index #" << i << ": " << (*fSum)[i+1] << " == 0" << endl;
     160        // if ((*fSum)[i+1]<fSum->GetMean()-s*fSum->GetRMS())
     161        //     *fLog << "Contents of Pixel-Index #" << i << ": " << (*fSum)[i+1] << " < " << s << "*rms" << endl;
     162    }
     163}
     164
    144165TH1 *MHTriggerLvl0::GetHistByName(const TString name)
    145166{
     
    152173    pad->SetBorderMode(0);
    153174
     175    pad->Divide(1,2);
     176
     177    pad->cd(1);
     178    gPad->SetBorderMode(0);
     179    gPad->Divide(1,1);
     180    gPad->cd(1);
     181    gPad->SetBorderMode(0);
    154182    fSum->Draw();
     183
     184    pad->cd(2);
     185    gPad->SetBorderMode(0);
     186    fSum->Draw("EPhist");
    155187}
  • trunk/MagicSoft/Mars/mhist/MHTriggerLvl0.h

    r2229 r2298  
    3636    void Draw(Option_t * ="");
    3737
     38    void PrintOutlayers(Float_t s) const;
     39
    3840    ClassDef(MHTriggerLvl0, 1) // Histogram to count how often a pixel is above threshold
    3941};
Note: See TracChangeset for help on using the changeset viewer.