LoadPlex Class Reference

#include <LoadPlex.h>

Inheritance diagram for LoadPlex:
JobCModule

List of all members.

Public Member Functions

 LoadPlex ()
 ~LoadPlex ()
JobCResult Reco (MomNavigator *mom)

Private Member Functions

 ClassDef (LoadPlex, 0)

Private Attributes

int loaded

Detailed Description

Definition at line 17 of file LoadPlex.h.


Constructor & Destructor Documentation

LoadPlex::LoadPlex (  )  [inline]

Definition at line 20 of file LoadPlex.h.

References loaded.

00020 { loaded = 0;};

LoadPlex::~LoadPlex (  )  [inline]

Definition at line 21 of file LoadPlex.h.

00021 {};


Member Function Documentation

LoadPlex::ClassDef ( LoadPlex  ,
 
) [private]
JobCResult LoadPlex::Reco ( MomNavigator mom  )  [virtual]

Implement this for read-write access to the MomNavigator

Reimplemented from JobCModule.

Definition at line 19 of file LoadPlex.cxx.

References gSystem(), JobCResult::kAOK, Msg::kInfo, MSG, and PlexLoanPool::Print().

00020 {
00021   if(loaded==0) {
00022     loaded = 1;
00023 
00024     MSG("LoadPlex",Msg::kInfo) << "***************************************" << endl;
00025     MSG("LoadPlex",Msg::kInfo) << "*** Loading Plexus info from file...***" << endl;
00026     MSG("LoadPlex",Msg::kInfo) << "***            Please Wait          ***" << endl;
00027     MSG("LoadPlex",Msg::kInfo) << "***************************************" << endl;
00028 
00029     // Delete existing loan pool, just in case.
00030     //PlexLoanPool* plp = PlexLoanPool::Instance();
00031     //delete plp;
00032     
00033     const char* tridpath = gSystem->Getenv("TRID");
00034     std::string filename;
00035     if(tridpath) filename = string(tridpath) + "/";
00036     filename += "PlexData.root";
00037 
00038     TFile f(filename.c_str());
00039     if(f.IsOpen()) {
00040       PlexLoanPool* plp = (PlexLoanPool*) f.Get("PlexLoanPool");
00041       plp->Print();
00042       f.Close();
00043     }
00044   }
00045   return JobCResult::kAOK;
00046 }


Member Data Documentation

int LoadPlex::loaded [private]

Definition at line 30 of file LoadPlex.h.

Referenced by LoadPlex().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1