CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Attributes | Friends
DTGlobalRecoTask Class Reference

#include <DTGlobalRecoTask.h>

Inheritance diagram for DTGlobalRecoTask:
edm::EDAnalyzer

Public Member Functions

 DTGlobalRecoTask (const edm::ParameterSet &ps, DQMStore *dbe, const edm::EventSetup &context)
 Constructor. More...
 
virtual ~DTGlobalRecoTask ()
 Destructor. More...
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c)
 Analyze. More...
 
void beginJob ()
 
void endJob (void)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Private Attributes

std::ofstream logFile
 
int nevents
 

Friends

class DTMonitorModule
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 

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().

17  {
18 
19  logFile.open("DTGlobalRecoTask.log");
20 
21 
22  if ( dbe ) {
23  dbe->setCurrentFolder("DT/DTGlobalRecoTask");
24 
25 
26  }
27 
28 }
std::ofstream logFile
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:429
DTGlobalRecoTask::~DTGlobalRecoTask ( )
virtual

Destructor.

Definition at line 30 of file DTGlobalRecoTask.cc.

30  {
31 
32  logFile.close();
33 
34 }
std::ofstream logFile

Member Function Documentation

void DTGlobalRecoTask::analyze ( const edm::Event e,
const edm::EventSetup c 
)
protectedvirtual

Analyze.

Implements edm::EDAnalyzer.

Definition at line 48 of file DTGlobalRecoTask.cc.

References nevents.

48  {
49 
50  nevents++;
51 
52 
53 
54 
55 }
void DTGlobalRecoTask::beginJob ( void  )
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 36 of file DTGlobalRecoTask.cc.

References nevents.

36  {
37 
38  nevents = 0;
39 
40 }
void DTGlobalRecoTask::endJob ( void  )
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 42 of file DTGlobalRecoTask.cc.

References gather_cfg::cout, and nevents.

42  {
43 
44  cout << "DTGlobalRecoTask: analyzed " << nevents << " events" << endl;
45 
46 }
tuple cout
Definition: gather_cfg.py:121

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.

int DTGlobalRecoTask::nevents
private

Definition at line 54 of file DTGlobalRecoTask.h.