Changeset 1952 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 04/12/03 16:50:35 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mfileio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc
r1936 r1952 708 708 // look for the HourAngle container in the plist 709 709 // 710 fHourAngle = (MParameterD*)pList->FindCreateObj("MParameterD", "HourAngle");710 fHourAngle = (MParameterD*)pList->FindCreateObj("MParameterD", "HourAngle"); 711 711 if (!fHourAngle) 712 712 return kFALSE; … … 716 716 // look for the ThetaOrig container in the plist 717 717 // 718 fThetaOrig = (MParameterD*)pList->FindCreateObj("MParameterD", "ThetaOrig");718 fThetaOrig = (MParameterD*)pList->FindCreateObj("MParameterD", "ThetaOrig"); 719 719 if (!fThetaOrig) 720 720 return kFALSE; … … 826 826 // Mars structures and data members 827 827 // 828 voidMCT1ReadPreProc::ProcessEvent(const struct eventrecord &event)828 Bool_t MCT1ReadPreProc::ProcessEvent(const struct eventrecord &event) 829 829 { 830 830 /* … … 912 912 fThetaOrig->SetVal(theta); 913 913 914 //*fLog << "Theta, smearedTheta = " << theta << ", " << SmearTheta(theta)915 // << endl;914 if (theta>TMath::Pi()/2) 915 return kCONTINUE; 916 916 917 917 // store hour angle … … 959 959 fMcTrig->SetReadyToSave(); 960 960 fMcEvt->SetReadyToSave(); 961 962 return kTRUE; 961 963 } 962 964 … … 1085 1087 fIn->read((Byte_t*)&event, sizeof(struct eventrecord)); 1086 1088 1087 ProcessEvent(event); 1089 switch (ProcessEvent(event)) 1090 { 1091 case kFALSE: 1092 return kFALSE; 1093 case kCONTINUE: 1094 return kCONTINUE; 1095 } 1088 1096 1089 1097 fNumEvents++; -
trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.h
r1899 r1952 68 68 Bool_t CheckFilePosition(); 69 69 void ProcessRunHeader(const struct outputpars &outpars); 70 voidProcessEvent(const struct eventrecord &event);70 Bool_t ProcessEvent(const struct eventrecord &event); 71 71 72 72 Double_t SmearTheta(Double_t theta);
Note:
See TracChangeset
for help on using the changeset viewer.