Changeset 4826
- Timestamp:
- 09/01/04 18:06:06 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4824 r4826 19 19 20 20 -*-*- END OF LINE -*-*- 21 22 2004/09/1: Thomas Bretz 23 24 * mfileio/MWriteRootFile.[h,cc]: 25 - do not add a container which is already in the list 26 - replaced fNameCont by fTitle in MRootFileBranch 27 28 * mgeom/MGeomPix.[h,cc]: 29 - declared tan(30) 30 - added GetL member function 31 32 * mhist/MHAlpha.cc: 33 - added a logging output 34 35 * mhist/MHFalseSource.[h,cc]: 36 - shift by MSrcPosCam introduced 37 - fixed on-off plot 38 - fixed changed return value MHillasSrc::Calc 39 - as a workaround for some crashes removed SetBit(kCanDelete) 40 of catalog 41 42 * mimage/MHHillasSrc.cc, mimage/MHillasSrc.cc: 43 - some small fixes to new plots 44 - some cosmetics to the code 45 46 * mimage/MHillas.cc, mimage/MHillasExt.cc, 47 mimage/MImagePar.cc, mimage/MImgCleanStd.cc, 48 mimage/MNewImagePar.cc: 49 - removed obsolete include of fstream 50 51 * mpointing/Makefile, mpointing/PointingLinkDef.h: 52 - added new class MPointingPosFromModel 53 54 * mpointing/MPointingPosFromModel.[h,cc]: 55 - added 56 57 58 21 59 2004/08/31: Daniel Mazin 22 60 23 61 * manalysis/MSigmabarCalc.h: 24 - added function SetNamePedPhotCam to set the name of the MPedPhotCam container 62 - added function SetNamePedPhotCam to set the name of the 63 MPedPhotCam container 64 65 25 66 26 67 2004/08/31: Thomas Bretz -
trunk/MagicSoft/Mars/NEWS
r4767 r4826 54 54 - The the mars-executable Camera Display can now also read 55 55 calibrated data files written by callisto/MJCalibrateSignal 56 57 - Added a new class which can calculate the source position in 58 the camera from a pointing model known to be correct and 59 the pointing model used for observations (MSrcPosFromModel) 56 60 57 61 -
trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc
r4817 r4826 233 233 name += branch->GetName(); 234 234 235 *fLog << " " << name.Strip(TString::kTrailing, '.') << ": \t" << branch->GetEntries() << " entries." << endl;235 *fLog << " " << name.Strip(TString::kTrailing, '.') << ": \t" << (ULong_t)branch->GetEntries() << " entries." << endl; 236 236 } 237 237 … … 240 240 while ((t=(TTree*)NextTree())) 241 241 if (t->TestBit(kIsNewTree)) 242 *fLog << " " << t->GetName() << ": \t" << t->GetEntries() << " entries." << endl;242 *fLog << " " << t->GetName() << ": \t" << (ULong_t)t->GetEntries() << " entries." << endl; 243 243 *fLog << endl; 244 244 } … … 257 257 void MWriteRootFile::AddContainer(const char *cname, const char *tname, Bool_t must) 258 258 { 259 TIter Next(&fBranches); 260 TObject *o=0; 261 while ((o=Next())) 262 if (TString(o->GetName())==TString(tname) && TString(o->GetTitle())==TString(cname)) 263 { 264 *fLog << "WARNING - Container '" << cname << "' in Tree '" << tname << "' already scheduled... ignored." << endl; 265 return; 266 } 267 259 268 // 260 269 // create a new entry in the list of branches to write and … … 281 290 Bool_t must) 282 291 { 292 TIter Next(&fBranches); 293 TObject *o=0; 294 while ((o=Next())) 295 if (TString(o->GetName())==TString(tname) && 296 static_cast<MRootFileBranch*>(o)->GetContainer()==cont) 297 { 298 *fLog << "WARNING - Container " << cont << " in Tree '" << tname << "' already scheduled... ignored." << endl; 299 return; 300 } 301 283 302 // 284 303 // create a new entry in the list of branches to write and -
trunk/MagicSoft/Mars/mfileio/MWriteRootFile.h
r4698 r4826 23 23 24 24 MParContainer *fContainer; 25 TString fContName;26 25 27 26 Bool_t fMust; … … 37 36 { 38 37 Init(NULL, kFALSE); 39 f ContName = "";38 fTitle = ""; 40 39 } 41 40 … … 44 43 { 45 44 Init(tname, must); 46 f ContName = cname;45 fTitle = cname; 47 46 } 48 47 49 48 MRootFileBranch(MParContainer *cont, const char *tname=NULL, Bool_t must=kFALSE) 50 : fTree(NULL), fBranch(NULL), f ContName(""), fMust(0)49 : fTree(NULL), fBranch(NULL), fMust(0) 51 50 { 52 51 Init(tname, must); 52 fTitle = ""; 53 53 fContainer = cont; 54 54 } … … 58 58 void *GetAddress() { return &fContainer; } 59 59 TBranch *GetBranch() const { return fBranch; } 60 const char *GetContName() const { return f ContName; }60 const char *GetContName() const { return fTitle; } 61 61 Bool_t MustHave() const { return fMust; } 62 62 -
trunk/MagicSoft/Mars/mgeom/MGeomPix.cc
r3666 r4826 65 65 using namespace std; 66 66 67 const Float_t MGeomPix::gsTan30 = tan(30/kRad2Deg); 67 68 const Float_t MGeomPix::gsTan60 = tan(60/kRad2Deg); 68 69 -
trunk/MagicSoft/Mars/mgeom/MGeomPix.h
r3666 r4826 12 12 private: 13 13 static const Float_t gsTan60; // tan(60/kRad2Deg); 14 static const Float_t gsTan30; // tan(30/kRad2Deg); 14 15 15 16 enum { … … 45 46 Float_t GetY() const { return fY; } 46 47 Float_t GetD() const { return fD; } 48 Float_t GetL() const { return fD*gsTan30; } // Length of one of the parallel sides 47 49 UInt_t GetSector() const { return fSector; } 48 50 -
trunk/MagicSoft/Mars/mhist/MHAlpha.cc
r3779 r4826 138 138 const MHillasSrc *hil = dynamic_cast<const MHillasSrc*>(par); 139 139 if (!par) 140 { 141 *fLog << err << dbginf << "MHillasSrc not found... abort." << endl; 140 142 return kFALSE; 143 } 141 144 142 145 alpha = hil->GetAlpha(); -
trunk/MagicSoft/Mars/mhist/MHFalseSource.cc
r4704 r4826 276 276 *fLog << warn << "MTime not found... no derotation." << endl; 277 277 278 fSrcPos = (MSrcPosCam*)plist->FindObject(AddSerialNumber("MSrcPosCam")); 279 if (!fSrcPos) 280 *fLog << warn << "MSrcPosCam not found... no translation." << endl; 281 278 282 fObservatory = (MObservatory*)plist->FindObject(AddSerialNumber("MObservatory")); 279 283 if (!fObservatory) … … 341 345 // convert degrees to millimeters 342 346 v *= 1./fMm2Deg; 347 348 if (fSrcPos) 349 v += fSrcPos->GetXY(); 350 343 351 src.SetXY(v); 344 352 345 353 // Source dependant hillas parameters 346 if ( !hsrc.Calc(*hil))354 if (hsrc.Calc(*hil)>0) 347 355 { 348 356 *fLog << warn << "Calculation of MHillasSrc failed for x=" << cx[ix] << " y=" << cy[iy] << endl; … … 498 506 if ((h5 = (TH2D*)gPad->FindObject("Alpha_yx_diff"))) 499 507 { 500 h5->Add(h 3, h2, -1);508 h5->Add(h2, h3, -1); 501 509 MakeSymmetric(h5); 502 510 } … … 575 583 *fLog << err << "FIXME - The catalog will never be deleted, because this crashes!" << endl; 576 584 577 stars->SetBit(kCanDelete);585 // stars->SetBit(kCanDelete); 578 586 579 587 return stars; -
trunk/MagicSoft/Mars/mhist/MHFalseSource.h
r3682 r4826 14 14 class MParList; 15 15 class MTime; 16 class MSrcPosCam; 16 17 class MPointingPos; 17 18 class MObservatory; … … 22 23 MTime *fTime; //! container to take the event time from 23 24 MPointingPos *fPointPos; //! container to take pointing position from 25 MSrcPosCam *fSrcPos; //! container for sopurce position in camera 24 26 MObservatory *fObservatory; //! conteiner to take observatory location from 25 27 -
trunk/MagicSoft/Mars/mimage/MHHillasSrc.cc
r4817 r4826 73 73 fDist = new TH1F("Dist", "Dist of Ellipse", 100, 0, 445); 74 74 fCosDA = new TH1F("CosDA", "cos(Delta,Alpha) of Ellipse", 101, -1, 1); 75 fDCA = new TH1F("DCA", "Distance of closest aproach", 101, - 1, 1);76 fDCADelta = new TH1F("DCADelta","Angle between shower and x-axis", 101, 0, 360);75 fDCA = new TH1F("DCA", "Distance of closest aproach", 101, -500, 500); 76 fDCADelta = new TH1F("DCADelta", "Angle between shower and x-axis", 101, 0, 360); 77 77 78 78 fAlpha->SetDirectory(NULL); … … 132 132 ApplyBinning(*plist, "Dist", fDist); 133 133 ApplyBinning(*plist, "DCA", fDCA); 134 ApplyBinning(*plist, "DCADelta", 134 ApplyBinning(*plist, "DCADelta", fDCADelta); 135 135 136 136 return kTRUE; … … 203 203 204 204 fDist->SetXTitle(mmscale ? "Dist [mm]" : "Dist [\\circ]"); 205 fDCA ->SetXTitle(mmscale ? "DCA [mm]": "DCA [\\circ]");205 fDCA ->SetXTitle(mmscale ? "DCA [mm]" : "DCA [\\circ]"); 206 206 207 207 fUseMmScale = mmscale; -
trunk/MagicSoft/Mars/mimage/MHillas.cc
r4710 r4826 60 60 #include "MHillas.h" 61 61 62 #include <fstream>63 64 62 #include <TArrayF.h> 65 63 #include <TEllipse.h> -
trunk/MagicSoft/Mars/mimage/MHillasExt.cc
r4710 r4826 63 63 #include "MHillasExt.h" 64 64 65 #include <fstream>66 65 #include <TArrayF.h> 67 66 -
trunk/MagicSoft/Mars/mimage/MHillasSrc.cc
r4817 r4826 69 69 #include "MHillasSrc.h" 70 70 71 #include <fstream>72 71 #include <TArrayF.h> 73 72 … … 99 98 100 99 fDCA = -1; 101 fDCADelta 100 fDCADelta = 0; 102 101 } 103 102 -
trunk/MagicSoft/Mars/mimage/MImagePar.cc
r4710 r4826 36 36 ///////////////////////////////////////////////////////////////////////////// 37 37 #include "MImagePar.h" 38 39 #include <fstream>40 38 41 39 #include "MLog.h" -
trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc
r4717 r4826 605 605 606 606 #ifdef DEBUG 607 607 *fLog << all << "Calc Islands" << endl; 608 608 #endif 609 609 // Takes roughly 10% of the time -
trunk/MagicSoft/Mars/mimage/MNewImagePar.cc
r4710 r4826 69 69 #include "MNewImagePar.h" 70 70 71 #include <fstream>72 73 71 #include "MLog.h" 74 72 #include "MLogManip.h" -
trunk/MagicSoft/Mars/mpointing/Makefile
r4804 r4826 26 26 MPointingPosCalc.cc \ 27 27 MSrcPosCam.cc \ 28 MSrcPosCalc.cc 28 MSrcPosCalc.cc \ 29 MSrcPosFromModel.cc 29 30 30 31 ############################################################ -
trunk/MagicSoft/Mars/mpointing/PointingLinkDef.h
r4804 r4826 10 10 #pragma link C++ class MPointingPosCalc+; 11 11 12 #pragma link C++ class MSrcPosCam+; 12 13 #pragma link C++ class MSrcPosCalc+; 13 #pragma link C++ class MSrcPos Cam+;14 #pragma link C++ class MSrcPosFromModel+; 14 15 15 16 #endif
Note:
See TracChangeset
for help on using the changeset viewer.