CMS 3D CMS Logo

Public Member Functions

L1MuScalesTester Class Reference

#include <L1MuScalesTester.h>

Inheritance diagram for L1MuScalesTester:
edm::EDAnalyzer

List of all members.

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 L1MuScalesTester (const edm::ParameterSet &)
void printScale (const L1MuScale *)
 ~L1MuScalesTester ()

Detailed Description

Definition at line 18 of file L1MuScalesTester.h.


Constructor & Destructor Documentation

L1MuScalesTester::L1MuScalesTester ( const edm::ParameterSet ps) [explicit]

Definition at line 17 of file L1MuScalesTester.cc.

                                                            {
}
L1MuScalesTester::~L1MuScalesTester ( )

Definition at line 20 of file L1MuScalesTester.cc.

                                    {
}

Member Function Documentation

void L1MuScalesTester::analyze ( const edm::Event e,
const edm::EventSetup es 
) [virtual]

Implements edm::EDAnalyzer.

Definition at line 23 of file L1MuScalesTester.cc.

References gather_cfg::cout, edm::EventSetup::get(), i, and printScale().

                                                                         {
  using namespace edm;

  const char* detnam[]={ "DT", "RPC barrel", "CSC", "RPC forward" };

  ESHandle< L1MuTriggerScales > l1muscales ;
  es.get< L1MuTriggerScalesRcd >().get( l1muscales ) ;

  ESHandle< L1MuTriggerPtScale > l1muptscale ;
  es.get< L1MuTriggerPtScaleRcd >().get( l1muptscale ) ;

  cout << "**** L1 Mu Pt Scale print *****************************************" << endl;
  printScale(l1muptscale->getPtScale());

  cout << "**** L1 Mu Phi Scale print *****************************************" << endl;
  printScale(l1muscales->getPhiScale());

  cout << "**** L1 Mu GMT eta Scale print *************************************" << endl;
  printScale(l1muscales->getGMTEtaScale());

  for(int i=0; i<4; i++) {

    cout << "**** L1 Mu " << detnam[i] << " eta Scale print **************************************" << endl;
    printScale(l1muscales->getRegionalEtaScale(i));

  }

  ESHandle< L1MuGMTScales > l1gmtscales ;
  es.get< L1MuGMTScalesRcd >().get( l1gmtscales ) ;

  for(int i=0; i<4; i++) {

    cout << "**** L1 GMT " << detnam[i] << " reduced eta Scale print **************************************" << endl;
    printScale(l1gmtscales->getReducedEtaScale(i));

  }

  cout << "**** L1 GMT delta eta Scale print *************************************" << endl;
  printScale(l1gmtscales->getDeltaEtaScale(0));

  cout << "**** L1 GMT delta phi Scale print *************************************" << endl;
  printScale(l1gmtscales->getDeltaPhiScale());

  for(int i=0; i<4; i++) {

    cout << "**** L1 GMT " << detnam[i] << " overlap eta Scale print **************************************" << endl;
    printScale(l1gmtscales->getOvlEtaScale(i));

  }

//   cout << "**** L1 GMT calo eta Scale print *************************************" << endl;
//   printScale(l1gmtscales->getCaloEtaScale());



}
void L1MuScalesTester::printScale ( const L1MuScale l1muscale)

Definition at line 80 of file L1MuScalesTester.cc.

References gather_cfg::cout, and L1MuScale::print().

Referenced by analyze().

                                                            {


  cout << l1muscale->print();

}