Changeset 4117 for trunk/MagicSoft/Mars/mtemp/mifae/library
- Timestamp:
- 05/21/04 17:28:02 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp/mifae/library
- Files:
-
- 4 added
- 2 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/library/IFAELinkDef.h
r4072 r4117 5 5 #pragma link off all functions; 6 6 7 #pragma link C++ class MDCA+; 7 #pragma link C++ class MDisplay+; 8 #pragma link C++ class MHillasDisplay+; 8 9 #pragma link C++ class MPSFFit+; 9 10 #pragma link C++ class MPSFFitCalc+; -
trunk/MagicSoft/Mars/mtemp/mifae/library/MSrcPlace.cc
r4094 r4117 39 39 // Output Containers: 40 40 // MSrcPosCam 41 // MDCA42 41 // 43 42 ////////////////////////////////////////////////////////////////////////////// … … 51 50 #include "MSrcPlace.h" 52 51 #include "MSrcPosCam.h" 53 #include "MDCA.h"54 52 55 53 #include "MLog.h" … … 67 65 // Default constructor. The first argument is the name of the internal histo, 68 66 // the second (third) argument is the name of the input (output) container 69 // containing the source position in the camera plain. Fourth argument is the 70 // name of the output MDCA container. 71 // 72 MSrcPlace::MSrcPlace(const char* srcPosIn, const char* srcPosOut, const char* dca, const char *name, const char *title) 73 : fSrcPosIn(NULL), fSrcPosOut(NULL), fDCA(NULL), fHistoName("SrcPosHist"), 67 // containing the source position in the camera plain. 68 // 69 MSrcPlace::MSrcPlace(const char* srcPosIn, const char* srcPosOut, const char *name, const char *title) 70 : fSrcPosIn(NULL), fSrcPosOut(NULL), fHistoName("SrcPosHist"), 74 71 fHistoBinPrec(1.), fHistPos(NULL) 75 72 { … … 79 76 fSrcPosInName = srcPosIn; 80 77 fSrcPosOutName = srcPosOut; 81 fDCAName = dca;82 78 83 79 fMode=kOn; … … 116 112 fHistPos->GetRandom2(x,y); 117 113 fSrcPosOut->SetXY(x,y); 118 fDCA->SetRefPoint(x,y);119 114 } 120 115 } … … 153 148 fSrcPosOut = (MSrcPosCam*)pList->FindCreateObj("MSrcPosCam", AddSerialNumber(fSrcPosOutName)); 154 149 if(!fSrcPosOut) 155 return kFALSE;156 }157 158 // look for/create MDCA159 fDCA = (MDCA*)pList->FindObject(AddSerialNumber(fDCAName), "MDCA");160 if (!fDCA)161 {162 *fLog << warn << AddSerialNumber(fDCAName) << " [MDCA] not found... creating default container." << endl;163 fDCA = (MDCA*)pList->FindCreateObj("MDCA", AddSerialNumber(fDCAName));164 if(!fDCA)165 150 return kFALSE; 166 151 } -
trunk/MagicSoft/Mars/mtemp/mifae/library/MSrcPlace.h
r4094 r4117 6 6 #endif 7 7 8 class MDCA;9 8 class MSrcPosCam; 10 9 class TH2F; … … 18 17 MSrcPosCam* fSrcPosIn; // Pointer to the input source position container 19 18 MSrcPosCam* fSrcPosOut; // Pointer to the output source position container 20 MDCA* fDCA; // Pointer to the output MDCA container21 19 22 20 TString fSrcPosInName; // Name of the input MSrcPosCam object 23 21 TString fSrcPosOutName; // Name of the output MSrcPosCam object 24 TString fDCAName; // Name of the MDCA object25 22 26 23 TString fHistoName; // Name of internal histogram … … 42 39 public: 43 40 MSrcPlace(const char* srcin="MSrcPosCam",const char* srcout="MSrcPosCam", 44 const char* dcaout="MDCA",45 41 const char* name=NULL, const char* title=NULL); 46 42 … … 50 46 void SetInputSrcPosName(TString name) {fSrcPosInName=name;} 51 47 void SetOutputSrcPosName(TString name) {fSrcPosOutName=name;} 52 void SetDCAName(TString name) {fDCAName=name;}53 48 void SetInternalHistoName(TString name) {fHistoName=name;} 54 49 void SetInternalHistoBinSize(Float_t size){fHistoBinPrec=size;} … … 59 54 MSrcPosCam* GetInputSrcPosCam() {return fSrcPosIn;} 60 55 MSrcPosCam* GetOutputSrcPosCam() {return fSrcPosOut;} 61 MDCA* GetDCA() {return fDCA;}62 56 TString GetInternalHistoName() {return fHistoName;} 63 57 -
trunk/MagicSoft/Mars/mtemp/mifae/library/MSrcPosFromFile.cc
r4094 r4117 42 42 #include "MRawRunHeader.h" 43 43 #include "MSrcPosCam.h" 44 #include "MDCA.h"45 44 46 45 #include "MLog.h" … … 156 155 157 156 GetOutputSrcPosCam()->SetXY(fLastValidSrcPosCam->GetX(),fLastValidSrcPosCam->GetY()); 158 GetDCA()->SetRefPoint(fLastValidSrcPosCam->GetX(),fLastValidSrcPosCam->GetY());159 157 160 158 return kTRUE; -
trunk/MagicSoft/Mars/mtemp/mifae/library/MSrcRotate.cc
r4094 r4117 33 33 // Output Containers: 34 34 // MSrcPosCam 35 // MDCA36 35 // 37 36 ////////////////////////////////////////////////////////////////////////////// … … 48 47 #include "MObservatory.h" 49 48 #include "MSrcPosCam.h" 50 #include "MDCA.h"51 49 52 50 #include "MLog.h" … … 66 64 // camera plain 67 65 // 68 MSrcRotate::MSrcRotate(const char* srcPosIn, const char* srcPosOut, const char * dca, const char*name, const char *title)66 MSrcRotate::MSrcRotate(const char* srcPosIn, const char* srcPosOut, const char *name, const char *title) 69 67 : fRA(0), fDEC(0), fRefMJD(0), fRunNumber(0) 70 68 { … … 74 72 SetInputSrcPosName(srcPosIn); 75 73 SetOutputSrcPosName(srcPosOut); 76 SetDCAName(dca);77 74 78 75 SetInternalHistoName(TString(fName)+"Hist"); … … 181 178 MSrcPosCam* srcposIn = GetInputSrcPosCam(); 182 179 MSrcPosCam* srcposOut = GetOutputSrcPosCam(); 183 MDCA* dca = GetDCA();184 180 185 181 Float_t c = TMath::Cos(rotationAngle); … … 196 192 197 193 srcposOut->SetXY(newX,newY); 198 dca->SetRefPoint(newX,newY);199 194 200 195 return kTRUE; -
trunk/MagicSoft/Mars/mtemp/mifae/library/MSrcRotate.h
r4094 r4117 32 32 public: 33 33 MSrcRotate(const char* srcIn="MSrcPosCam",const char* srcOut="MSrcPosCam", 34 const char* dca="MDCA",35 34 const char* name=NULL, const char* title=NULL); 36 35 -
trunk/MagicSoft/Mars/mtemp/mifae/library/MSrcTranslate.cc
r4094 r4117 36 36 // Output Containers: 37 37 // MSrcPosCam 38 // MDCA39 38 // 40 39 ////////////////////////////////////////////////////////////////////////////// … … 47 46 #include "MSrcTranslate.h" 48 47 #include "MSrcPosCam.h" 49 #include "MDCA.h"50 48 51 49 #include "MLog.h" … … 65 63 // camera plain 66 64 // 67 MSrcTranslate::MSrcTranslate(const char* srcPosIn, const char* srcPosOut, const char * dca, const char*name, const char *title)65 MSrcTranslate::MSrcTranslate(const char* srcPosIn, const char* srcPosOut, const char *name, const char *title) 68 66 : fShiftX(0.), fShiftY(0.), fTranslationIsRelative(kTRUE) 69 67 { … … 73 71 SetInputSrcPosName(srcPosIn); 74 72 SetOutputSrcPosName(srcPosOut); 75 SetDCAName(dca);76 73 77 74 SetInternalHistoName(TString(fName)+"Hist"); … … 84 81 Int_t MSrcTranslate::PreProcess(MParList *pList) 85 82 { 86 // look for/create MSrcPosCam and DCA83 // look for/create MSrcPosCam 87 84 if(!MSrcPlace::PreProcess(pList)) 88 85 return kFALSE; … … 103 100 104 101 MSrcPosCam* srcPosOut = GetOutputSrcPosCam(); 105 MDCA* dca = GetDCA();106 102 107 103 if(fTranslationIsRelative) … … 118 114 119 115 srcPosOut->SetXY(newX,newY); 120 dca->SetRefPoint(newX,newY);121 116 122 117 return kTRUE; -
trunk/MagicSoft/Mars/mtemp/mifae/library/MSrcTranslate.h
r4094 r4117 18 18 public: 19 19 MSrcTranslate(const char* srcIn="MSrcPosCam", const char* srcOut="MSrcPosCam", 20 const char* dca="MDCA",21 20 const char* name=NULL, const char* title=NULL); 22 21 -
trunk/MagicSoft/Mars/mtemp/mifae/library/Makefile
r4072 r4117 48 48 49 49 SRCFILES = \ 50 MDCA.cc \ 50 MDisplay.cc \ 51 MHillasDisplay.cc \ 51 52 MPSFFit.cc \ 52 53 MPSFFitCalc.cc \
Note:
See TracChangeset
for help on using the changeset viewer.