Changeset 1004 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 10/29/01 11:35:19 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawCrateArray.cc
r859 r1004 51 51 MRawCrateArray::MRawCrateArray(const char *name, const char *title) 52 52 { 53 *fName = name ? name : "MRawCrateArray";54 *fTitle = title ? title : "Array of MRawCrateData Information";53 fName = name ? name : "MRawCrateArray"; 54 fTitle = title ? title : "Array of MRawCrateData Information"; 55 55 56 56 // -
trunk/MagicSoft/Mars/mraw/MRawCrateData.h
r988 r1004 4 4 #ifndef MAGIC_H 5 5 #include "MAGIC.h" 6 #endif7 #ifndef ROOT_TObject8 #include <TObject.h>9 6 #endif 10 7 … … 21 18 MRawCrateData(); 22 19 23 ~MRawCrateData() 24 { 25 } 26 27 UChar_t GetDAQCrateNumber() const 28 { 29 return fDAQCrateNumber; 30 } 31 32 UInt_t GetFADCEvtNumber() const 33 { 34 return fFADCEvtNumber; 35 } 36 37 UInt_t GetFADCClockTick() const 38 { 39 return fFADCClockTick; 40 } 20 UChar_t GetDAQCrateNumber() const { return fDAQCrateNumber; } 21 UInt_t GetFADCEvtNumber() const { return fFADCEvtNumber; } 22 UInt_t GetFADCClockTick() const { return fFADCClockTick; } 41 23 42 24 void Print(Option_t *t=NULL) const; -
trunk/MagicSoft/Mars/mraw/MRawEvtData.cc
r859 r1004 71 71 MRawEvtData::MRawEvtData(const char *name, const char *title) 72 72 { 73 *fName = name ? name : "MRawEvtData";74 *fTitle = title ? title : "Raw Event Data Information";73 fName = name ? name : "MRawEvtData"; 74 fTitle = title ? title : "Raw Event Data Information"; 75 75 76 76 InitArrays(); … … 241 241 242 242 TGraph *graph = new TGraph(n, x, y); 243 graph->SetMaximum (256);244 graph->SetMinimum (0);243 graph->SetMaximum(256); 244 graph->SetMinimum(0); 245 245 246 246 graph->SetBit(kCanDelete); -
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc
r988 r1004 111 111 MRawEvtHeader::MRawEvtHeader(const char *name, const char *title) 112 112 { 113 *fName = name ? name : "MRawEvtHeader";114 *fTitle = title ? title : "Raw Event Header Information";113 fName = name ? name : "MRawEvtHeader"; 114 fTitle = title ? title : "Raw Event Header Information"; 115 115 116 116 // -
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.h
r988 r1004 12 12 13 13 // 14 // Trigger Type d(TT)14 // Trigger Type (TT) 15 15 // 16 16 enum { -
trunk/MagicSoft/Mars/mraw/MRawFileRead.cc
r961 r1004 91 91 MRawFileRead::MRawFileRead(const char *fname, const char *name, const char *title) 92 92 { 93 *fName = name ? name : "MRawFileRead";94 *fTitle = title ? title : "Read task to read DAQ binary files";93 fName = name ? name : "MRawFileRead"; 94 fTitle = title ? title : "Read task to read DAQ binary files"; 95 95 96 96 // -
trunk/MagicSoft/Mars/mraw/MRawFileWrite.cc
r949 r1004 65 65 const char *name, const char *title) 66 66 { 67 *fName = name ? name : "MRawFileWrite";68 *fTitle = title ? title : "Write task to write DAQ root files";67 fName = name ? name : "MRawFileWrite"; 68 fTitle = title ? title : "Write task to write DAQ root files"; 69 69 70 70 // … … 159 159 // 160 160 TTree *rh = new TTree("RunHeaders", "Run headers of all runs in this file"); 161 TBranch *tb = rh->Branch("MRawRunHeader", "MRawRunHeader", &fRawRunHeader, 32000 , 1);161 TBranch *tb = rh->Branch("MRawRunHeader", "MRawRunHeader", &fRawRunHeader, 32000); 162 162 rh->Fill(); 163 163 rh->Write(); … … 175 175 // create all branches which are necessary 176 176 // 177 fTData ->Branch("MTime ", "MTime", &fRawEvtTime, 32000, 1);178 fTPedestal ->Branch("MTime ", "MTime", &fRawEvtTime, 32000, 1);179 fTCalibration->Branch("MTime ", "MTime", &fRawEvtTime, 32000, 1);180 fTData ->Branch("MRawEvtHeader ", "MRawEvtHeader", &fRawEvtHeader, 32000, 1);181 fTPedestal ->Branch("MRawEvtHeader ", "MRawEvtHeader", &fRawEvtHeader, 32000, 1);182 fTCalibration->Branch("MRawEvtHeader ", "MRawEvtHeader", &fRawEvtHeader, 32000, 1);183 fTData ->Branch("MRawEvtData ", "MRawEvtData", &fRawEvtData, 32000, 1);184 fTPedestal ->Branch("MRawEvtData ", "MRawEvtData", &fRawEvtData, 320000, 1);185 fTCalibration->Branch("MRawEvtData ", "MRawEvtData", &fRawEvtData, 320000, 1);177 fTData ->Branch("MTime.", "MTime", &fRawEvtTime, 32000); 178 fTPedestal ->Branch("MTime.", "MTime", &fRawEvtTime, 32000); 179 fTCalibration->Branch("MTime.", "MTime", &fRawEvtTime, 32000); 180 fTData ->Branch("MRawEvtHeader.", "MRawEvtHeader", &fRawEvtHeader, 32000); 181 fTPedestal ->Branch("MRawEvtHeader.", "MRawEvtHeader", &fRawEvtHeader, 32000); 182 fTCalibration->Branch("MRawEvtHeader.", "MRawEvtHeader", &fRawEvtHeader, 32000); 183 fTData ->Branch("MRawEvtData.", "MRawEvtData", &fRawEvtData, 32000); 184 fTPedestal ->Branch("MRawEvtData.", "MRawEvtData", &fRawEvtData, 320000); 185 fTCalibration->Branch("MRawEvtData.", "MRawEvtData", &fRawEvtData, 320000); 186 186 //fTree->Branch("MRawCrateArray", fRawCrateArray->GetArray(), 32000, 1); 187 fTData ->Branch("MRawCrateArray ", "MRawCrateArray", &fRawCrateArray, 32000, 1);188 fTPedestal ->Branch("MRawCrateArray ", "MRawCrateArray", &fRawCrateArray, 32000, 1);189 fTCalibration->Branch("MRawCrateArray ", "MRawCrateArray", &fRawCrateArray, 32000, 1);187 fTData ->Branch("MRawCrateArray.", "MRawCrateArray", &fRawCrateArray, 32000); 188 fTPedestal ->Branch("MRawCrateArray.", "MRawCrateArray", &fRawCrateArray, 32000); 189 fTCalibration->Branch("MRawCrateArray.", "MRawCrateArray", &fRawCrateArray, 32000); 190 190 191 191 return kTRUE; -
trunk/MagicSoft/Mars/mraw/MRawFileWrite.h
r860 r1004 19 19 { 20 20 private: 21 MParList *pParList; 21 MParList *pParList; 22 22 23 MTime *fRawEvtTime; 24 MRawRunHeader *fRawRunHeader; 25 MRawEvtHeader *fRawEvtHeader; 26 MRawEvtData *fRawEvtData; 27 MRawCrateArray *fRawCrateArray; 23 MTime *fRawEvtTime; 24 MRawRunHeader *fRawRunHeader; 25 MRawEvtHeader *fRawEvtHeader; 26 MRawEvtData *fRawEvtData; 27 MRawCrateArray *fRawCrateArray; 28 28 29 29 TTree *fTData; //! -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc
r988 r1004 48 48 MRawRunHeader::MRawRunHeader(const char *name, const char *title) : fPixAssignment(NULL) 49 49 { 50 *fName = name ? name : "MRawRunHeader";51 *fTitle = title ? title : "Raw Run Header Information";50 fName = name ? name : "MRawRunHeader"; 51 fTitle = title ? title : "Raw Run Header Information"; 52 52 53 53 fPixAssignment = new MArrayS(0); 54 55 // This is only valid for root > 3.056 // IsA()->CanIgnoreTObjectStreamer();57 54 } 58 55 … … 132 129 switch (fRunType) 133 130 { 134 case 0:131 case kRTData: 135 132 *fLog << "Data"; 136 133 break; 137 case 1:134 case kRTPedestal: 138 135 *fLog << "Pedestal"; 139 136 break; 140 case 2:137 case kRTCalibration: 141 138 *fLog << "Calibration"; 142 139 break; 143 case 256:140 case kRTMonteCarlo: 144 141 *fLog << "Monte Carlo Data"; 145 142 break; -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.h
r988 r1004 19 19 // 20 20 const UShort_t kMagicNumber = 0xc0c0; 21 22 enum { 23 kRTData = 0, 24 kRTPedestal = 1, 25 kRTCalibration = 2, 26 kRTMonteCarlo = 256 27 }; 21 28 22 29 class MRawRunHeader : public MParContainer … … 50 57 ~MRawRunHeader(); 51 58 52 void SetMagicNumber(UShort_t a){fMagicNumber=a;} 53 void SetFormatVersion(UShort_t a){fFormatVersion=a;} 54 void SetSoftVersion(UShort_t a){fSoftVersion=a;} 55 void SetRunType(UShort_t a){ fRunType=a;} 56 void SetRunNumber(UInt_t a){fRunNumber=a;} 59 void SetMagicNumber(UShort_t a) { fMagicNumber=a; } 60 void SetFormatVersion(UShort_t a){ fFormatVersion=a; } 61 void SetSoftVersion(UShort_t a) { fSoftVersion=a; } 62 void SetRunType(UShort_t a) { fRunType=a; } 63 void SetRunNumber(UInt_t a) { fRunNumber=a; } 64 void SetNumEvents(UInt_t a) { fNumEvents=a; } 57 65 void SetNumSamples(UShort_t low, UShort_t high) 58 {fNumSamplesLoGain=low;fNumSamplesHiGain=high;} 59 void SetNumEvents(UInt_t a){fNumEvents=a;} 66 { 67 fNumSamplesLoGain=low; 68 fNumSamplesHiGain=high; 69 } 60 70 61 UShort_t GetMagicNumber() const { return fMagicNumber; }62 UShort_t GetFormatversion() const { return fFormatVersion; }63 UShort_t GetSoftVersion() const { return fSoftVersion; }64 UShort_t GetRunType() const { return fRunType; }65 UInt_t GetRunNumber() const { return fRunNumber; }66 const Char_t *GetProjectName() const 67 const Char_t *GetSourceName() const 71 UShort_t GetMagicNumber() const { return fMagicNumber; } 72 UShort_t GetFormatversion() const { return fFormatVersion; } 73 UShort_t GetSoftVersion() const { return fSoftVersion; } 74 UShort_t GetRunType() const { return fRunType; } 75 UInt_t GetRunNumber() const { return fRunNumber; } 76 const Char_t *GetProjectName() const { return fProjectName; } 77 const Char_t *GetSourceName() const { return fSourceName; } 68 78 //Float_t GetSourceRa() const { return fSourceRA; } 69 79 //Float_t GetSourceDec() const { return fSourceDEC; } 70 80 const Char_t *GetSourceEpocheChar() const { return fSourceEpochChar; } 71 UShort_t GetSourceEpocheDate() const { return fSourceEpochDate; }72 Float_t GetMJD() const { return fMJD; }73 UShort_t GetDateYear() const { return fDateYear; }74 Byte_t GetDateMonth() const { return fDateMonth; }75 Byte_t GetDateDay() const { return fDateDay; }76 UShort_t GetNumCrates() const { return fNumCrates; }77 UShort_t GetNumPixInCrate() const { return fNumPixInCrate; }78 UShort_t GetNumSamplesLoGain() const { return fNumSamplesLoGain; }79 UShort_t GetNumSamplesHiGain() const { return fNumSamplesHiGain; }80 UShort_t GetNumEvents() const { return fNumEvents; }81 UShort_t GetSourceEpocheDate() const { return fSourceEpochDate; } 82 Float_t GetMJD() const { return fMJD; } 83 UShort_t GetDateYear() const { return fDateYear; } 84 Byte_t GetDateMonth() const { return fDateMonth; } 85 Byte_t GetDateDay() const { return fDateDay; } 86 UShort_t GetNumCrates() const { return fNumCrates; } 87 UShort_t GetNumPixInCrate() const { return fNumPixInCrate; } 88 UShort_t GetNumSamplesLoGain() const { return fNumSamplesLoGain; } 89 UShort_t GetNumSamplesHiGain() const { return fNumSamplesHiGain; } 90 UShort_t GetNumEvents() const { return fNumEvents; } 81 91 UShort_t GetPixAssignment(UShort_t i) const; 82 92
Note:
See TracChangeset
for help on using the changeset viewer.