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 edm::EDConsumerBase

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
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

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::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Private Attributes

std::ofstream logFile
 
int nevents
 

Friends

class DTMonitorModule
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- 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 26 of file DTGlobalRecoTask.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 14 of file DTGlobalRecoTask.cc.

References heppy_check::logFile.

15  {
16 
17  logFile.open("DTGlobalRecoTask.log");
18 
19 
20  if ( dbe ) {
21  dbe->setCurrentFolder("DT/DTGlobalRecoTask");
22 
23 
24  }
25 
26 }
std::ofstream logFile
DTGlobalRecoTask::~DTGlobalRecoTask ( )
virtual

Destructor.

Definition at line 28 of file DTGlobalRecoTask.cc.

References heppy_check::logFile.

28  {
29 
30  logFile.close();
31 
32 }
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 46 of file DTGlobalRecoTask.cc.

References nevents.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 34 of file DTGlobalRecoTask.cc.

References nevents.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 40 of file DTGlobalRecoTask.cc.

References gather_cfg::cout, and nevents.

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

Friends And Related Function Documentation

friend class DTMonitorModule
friend

Definition at line 28 of file DTGlobalRecoTask.h.

Member Data Documentation

std::ofstream DTGlobalRecoTask::logFile
private

Definition at line 56 of file DTGlobalRecoTask.h.

int DTGlobalRecoTask::nevents
private

Definition at line 52 of file DTGlobalRecoTask.h.