Changeset 938
- Timestamp:
- 09/20/01 16:26:50 (23 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MCerPhotPix.h
r937 r938 8 8 class MCerPhotPix : public TObject 9 9 { 10 private: 11 12 Int_t fPixId ; // the pixel Id 13 Bool_t fIsUsed ; // the pixel is used for calculations --> kTRUE 14 Bool_t fIsCore ; // the pixel is a Core pixel --> kTRUE 15 Float_t fPhot ; // The number of Cerenkov photons 16 Float_t fErrPhot ; // the error of fPhot 17 18 public: 19 20 MCerPhotPix(Int_t pix = -1, Float_t phot=0. , Float_t errphot=0.) ; 10 private: 21 11 22 void Print(Option_t *opt = NULL) ;23 24 Int_t GetPixId() const { return fPixId ; }25 Float_t GetNumPhotons() const { return fPhot ; }26 Float_t GetErrorPhot() const { return fErrPhot ; }12 Int_t fPixId; // the pixel Id 13 Bool_t fIsUsed; // the pixel is used for calculations --> kTRUE 14 Bool_t fIsCore; // the pixel is a Core pixel --> kTRUE 15 Float_t fPhot; // The number of Cerenkov photons 16 Float_t fErrPhot; // the error of fPhot 27 17 28 void SetPixelContent(Int_t pix, Float_t phot, Float_t errphot); 18 public: 29 19 30 Bool_t IsPixelUsed() const { return fIsUsed ; } 31 void SetPixelUnused() { fIsUsed = kFALSE ; } 32 void SetPixelUsed() { fIsUsed = kTRUE ; } 20 MCerPhotPix(Int_t pix = -1, Float_t phot=0., Float_t errphot=0.); 33 21 34 void SetCorePixel() { fIsCore = kTRUE ; } 35 Bool_t IsCorePixel() const { return fIsCore ; } 22 void Print(Option_t *opt = NULL) ; 36 23 37 void SetNumPhotons(Float_t f) { fPhot = f; } 38 void SetErrorPhot(Float_t f) { fErrPhot = f; } 39 40 ClassDef(MCerPhotPix, 1) // class containing information about the Cerenkov Photons in a pixel 41 } ; 24 Int_t GetPixId() const { return fPixId; } 25 Float_t GetNumPhotons() const { return fPhot; } 26 Float_t GetErrorPhot() const { return fErrPhot; } 27 28 void SetPixelContent(Int_t pix, Float_t phot, Float_t errphot); 29 30 Bool_t IsPixelUsed() const { return fIsUsed; } 31 void SetPixelUnused() { fIsUsed = kFALSE; } 32 void SetPixelUsed() { fIsUsed = kTRUE; } 33 34 void SetCorePixel() { fIsCore = kTRUE; } 35 Bool_t IsCorePixel() const { return fIsCore; } 36 37 void SetNumPhotons(Float_t f) { fPhot = f; } 38 void SetErrorPhot(Float_t f) { fErrPhot = f; } 39 40 ClassDef(MCerPhotPix, 1) // class containing information about the Cerenkov Photons in a pixel 41 }; 42 42 43 43 #endif -
trunk/MagicSoft/Mars/mdatacheck/DataCheckLinkDef.h
r710 r938 6 6 7 7 #pragma link C++ class MShowSpect; 8 #pragma link C++ class MViewAdcSpectra; 8 9 #pragma link C++ class MDumpEvtHeader; 9 10 -
trunk/MagicSoft/Mars/mdatacheck/MViewAdcSpectra.cc
r749 r938 44 44 #include "MHFadcCam.h" 45 45 46 ClassImp(MViewAdcSpectra); 47 48 // ================================================================================ 49 // 50 // default constructor 51 // 46 52 MViewAdcSpectra::MViewAdcSpectra() 47 53 { 48 // default constructor49 } 54 fHistosAdc = new MHFadcCam; 55 } 50 56 57 // ================================================================================ 58 // 59 // default destructor 60 // 51 61 MViewAdcSpectra::~MViewAdcSpectra() 52 62 { 53 // default destructor54 63 delete fHistosAdc; 55 64 } … … 57 66 58 67 // ================================================================================ 59 Bool_t MViewAdcSpectra::AdcSpectra ( Char_t *inputfile, Char_t *treeName ) 68 // 69 // This job reads in the FADC data from all events and fills 70 // the spectrum for each pmt pixel. 71 // 72 Bool_t MViewAdcSpectra::AdcSpectra(Char_t *inputfile, Char_t *treeName) 60 73 { 61 // This job reads in the FADC data from all events and fills 62 // the spectrum for each pmt pixel. 63 // 74 cout << "MViewAdcSpectra:: Analyse the tree '" << treeName << "'"; 75 cout << "in the file '" << inputfile << "'" << endl; 64 76 65 cout << "PedAdcSpectra:: Analyse the tree " << treeName 66 << "in the file " << inputfile << endl ; 67 68 // create a (empty) list of parameters which can be used by the tasks 69 // and an (empty) list of tasks which should be executed 70 // connect them in the required way. 71 72 // 73 // create the data containers for the raw data 74 // 75 MParList plist; 76 77 MRawRunHeader runheader; 78 plist.AddToList(&runheader); 77 // 78 // create a (empty) list of parameters which can be used by the tasks 79 // and an (empty) list of tasks which should be executed 80 // connect them in the required way. 81 // 79 82 80 MRawEvtHeader evtheader; 81 plist.AddToList(&evtheader); 82 83 MRawEvtData evtdata; 84 plist.AddToList(&evtdata); 85 86 MRawCrateArray cratearray; 87 plist.AddToList(&cratearray); 88 89 MTime evttime("MTime"); 90 plist.AddToList(&evttime); 83 // 84 // create the data containers for the raw data 85 // 86 MParList plist; 91 87 92 fHistosAdc= new MHFadcCam;93 plist.AddToList( fHistosAdc );88 MRawRunHeader runheader; 89 plist.AddToList(&runheader); 94 90 95 // 96 // set up the tasks for this job 97 // 98 MTaskList tasks; 99 plist.AddToList(&tasks); 91 MRawEvtHeader evtheader; 92 plist.AddToList(&evtheader); 100 93 101 MReadTree readin ( treeName, inputfile );102 tasks.AddToList( &readin );94 MRawEvtData evtdata; 95 plist.AddToList(&evtdata); 103 96 104 // MDumpEvtHeader *dumpheader = new MDumpEvtHeader() ; 105 // tasks->AddToList( dumpheader ) ; 106 107 MFillHFadc fillspect; 108 tasks.AddToList( &fillspect ) ; 97 MRawCrateArray cratearray; 98 plist.AddToList(&cratearray); 109 99 110 MShowSpect showspect( "MHFadcCam" );111 tasks.AddToList( &showspect );100 MTime evttime("MTime"); 101 plist.AddToList(&evttime); 112 102 113 // set up the loop for the processing 114 115 MEvtLoop magic; 116 magic.SetParList(&plist); 103 plist.AddToList(fHistosAdc); 117 104 118 // start the loop running 105 // 106 // set up the tasks for this job 107 // 108 MTaskList tasks; 109 plist.AddToList(&tasks); 119 110 120 magic.Eventloop() ; 121 122 return kTRUE ; 111 MReadTree readin(treeName, inputfile); 112 tasks.AddToList(&readin); 123 113 124 } 114 // 115 // MDumpEvtHeader *dumpheader = new MDumpEvtHeader() ; 116 // tasks->AddToList( dumpheader ) ; 117 // 118 MFillHFadc fillspect; 119 tasks.AddToList(&fillspect); 120 121 MShowSpect showspect("MHFadcCam"); 122 tasks.AddToList(&showspect); 123 124 // 125 // set up the loop for the processing 126 // 127 MEvtLoop magic; 128 magic.SetParList(&plist); 129 130 // 131 // start the loop running 132 // 133 magic.Eventloop(); 134 135 return kTRUE; 136 } -
trunk/MagicSoft/Mars/mdatacheck/MViewAdcSpectra.h
r698 r938 8 8 class MHFadcCam; 9 9 10 class MViewAdcSpectra { 10 class MViewAdcSpectra 11 { 12 private: 13 MHFadcCam *fHistosAdc; 11 14 12 private:15 public: 13 16 14 MHFadcCam *fHistosAdc; 17 MViewAdcSpectra(); 18 virtual ~MViewAdcSpectra(); 19 20 Bool_t AdcSpectra(Char_t *inputFile, Char_t *treeName); 15 21 16 public: 17 18 MViewAdcSpectra() ; 19 20 ~MViewAdcSpectra() ; 21 22 Bool_t AdcSpectra( Char_t *inputFile , Char_t *treeName ) ; 22 // Bool_t CrAdcSpectra ( Char_t *inputFile ) ; 23 // Bool_t PedTdcSpectra( Char_t *inputFile ) ; 24 // Bool_t CrTdcSpectra ( Char_t *inputFile ) ; 23 25 24 // Bool_t CrAdcSpectra ( Char_t *inputFile ) ; 25 26 // Bool_t PedTdcSpectra( Char_t *inputFile ) ; 27 // Bool_t CrTdcSpectra ( Char_t *inputFile ) ; 28 29 } ; 26 ClassDef(MViewAdcSpectra, 0) // Part of the gui, displays Adc Spectras 27 }; 30 28 31 29 #endif -
trunk/MagicSoft/Mars/mmain/MBrowser.cc
r749 r938 39 39 40 40 #include <iostream.h> 41 42 ClassImp(MBrowser); 41 43 42 44 enum { -
trunk/MagicSoft/Mars/mmain/MBrowser.h
r719 r938 91 91 92 92 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2); 93 94 ClassDef(MBrowser, 0) // Base class for the gui 93 95 } ; 94 96 -
trunk/MagicSoft/Mars/mmain/MainLinkDef.h
r714 r938 4 4 #pragma link off all classes; 5 5 #pragma link off all functions; 6 7 #pragma link C++ class MBrowser; 6 8 7 9 #pragma link C++ class MMars;
Note:
See TracChangeset
for help on using the changeset viewer.