anadst.cxx File Reference

#include <TFile.h>
#include <TH2F.h>
#include "DSTAnalysis/TOF/TOFAna.h"
#include "MIPPEventSummary/MIPPEventSummary.h"
#include "MIPPEventSummary/MIPPTrackSummary.h"
#include <iostream>

Go to the source code of this file.

Functions

void InitDST (const char *fname)
void EndDST ()
bool AnaDST (const MIPPEventSummary *dst)
void EndFile ()

Variables

static TOFAnafTOFAna = 0
static TFile * gsHistoFile = 0


Function Documentation

bool AnaDST ( const MIPPEventSummary dst  ) 

Definition at line 37 of file TOF/anadst.cxx.

References NuMIRunQAna::Ana(), NuMIBeamAna::Ana(), NuMITgtAna::Ana(), TOFAna::Ana(), fNuMIBeamAna, fNuMIRunQAna, fNuMITgtAna, and fTOFAna.

00038   {
00039 
00040     // 
00041     bool goodevent = fTOFAna->Ana(dst);
00042     if (goodevent==false) return false;
00043 
00044     return true;
00045   }

void EndDST (  ) 

Definition at line 29 of file TOF/anadst.cxx.

References fTOFAna, gsHistoFile, and TOFAna::PrintCutTable().

00030   { 
00031     gsHistoFile->Write(); 
00032     fTOFAna->PrintCutTable();
00033   }

void EndFile (  ) 

Definition at line 49 of file TOF/anadst.cxx.

References fTOFAna, and TOFAna::totalevent.

Referenced by main().

00049                  {
00050 
00051     cout << "Events " << fTOFAna->totalevent << endl;
00052   }

void InitDST ( const char *  fname  ) 

Definition at line 19 of file TOF/anadst.cxx.

References fNuMIBeamAna, fNuMIRunQAna, fNuMITgtAna, fTOFAna, and gsHistoFile.

00020   {
00021     gsHistoFile = new TFile(fname,"RECREATE");
00022     gsHistoFile->cd();
00023     
00024     fTOFAna  = new TOFAna();
00025  }


Variable Documentation

TOFAna* fTOFAna = 0 [static]

Definition at line 12 of file TOF/anadst.cxx.

Referenced by AnaDST(), EndDST(), EndFile(), and InitDST().

TFile* gsHistoFile = 0 [static]

Definition at line 15 of file TOF/anadst.cxx.


Generated on Mon Nov 23 08:02:30 2009 for MIPP(E907) by  doxygen 1.4.7