Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

NtpMCSummary.h

Go to the documentation of this file.
00001 
00002 // NtpMCSummary
00003 //
00004 // NtpMCSummary is an ntuple class to hold mc summary data
00005 //
00007 
00008 #ifndef NTPMCSUMMARY_H
00009 #define NTPMCSUMMARY_H
00010 
00011 #include "TObject.h" // base class
00012 #include "MCNtuple/NtpMCGenInfo.h"
00013 
00014 class NtpMCSummary;
00015 
00016 std::ostream &operator << (std::ostream& os, const NtpMCSummary& sum);
00017 
00018 class NtpMCSummary : public TObject {
00019 
00020  public:
00021   // Constructors & Destructors
00022   NtpMCSummary(): error(0),nmc(0),nstdhep(0),ndigihit(0) {}
00023   virtual ~NtpMCSummary() {}
00024 
00025   // State testing methods
00026   void Clear(Option_t* option="") { geninfo.Clear(option); }
00027   
00028   virtual std::ostream& Print(std::ostream& os) const;
00029   virtual void Print(Option_t* option = "") const; 
00030 
00031  public:
00032   // Ntuple is treated like a C-struct with public data members and
00033   // rule-breaking field data members not prefaced by "f" and all
00034   // lowercase, by popular demand.
00035 
00036   UShort_t error;      // error code, set 1 if stdhep<->mc indexing failed
00037   UShort_t nmc;        // number of mc primaries
00038   UInt_t   nstdhep;    // number of stdhep particles
00039   UInt_t   ndigihit;   // number of energy deposition hits
00040   NtpMCGenInfo geninfo;  // MC generator information
00041 
00042   ClassDef(NtpMCSummary,6)
00043 };
00044 #endif // NTPMCSUMMARY_H

Generated on Mon Feb 15 11:07:06 2010 for loon by  doxygen 1.3.9.1