NtpMCSummary Class Reference

#include <NtpMCSummary.h>

List of all members.

Public Member Functions

 NtpMCSummary ()
virtual ~NtpMCSummary ()
void Clear (Option_t *option="")
virtual std::ostream & Print (std::ostream &os) const
virtual void Print (Option_t *option="") const

Public Attributes

UShort_t error
 error code, set 1 if stdhep<->mc indexing failed
UShort_t nmc
 number of mc primaries
UInt_t nstdhep
 number of stdhep particles
UInt_t ndigihit
 number of energy deposition hits
NtpMCGenInfo geninfo
 MC generator information.

Detailed Description

Definition at line 18 of file NtpMCSummary.h.


Constructor & Destructor Documentation

NtpMCSummary::NtpMCSummary (  )  [inline]

Definition at line 22 of file NtpMCSummary.h.

00022 : error(0),nmc(0),nstdhep(0),ndigihit(0) {}

virtual NtpMCSummary::~NtpMCSummary (  )  [inline, virtual]

Definition at line 23 of file NtpMCSummary.h.

00023 {}


Member Function Documentation

void NtpMCSummary::Clear ( Option_t *  option = ""  )  [inline]

Definition at line 26 of file NtpMCSummary.h.

References NtpMCGenInfo::Clear(), geninfo, and option.

00026 { geninfo.Clear(option); }

void NtpMCSummary::Print ( Option_t *  option = ""  )  const [virtual]

Definition at line 35 of file NtpMCSummary.cxx.

References Print().

00035                                                      {
00036   //
00037   //  Purpose:  Print event summary data in form supported by TObject::Print.
00038   //
00039   //  Arguments: option (not used)
00040   //
00041 
00042   Print(std::cout);
00043   return;
00044 
00045 }

std::ostream & NtpMCSummary::Print ( std::ostream &  os  )  const [virtual]

Definition at line 20 of file NtpMCSummary.cxx.

References error, geninfo, ndigihit, nmc, and nstdhep.

Referenced by NtpMCRecord::Print(), and Print().

00020                                                     {
00021   //
00022   //  Purpose:  Print event summary data on ostream.
00023   //
00024 
00025   os << "NtpMCSummary::Print" << endl;
00026   os <<  "nmc " << nmc << " nstdhep " << nstdhep << " ndigihit "
00027      << ndigihit << " error 0x" << setfill('0') << hex << setw(8)
00028      << error << dec << setfill(' ') << endl;
00029   os << geninfo << endl;
00030   
00031   return os;
00032 
00033 }


Member Data Documentation

error code, set 1 if stdhep<->mc indexing failed

Definition at line 36 of file NtpMCSummary.h.

Referenced by NtpMCModule::FillNtpMCTruth(), and Print().

number of energy deposition hits

Definition at line 39 of file NtpMCSummary.h.

Referenced by MCMonitorCosmicHistograms::FillHistsTrue(), NtpMCModule::FillNtpMCDigiScintHit(), and Print().


The documentation for this class was generated from the following files:

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1