Changeset 2298 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 08/01/03 14:44:13 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r2297 r2298 1077 1077 fNotify->ForEach(MCamEvent, DrawPixelContent)(idx); 1078 1078 } 1079 1080 UInt_t MHCamera::GetNumPixels() const 1081 { 1082 return fGeomCam->GetNumPixels(); 1083 } -
trunk/MagicSoft/Mars/mhist/MHCamera.h
r2297 r2298 144 144 void AddNotify(const MCamEvent &event) { fNotify->Add((TObject*)(&event)); } 145 145 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; 148 150 149 151 //void SetStatusBar(TGStatusBar *bar) { fStatusBar = bar; } -
trunk/MagicSoft/Mars/mhist/MHTriggerLvl0.cc
r2265 r2298 142 142 } 143 143 144 void 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 144 165 TH1 *MHTriggerLvl0::GetHistByName(const TString name) 145 166 { … … 152 173 pad->SetBorderMode(0); 153 174 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); 154 182 fSum->Draw(); 183 184 pad->cd(2); 185 gPad->SetBorderMode(0); 186 fSum->Draw("EPhist"); 155 187 } -
trunk/MagicSoft/Mars/mhist/MHTriggerLvl0.h
r2229 r2298 36 36 void Draw(Option_t * =""); 37 37 38 void PrintOutlayers(Float_t s) const; 39 38 40 ClassDef(MHTriggerLvl0, 1) // Histogram to count how often a pixel is above threshold 39 41 };
Note:
See TracChangeset
for help on using the changeset viewer.