CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

L1ExtraRecoDQM Class Reference

#include <L1ExtraRecoDQM.h>

Inheritance diagram for L1ExtraRecoDQM:
edm::EDAnalyzer

List of all members.

Public Member Functions

 L1ExtraRecoDQM (const edm::ParameterSet &)
virtual ~L1ExtraRecoDQM ()

Private Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
virtual void beginJob ()
virtual void beginLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &)
virtual void beginRun (const edm::Run &, const edm::EventSetup &)
virtual void endJob ()
virtual void endLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &)
 end section
virtual void endRun (const edm::Run &, const edm::EventSetup &)

Private Attributes

int m_currentRun
DQMStorem_dbe
 internal members
std::string m_dirName
 directory name for L1Extra plots
int m_nrBxInEventGct
int m_nrBxInEventGmt
 number of bunch crosses in event to be monitored
int m_nrEvJob
int m_nrEvRun
bool m_resetModule
L1RetrieveL1Extra m_retrieveL1Extra
 input parameters

Detailed Description

Description: online DQM module for L1Extra versus Reco trigger objects.

Implementation: <TODO: enter implementation details>

Author:
: Vasile Mihai Ghete - HEPHY Vienna
Date:
2011/12/05 10:20:56
Revision:
1.2

Definition at line 74 of file L1ExtraRecoDQM.h.


Constructor & Destructor Documentation

L1ExtraRecoDQM::L1ExtraRecoDQM ( const edm::ParameterSet paramSet) [explicit]

Definition at line 30 of file L1ExtraRecoDQM.cc.

References edm::ParameterSet::getUntrackedParameter(), m_dbe, m_dirName, m_nrBxInEventGct, m_nrBxInEventGmt, cppFunctionSkipper::operator, DQMStore::setCurrentFolder(), and DQMStore::setVerbose().

                                                              :
            //
            m_retrieveL1Extra(
                    paramSet.getParameter<edm::ParameterSet> (
                            "L1ExtraInputTags")),
            m_dirName(
                    paramSet.getUntrackedParameter("DirName",
                            std::string("L1T/L1ExtraRecoDQM"))),
            //
            m_nrBxInEventGmt(paramSet.getParameter<int> ("NrBxInEventGmt")),
            m_nrBxInEventGct(paramSet.getParameter<int> ("NrBxInEventGct")),
            //
            m_dbe(0), m_resetModule(true), m_currentRun(-99),
            //
            m_nrEvJob(0), m_nrEvRun(0)

{

    //
    if ((m_nrBxInEventGmt > 0) && ((m_nrBxInEventGmt % 2) == 0)) {
        m_nrBxInEventGmt = m_nrBxInEventGmt - 1;

        edm::LogInfo("L1ExtraRecoDQM")
                << "\nWARNING: Number of bunch crossing to be monitored for GMT rounded to: "
                << m_nrBxInEventGmt
                << "\n         The number must be an odd number!\n"
                << std::endl;
    }

    if ((m_nrBxInEventGct > 0) && ((m_nrBxInEventGct % 2) == 0)) {
        m_nrBxInEventGct = m_nrBxInEventGct - 1;

        edm::LogInfo("L1ExtraRecoDQM")
                << "\nWARNING: Number of bunch crossing to be monitored for GCT rounded to: "
                << m_nrBxInEventGct
                << "\n         The number must be an odd number!\n"
                << std::endl;
    }

    m_dbe = edm::Service<DQMStore>().operator->();
    if (m_dbe == 0) {
        edm::LogInfo("L1ExtraRecoDQM") << "\n Unable to get DQMStore service.";
    } else {

        if (paramSet.getUntrackedParameter<bool> ("DQMStore", false)) {
            m_dbe->setVerbose(0);
        }

        m_dbe->setCurrentFolder(m_dirName);

    }

}
L1ExtraRecoDQM::~L1ExtraRecoDQM ( ) [virtual]

Definition at line 85 of file L1ExtraRecoDQM.cc.

                                {

    // empty

}

Member Function Documentation

void L1ExtraRecoDQM::analyze ( const edm::Event iEvent,
const edm::EventSetup evSetup 
) [private, virtual]
void L1ExtraRecoDQM::beginJob ( void  ) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 92 of file L1ExtraRecoDQM.cc.

                              {

}
void L1ExtraRecoDQM::beginLuminosityBlock ( const edm::LuminosityBlock iLumi,
const edm::EventSetup evSetup 
) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 115 of file L1ExtraRecoDQM.cc.

                                      {

    //


}
void L1ExtraRecoDQM::beginRun ( const edm::Run iRun,
const edm::EventSetup evSetup 
) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 96 of file L1ExtraRecoDQM.cc.

References DQMStore::dirExists(), m_dirName, m_nrEvRun, cppFunctionSkipper::operator, DQMStore::rmdir(), and DQMStore::setCurrentFolder().

                                      {

    m_nrEvRun = 0;

    DQMStore* dbe = 0;
    dbe = edm::Service<DQMStore>().operator->();

    // clean up directory
    if (dbe) {
        dbe->setCurrentFolder(m_dirName);
        if (dbe->dirExists(m_dirName)) {
            dbe->rmdir(m_dirName);
        }
        dbe->setCurrentFolder(m_dirName);
    }

}
void L1ExtraRecoDQM::endJob ( void  ) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 150 of file L1ExtraRecoDQM.cc.

References m_nrEvJob.

                            {

    edm::LogInfo("L1ExtraRecoDQM")
            << "\n\nTotal number of events analyzed in this job: " << m_nrEvJob
            << "\n" << std::endl;

    return;
}
void L1ExtraRecoDQM::endLuminosityBlock ( const edm::LuminosityBlock iLumi,
const edm::EventSetup evSetup 
) [private, virtual]

end section

Reimplemented from edm::EDAnalyzer.

Definition at line 137 of file L1ExtraRecoDQM.cc.

                                      {

    // empty

}
void L1ExtraRecoDQM::endRun ( const edm::Run run,
const edm::EventSetup evSetup 
) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 144 of file L1ExtraRecoDQM.cc.

                                                                           {

    //

}

Member Data Documentation

Definition at line 118 of file L1ExtraRecoDQM.h.

internal members

Definition at line 115 of file L1ExtraRecoDQM.h.

Referenced by L1ExtraRecoDQM().

std::string L1ExtraRecoDQM::m_dirName [private]

directory name for L1Extra plots

Definition at line 107 of file L1ExtraRecoDQM.h.

Referenced by beginRun(), and L1ExtraRecoDQM().

Definition at line 111 of file L1ExtraRecoDQM.h.

Referenced by L1ExtraRecoDQM().

number of bunch crosses in event to be monitored

Definition at line 110 of file L1ExtraRecoDQM.h.

Referenced by L1ExtraRecoDQM().

Definition at line 121 of file L1ExtraRecoDQM.h.

Referenced by analyze(), and endJob().

Definition at line 122 of file L1ExtraRecoDQM.h.

Referenced by analyze(), and beginRun().

Definition at line 117 of file L1ExtraRecoDQM.h.

input parameters

Definition at line 104 of file L1ExtraRecoDQM.h.

Referenced by analyze().