Changeset 19688 for trunk/Mars
- Timestamp:
- 09/27/19 16:40:42 (5 years ago)
- Location:
- trunk/Mars/mfileio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mfileio/MWriteFitsFile.cc
r19434 r19688 344 344 } 345 345 346 void MWriteFitsFile::SetupHeaderKeys(MRawRunHeader &header )346 void MWriteFitsFile::SetupHeaderKeys(MRawRunHeader &header, const char *geometry) 347 347 { 348 348 const MTime now(-1); … … 368 368 SetHeaderKey("NROITM", 0, ""); 369 369 SetHeaderKey("TMSHIFT", 0, ""); 370 SetHeaderKey("CAMERA", "MGeomCamFACT", "Montecarlo File");370 SetHeaderKey("CAMERA", geometry, "Montecarlo File"); 371 371 SetHeaderKey("DAQ", "DRS4", "Montecarlo File"); 372 372 373 373 // FTemme: ADCRANGE and ADC have to be calculated, using the values for 374 374 // the fadctype. 375 //SetHeaderKey("ADCRANGE", 2000, "Dynamic range in mV");376 // SetHeaderKey("ADC", 12, "Resolution in bits");375 SetHeaderKey("ADCRANGE", 2000, "Dynamic range in mV"); 376 SetHeaderKey("ADC", UShort_t(header.GetFadcResolution()), "Resolution in bits"); 377 377 378 378 switch(header.GetRunType()) … … 1234 1234 1235 1235 MRawRunHeader* header = (MRawRunHeader*)pList->FindObject("MRawRunHeader"); 1236 SetupHeaderKeys(*header );1236 SetupHeaderKeys(*header, fGeometry); 1237 1237 1238 1238 if (GetContainer(pList) == kFALSE) -
trunk/Mars/mfileio/MWriteFitsFile.h
r18594 r19688 116 116 TString fGroupName; // name of top level group 117 117 TString fTitle; // title of top level group 118 119 TString fGeometry; 118 120 119 121 void OpenTopLevelGroup(const char * fname); … … 150 152 Int_t PostProcess(); 151 153 152 void SetupHeaderKeys(MRawRunHeader &header );154 void SetupHeaderKeys(MRawRunHeader &header, const char *geometry); 153 155 154 156 public: … … 164 166 typeName == "x" || typeName == "y") //long long 165 167 returnVal << value; 166 167 168 if (typeName == "b") 168 169 { … … 267 268 } 268 269 270 void SetGeometry(const TString &geom) { fGeometry = geom; } 271 269 272 ClassDef(MWriteFitsFile, 0) 270 273 };
Note:
See TracChangeset
for help on using the changeset viewer.