CMS 3D CMS Logo

Public Member Functions

L1RCTChannelMaskTester Class Reference

Inheritance diagram for L1RCTChannelMaskTester:
edm::EDAnalyzer

List of all members.

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 L1RCTChannelMaskTester (const edm::ParameterSet &)
virtual ~L1RCTChannelMaskTester ()

Detailed Description

Definition at line 42 of file L1RCTChannelMaskTester.cc.


Constructor & Destructor Documentation

L1RCTChannelMaskTester::L1RCTChannelMaskTester ( const edm::ParameterSet ) [inline, explicit]

Definition at line 44 of file L1RCTChannelMaskTester.cc.

                                                            {
    }
virtual L1RCTChannelMaskTester::~L1RCTChannelMaskTester ( ) [inline, virtual]

Definition at line 46 of file L1RCTChannelMaskTester.cc.

                                      {
    }

Member Function Documentation

void L1RCTChannelMaskTester::analyze ( const edm::Event iEvent,
const edm::EventSetup evSetup 
) [virtual]

Implements edm::EDAnalyzer.

Definition at line 52 of file L1RCTChannelMaskTester.cc.

References gather_cfg::cout, edm::EventSetup::find(), edm::eventsetup::heterocontainer::HCTypeTag::findType(), and edm::EventSetup::get().

                                      {

    //
    edm::ESHandle<L1RCTChannelMask> rctChanMask;
    evSetup.get<L1RCTChannelMaskRcd>().get(rctChanMask);

    rctChanMask->print(std::cout);

    //
    edm::eventsetup::EventSetupRecordKey recordKey(
            edm::eventsetup::EventSetupRecordKey::TypeTag::findType(
                    "L1RCTNoisyChannelMaskRcd"));

    if (evSetup.find(recordKey) == 0) {
        //record not found
        std::cout << "\nRecord \"" << "L1RCTNoisyChannelMaskRcd"
                << "\" does not exist.\n" << std::endl;
    } else {

        edm::ESHandle<L1RCTNoisyChannelMask> rctNoisyChanMask;
        evSetup.get<L1RCTNoisyChannelMaskRcd>().get(rctNoisyChanMask);

        rctNoisyChanMask->print(std::cout);

    }

}