Changeset 2781 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 01/13/04 13:22:38 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mfileio
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MCT1ReadAscii.cc
r2239 r2781 52 52 #include "MCerPhotEvt.h" 53 53 54 #include "MPed estalPix.h"55 #include "MPed estalCam.h"54 #include "MPedPhotPix.h" 55 #include "MPedPhotCam.h" 56 56 57 57 ClassImp(MCT1ReadAscii); … … 154 154 // them if they don't exist. 155 155 // 156 // Initialize the size of the MPed estalCam container to 127 pixels (CT1 camera)156 // Initialize the size of the MPedPhotCam container to 127 pixels (CT1 camera) 157 157 // 158 158 Int_t MCT1ReadAscii::PreProcess(MParList *pList) … … 178 178 // look for the pedestal class in the plist 179 179 // 180 fPedest = (MPed estalCam*)pList->FindCreateObj("MPedestalCam");180 fPedest = (MPedPhotCam*)pList->FindCreateObj("MPedPhotCam"); 181 181 if (!fPedest) 182 182 return kFALSE; … … 210 210 *fIn >> val; 211 211 212 if (val > 0.0)213 (*fPedest)[i].Set PedestalRms(val);212 if (val>0) 213 (*fPedest)[i].Set(0, val); 214 214 } 215 215 } … … 221 221 void MCT1ReadAscii::ReadData() 222 222 { 223 /*224 //225 // clear the list of cerphot-events226 //227 fNphot->Clear();228 */229 230 223 // 231 224 // five unsused numbers … … 242 235 // too the list with it's id, number of photons and error 243 236 // 244 // fNphot->InitSize(127);245 246 237 for (Int_t i = 0; i<127; i++ ) 247 238 { … … 251 242 252 243 if (nphot > 0.0) 253 fNphot->AddPixel(i, nphot, (*fPedest)[i].Get PedestalRms());244 fNphot->AddPixel(i, nphot, (*fPedest)[i].GetRms()); 254 245 } 255 246 fNphot->FixSize(); … … 270 261 // reading event data by the 'switch entry'. 271 262 // After reading it should set the InputStreamID correctly. 272 // ( should use MPedestalCam )263 // (should use MPedPhotCam ) 273 264 // 274 265 -
trunk/MagicSoft/Mars/mfileio/MCT1ReadAscii.h
r2206 r2781 8 8 class TList; 9 9 class MCerPhotEvt; 10 class MPed estalCam;10 class MPedPhotCam; 11 11 12 12 class MCT1ReadAscii : public MTask 13 13 { 14 14 private: 15 ifstream *fIn;// the inputfile16 MCerPhotEvt *fNphot;// the data container for all data.17 MPed estalCam *fPedest; // ct1 pedestals18 TList *fFileNames;// Array which stores the \0-terminated filenames15 ifstream *fIn; // the inputfile 16 MCerPhotEvt *fNphot; // the data container for all data. 17 MPedPhotCam *fPedest; // CT1 pedestals 18 TList *fFileNames; // Array which stores the \0-terminated filenames 19 19 20 20 Bool_t OpenNextFile(); -
trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc
r2653 r2781 38 38 // Output Containers: 39 39 // MCerPhotEvt the data container for all data. 40 // MPed estalCam ct1 pedestals40 // MPedPhotCam CT1 pedestals 41 41 // MMcEvt monte carlo data container for MC files 42 42 // MMcTrig mc data container for trigger information … … 67 67 #include "MCerPhotEvt.h" 68 68 69 #include "MPed estalPix.h"70 #include "MPed estalCam.h"69 #include "MPedPhotPix.h" 70 #include "MPedPhotCam.h" 71 71 72 72 #include "MGeomCam.h" … … 355 355 for (Int_t i=0; i<iMAXNUMPIX; i++) 356 356 { 357 (*fPedest)[i].Set PedestalRms(outpars.frms_pedsig_phot[i]);357 (*fPedest)[i].Set(0, outpars.frms_pedsig_phot[i]); 358 358 *fLog << outpars.frms_pedsig_phot[i] << " "; 359 359 fPedRMS[i] = outpars.frms_pedsig_phot[i]; … … 722 722 // them if they don't exist. 723 723 // 724 // Initialize the size of the MPed estalCam container to 127 pixels (CT1 camera)724 // Initialize the size of the MPedPhotCam container to 127 pixels (CT1 camera) 725 725 // 726 726 Int_t MCT1ReadPreProc::PreProcess(MParList *pList) … … 754 754 // look for the pedestal class in the plist 755 755 // 756 fPedest = (MPed estalCam*)pList->FindCreateObj("MPedestalCam");756 fPedest = (MPedPhotCam*)pList->FindCreateObj("MPedPhotCam"); 757 757 if (!fPedest) 758 758 return kFALSE; … … 901 901 // reset pedestal RMS for this event 902 902 for (Int_t i=0; i<iMAXNUMPIX; i++) 903 (*fPedest)[i].Set PedestalRms(fPedRMS[i]);903 (*fPedest)[i].Set(0, fPedRMS[i]); 904 904 905 905 // int isecs_since_midday; // seconds passed since midday before sunset (JD of run start) … … 944 944 continue; 945 945 946 fNphot->AddPixel(i, 0.1*event.spixsig_10thphot[i], 947 (*fPedest)[i].GetPedestalRms()); 946 fNphot->AddPixel(i, 0.1*event.spixsig_10thphot[i], (*fPedest)[i].GetRms()); 948 947 } 949 948 fNphot->FixSize(); -
trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.h
r2296 r2781 21 21 class MSrcPosCam; 22 22 class MCerPhotEvt; 23 class MPed estalCam;23 class MPedPhotCam; 24 24 class MBlindPixels; 25 25 class MRawRunHeader; … … 40 40 MGeomCam *fGeom; // camera geometry 41 41 MCerPhotEvt *fNphot; // the data container for all data. 42 MPed estalCam*fPedest; // ct1 pedestals42 MPedPhotCam *fPedest; // ct1 pedestals 43 43 MTime *fTime; // event time 44 44 MMcEvt *fMcEvt; // monte carlo data container for MC files
Note:
See TracChangeset
for help on using the changeset viewer.