00001 00002 // NtpMCGenInfo 00003 // 00004 // NtpMCGenInfo is an ntuple class to hold information about 00005 // the MC generator. 00006 // 00008 00009 #ifndef NTPMCGENINFO_H 00010 #define NTPMCGENINFO_H 00011 00012 #include <string> 00013 #include "TObject.h" // base class 00014 #include "Validity/VldTimeStamp.h" // data member 00015 00016 class NtpMCGenInfo; 00017 00018 std::ostream &operator << (std::ostream& os, const NtpMCGenInfo& geninfo); 00019 00020 class NtpMCGenInfo : public TObject { 00021 00022 public: 00023 // Constructors & Destructors 00024 NtpMCGenInfo(): time(0,0),codename(),hostname() {} 00025 virtual ~NtpMCGenInfo() {} 00026 00027 // State testing methods 00028 virtual std::ostream& Print(std::ostream& os) const; 00029 virtual void Print(Option_t* option = "") const; 00030 00031 // State changing methods 00032 virtual void Clear(Option_t* option = ""); 00033 00034 public: 00035 // Ntuple is treated like a C-struct with public data members and 00036 // rule-breaking field data members not prefaced by "f" and all 00037 // lowercase, by popular demand. 00038 00039 VldTimeStamp time; // time of MC generation 00040 std::string codename; // MC code tag 00041 std::string hostname; // machine that generated event 00042 00043 ClassDef(NtpMCGenInfo,1) 00044 }; 00045 #endif // NTPMCGENINFO_H
1.3.9.1