Changeset 2488 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 11/07/03 19:03:41 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r2484 r2488 1144 1144 TIter Next(gPad->GetListOfPrimitives()); 1145 1145 TObject *o; 1146 while (o=Next()) cout << o ->GetName() << " " << o->IsA()->GetName() << endl;1146 while (o=Next()) cout << o << ": " << o->GetName() << " " << o->IsA()->GetName() << endl; 1147 1147 */ 1148 1148 -
trunk/MagicSoft/Mars/mhist/MHEvent.cc
r2482 r2488 64 64 #include "MRawRunHeader.h" 65 65 #include "MRawEvtData.h" 66 #include "MImgCleanStd.h" 66 67 67 68 ClassImp(MHEvent); … … 140 141 break; 141 142 case kEvtCleaningLevels: 143 if (!fImgCleanStd) 144 { 145 *fLog << err << "MImgCleanStd not found... aborting." << endl; 146 return kFALSE; 147 } 142 148 fHist->SetName("CleanLevels"); 143 149 fHist->SetYTitle("L"); 144 if (!fImgCleanStd)145 return kFALSE;146 150 break; 147 151 } … … 171 175 break; 172 176 case kEvtRelativeSignal: 177 fHist->SetCamContent(*(MCamEvent*)par, 0); 178 break; 173 179 case kEvtCleaningLevels: 174 fHist->SetCamContent(*(MCamEvent*)par, 0); 180 { 181 TArrayF lvl(2); 182 lvl[0] = fImgCleanStd->GetCleanLvl2(); 183 lvl[1] = fImgCleanStd->GetCleanLvl1(); 184 fHist->SetCamContent(*(MCamEvent*)par, 0); 185 fHist->SetLevels(lvl); 186 } 175 187 break; 176 188 } … … 193 205 if (fMcEvt) 194 206 { 195 TString txt ;// = "#splitline{";207 TString txt("#splitline{"); 196 208 197 209 switch (fMcEvt->GetPartId()) … … 214 226 s.Insert(0, txt); 215 227 216 //s += "}{";228 s += "}{"; 217 229 s += " E="; 218 230 if (fMcEvt->GetEnergy()>1000) … … 224 236 s += "m ZA="; 225 237 s += (int)(fMcEvt->GetTheta()*180/TMath::Pi()+.5); 226 s += " °";238 s += "\xb0 "; 227 239 s += fMcEvt->GetPhotElfromShower(); 228 240 s += "PhEl"; 229 //s += "}";241 s += "}"; 230 242 } 231 243 -
trunk/MagicSoft/Mars/mhist/MHEvent.h
r2482 r2488 15 15 class MPedestalCam; 16 16 class MImgCleanStd; 17 class M RelSignal;17 class MCameraSignal; 18 18 19 19 class MHEvent : public MH … … 34 34 MPedestalCam *fPedestalCam; //! 35 35 MImgCleanStd *fImgCleanStd; //! 36 MCameraSignal *fCamSignal; //! 36 37 37 38 MRawEvtData *fClone; //->
Note:
See TracChangeset
for help on using the changeset viewer.