Changeset 2415 for trunk/MagicSoft
- Timestamp:
- 10/20/03 18:39:05 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamEvent.cc
r2405 r2415 104 104 fSum = new MHCamera(*cam, name+";avg", fTitle); 105 105 fSum->SetYTitle("a.u."); 106 106 fSum->SetBit(MHCamera::kProfile); 107 107 return kTRUE; 108 108 } … … 131 131 Bool_t MHCamEvent::Finalize() 132 132 { 133 fSum->ResetBit(MHCamera::kProfile); 133 134 if (fSum->GetEntries()>0) 134 135 fSum->Scale(1./fSum->GetEntries()); … … 170 171 } 171 172 172 void MHCamEvent::Draw(Option_t *) 173 { 174 TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(this); 173 void MHCamEvent::DrawTS(TVirtualPad *p, Option_t *) 174 { 175 if (!fSum) 176 { 177 *fLog << warn << "MHCamEvent::Draw - fSum==NULL not initialized." << endl; 178 return; 179 } 180 181 TVirtualPad *pad = p ? p : MakeDefCanvas(this); 175 182 pad->SetBorderMode(0); 176 183 177 184 pad->Divide(1,2); 178 185 179 pad->cd(1); 180 gPad->SetBorderMode(0); 181 gPad->Divide(1,1); 182 gPad->cd(1); 183 gPad->SetBorderMode(0); 184 fSum->Draw(); 185 186 pad->cd(2); 187 gPad->SetBorderMode(0); 188 fSum->Draw("EPhist"); 189 } 186 p = pad->GetPad(1); 187 p->SetBorderMode(0); 188 189 // fSum doesn't derive from MParContainer 190 MParContainer::DrawTS(fSum, p); 191 192 p = pad->GetPad(2); 193 p->SetBorderMode(0); 194 195 // fSum doesn't derive from MParContainer 196 MParContainer::DrawTS(fSum, p, "EPhist"); 197 198 // fSum doesn't derive from MParContainer 199 //MParContainer::DrawTS(fSum, pad); 200 } -
trunk/MagicSoft/Mars/mhist/MHCamEvent.h
r2405 r2415 32 32 TH1 *GetHistByName(const TString name=""); 33 33 34 void Draw (Option_t *o="");34 void DrawTS(TVirtualPad *pad=NULL, Option_t *o=""); 35 35 36 36 void PrintOutliers(Float_t sigma) const;
Note:
See TracChangeset
for help on using the changeset viewer.