FACT++  1.0
virtual bool zfits::IsFileOk ( ) const
inlinevirtual

Reimplemented from fits.

Definition at line 48 of file zfits.h.

References fRawsum, fits::GetStr(), fits::HasKey(), fits::IsFileOk(), and Checksum::val().

Referenced by main().

49  {
50  if (!HasKey("RAWSUM"))
51  return fits::IsFileOk();
52 
53  const bool rawsum = GetStr("RAWSUM") == std::to_string((long long int)fRawsum.val());
54  return fits::IsFileOk() && rawsum;
55  };
bool HasKey(const std::string &key) const
Definition: fits.h:1002
std::string GetStr(const std::string &key) const
Definition: fits.h:1011
uint32_t val() const
Definition: checksum.h:20
Checksum fRawsum
Checksum of the uncompressed, raw data.
Definition: zfits.h:154
virtual bool IsFileOk() const
Definition: fits.h:1027

+ Here is the call graph for this function:

+ Here is the caller graph for this function: