CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Private Attributes | Friends

DTGlobalRecoTask Class Reference

#include <DTGlobalRecoTask.h>

Inheritance diagram for DTGlobalRecoTask:
edm::EDAnalyzer

List of all members.

Public Member Functions

 DTGlobalRecoTask (const edm::ParameterSet &ps, DQMStore *dbe, const edm::EventSetup &context)
 Constructor.
virtual ~DTGlobalRecoTask ()
 Destructor.

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c)
 Analyze.
void beginJob ()
void endJob (void)

Private Attributes

std::ofstream logFile
int nevents

Friends

class DTMonitorModule

Detailed Description

Definition at line 28 of file DTGlobalRecoTask.h.


Constructor & Destructor Documentation

DTGlobalRecoTask::DTGlobalRecoTask ( const edm::ParameterSet ps,
DQMStore dbe,
const edm::EventSetup context 
)

Constructor.

Definition at line 16 of file DTGlobalRecoTask.cc.

References DQMStore::setCurrentFolder().

                                                                {

  logFile.open("DTGlobalRecoTask.log");


  if ( dbe ) {
    dbe->setCurrentFolder("DT/DTGlobalRecoTask");


  }

}
DTGlobalRecoTask::~DTGlobalRecoTask ( ) [virtual]

Destructor.

Definition at line 30 of file DTGlobalRecoTask.cc.

                                   {

  logFile.close();

}

Member Function Documentation

void DTGlobalRecoTask::analyze ( const edm::Event e,
const edm::EventSetup c 
) [protected, virtual]

Analyze.

Implements edm::EDAnalyzer.

Definition at line 48 of file DTGlobalRecoTask.cc.

References nevents.

                                                                       {

  nevents++;




}
void DTGlobalRecoTask::beginJob ( void  ) [protected, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 36 of file DTGlobalRecoTask.cc.

References nevents.

                               {

  nevents = 0;

}
void DTGlobalRecoTask::endJob ( void  ) [protected, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 42 of file DTGlobalRecoTask.cc.

References gather_cfg::cout, and nevents.

                             {

  cout << "DTGlobalRecoTask: analyzed " << nevents << " events" << endl;

}

Friends And Related Function Documentation

friend class DTMonitorModule [friend]

Definition at line 30 of file DTGlobalRecoTask.h.


Member Data Documentation

std::ofstream DTGlobalRecoTask::logFile [private]

Definition at line 58 of file DTGlobalRecoTask.h.

Definition at line 54 of file DTGlobalRecoTask.h.