-*- C++ -*- More...
#include <CSCViewDigi.h>
Public Member Functions | |
CSCViewDigi (const edm::ParameterSet &) | |
~CSCViewDigi () | |
Private Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | endJob () |
Private Attributes | |
bool | AlctDigiDump |
edm::InputTag | alctDigiTag_ |
bool | ClctDigiDump |
edm::InputTag | clctDigiTag_ |
bool | ComparatorDigiDump |
edm::InputTag | comparatorDigiTag_ |
bool | CorrClctDigiDump |
edm::InputTag | corrclctDigiTag_ |
bool | DCCStatusDigiDump |
edm::InputTag | DCCstatusDigiTag_ |
bool | DDUStatusDigiDump |
edm::InputTag | DDUstatusDigiTag_ |
bool | RpcDigiDump |
edm::InputTag | rpcDigiTag_ |
bool | StatusDigiDump |
edm::InputTag | statusDigiTag_ |
bool | StripDigiDump |
edm::InputTag | stripDigiTag_ |
edm::InputTag | wireDigiTag_ |
bool | WiresDigiDump |
-*- C++ -*-
Location: EventFilter/CSCRawToDigi/interface/ViewDigi.h
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Location: EventFilter/CSCRawToDigi/plugins/CSCViewDigi.cc
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 55 of file CSCViewDigi.h.
CSCViewDigi::CSCViewDigi | ( | const edm::ParameterSet & | conf | ) | [explicit] |
Definition at line 28 of file CSCViewDigi.cc.
References AlctDigiDump, ClctDigiDump, ComparatorDigiDump, CorrClctDigiDump, DCCStatusDigiDump, DDUStatusDigiDump, edm::ParameterSet::getUntrackedParameter(), RpcDigiDump, StatusDigiDump, StripDigiDump, and WiresDigiDump.
: wireDigiTag_(conf.getParameter<edm::InputTag>("wireDigiTag")), alctDigiTag_(conf.getParameter<edm::InputTag>("alctDigiTag")), clctDigiTag_(conf.getParameter<edm::InputTag>("clctDigiTag")), corrclctDigiTag_(conf.getParameter<edm::InputTag>("corrclctDigiTag")), stripDigiTag_(conf.getParameter<edm::InputTag>("stripDigiTag")), comparatorDigiTag_(conf.getParameter<edm::InputTag>("comparatorDigiTag")), rpcDigiTag_(conf.getParameter<edm::InputTag>("rpcDigiTag")), statusDigiTag_(conf.getParameter<edm::InputTag>("statusDigiTag")), DDUstatusDigiTag_(conf.getParameter<edm::InputTag>("DDUstatusDigiTag")), DCCstatusDigiTag_(conf.getParameter<edm::InputTag>("DCCstatusDigiTag")) { WiresDigiDump=conf.getUntrackedParameter<bool>("WiresDigiDump", false); StripDigiDump=conf.getUntrackedParameter<bool>("StripDigiDump", false); AlctDigiDump=conf.getUntrackedParameter<bool>("AlctDigiDump", false); ClctDigiDump=conf.getUntrackedParameter<bool>("ClctDigiDump", false); CorrClctDigiDump=conf.getUntrackedParameter<bool>("CorrClctDigiDump", false); ComparatorDigiDump=conf.getUntrackedParameter<bool>("ComparatorDigiDump", false); RpcDigiDump=conf.getUntrackedParameter<bool>("RpcDigiDump", false); StatusDigiDump=conf.getUntrackedParameter<bool>("StatusDigiDump", false); DDUStatusDigiDump=conf.getUntrackedParameter<bool>("DDUStatus",false); DCCStatusDigiDump=conf.getUntrackedParameter<bool>("DCCStatus",false); }
CSCViewDigi::~CSCViewDigi | ( | ) |
Definition at line 53 of file CSCViewDigi.cc.
{ // do anything here that needs to be done at desctruction time // (e.g. close files, deallocate resources etc.) }
void CSCViewDigi::analyze | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [private, virtual] |
Implements edm::EDAnalyzer.
Definition at line 68 of file CSCViewDigi.cc.
References AlctDigiDump, alctDigiTag_, ClctDigiDump, clctDigiTag_, ComparatorDigiDump, comparatorDigiTag_, CorrClctDigiDump, corrclctDigiTag_, gather_cfg::cout, CSCDetId, DCCStatusDigiDump, DCCstatusDigiTag_, DDUStatusDigiDump, DDUstatusDigiTag_, edm::EventSetup::get(), edm::Event::getByLabel(), edm::EventBase::id(), j, prof2calltree::last, RpcDigiDump, rpcDigiTag_, StatusDigiDump, statusDigiTag_, StripDigiDump, stripDigiTag_, RecoTauPiZeroBuilderPlugins_cfi::strips, wireDigiTag_, and WiresDigiDump.
{ using namespace edm; edm::Handle<CSCWireDigiCollection> wires; edm::Handle<CSCStripDigiCollection> strips; edm::Handle<CSCComparatorDigiCollection> comparators; edm::Handle<CSCRPCDigiCollection> rpcs; edm::Handle<CSCALCTDigiCollection> alcts; edm::Handle<CSCCLCTDigiCollection> clcts; edm::Handle<CSCCorrelatedLCTDigiCollection> corrclcts; edm::Handle<CSCDCCFormatStatusDigiCollection> statusdigis; edm::Handle<CSCDDUStatusDigiCollection> DDUstatusdigi; edm::Handle<CSCDCCStatusDigiCollection> DCCstatusdigi; iEvent.getByLabel(wireDigiTag_,wires); iEvent.getByLabel(stripDigiTag_,strips); iEvent.getByLabel(comparatorDigiTag_,comparators); iEvent.getByLabel(rpcDigiTag_,rpcs); iEvent.getByLabel(alctDigiTag_,alcts); iEvent.getByLabel(clctDigiTag_,clcts); iEvent.getByLabel(corrclctDigiTag_,corrclcts); if(StatusDigiDump) iEvent.getByLabel(statusDigiTag_,statusdigis); if(DDUStatusDigiDump) iEvent.getByLabel(DDUstatusDigiTag_,DDUstatusdigi); if(DCCStatusDigiDump) iEvent.getByLabel(DCCstatusDigiTag_,DCCstatusdigi); if(WiresDigiDump){ std::cout << std::endl; std::cout << "Event " << iEvent.id() << std::endl; std::cout << std::endl; std::cout << "********WIRES Digis********" << std::endl; for (CSCWireDigiCollection::DigiRangeIterator j=wires->begin(); j!=wires->end(); j++) { std::cout << "Wire digis from "<< CSCDetId((*j).first) << std::endl; std::vector<CSCWireDigi>::const_iterator digiItr = (*j).second.first; std::vector<CSCWireDigi>::const_iterator last = (*j).second.second; for( ; digiItr != last; ++digiItr) { digiItr->print(); } } } if(StripDigiDump){ std::cout << std::endl; std::cout << "Event " << iEvent.id() << std::endl; std::cout << std::endl; std::cout << "********STRIPS Digis********" << std::endl; for (CSCStripDigiCollection::DigiRangeIterator j=strips->begin(); j!=strips->end(); j++) { std::cout << "Strip digis from "<< CSCDetId((*j).first) << std::endl; std::vector<CSCStripDigi>::const_iterator digiItr = (*j).second.first; std::vector<CSCStripDigi>::const_iterator last = (*j).second.second; for( ; digiItr != last; ++digiItr) { digiItr->print(); } } } if(ComparatorDigiDump){ std::cout << std::endl; std::cout << "Event " << iEvent.id() << std::endl; std::cout << std::endl; std::cout << "********COMPARATOR Digis********" << std::endl; for (CSCComparatorDigiCollection::DigiRangeIterator j=comparators->begin(); j!=comparators->end(); j++) { std::cout << "Comparator digis from "<< CSCDetId((*j).first) << std::endl; std::vector<CSCComparatorDigi>::const_iterator digiItr = (*j).second.first; std::vector<CSCComparatorDigi>::const_iterator last = (*j).second.second; for( ; digiItr != last; ++digiItr) { digiItr->print(); } } } if(RpcDigiDump){ std::cout << std::endl; std::cout << "Event " << iEvent.id() << std::endl; std::cout << std::endl; std::cout << "********RPC Digis********" << std::endl; for (CSCRPCDigiCollection::DigiRangeIterator j=rpcs->begin(); j!=rpcs->end(); j++) { std::cout << "RPC digis from "<< CSCDetId((*j).first) << std::endl; std::vector<CSCRPCDigi>::const_iterator digiItr = (*j).second.first; std::vector<CSCRPCDigi>::const_iterator last = (*j).second.second; for( ; digiItr != last; ++digiItr) { digiItr->print(); } } } if(AlctDigiDump){ std::cout << std::endl; std::cout << "Event " << iEvent.id() << std::endl; std::cout << std::endl; std::cout << "********ALCT Digis********" << std::endl; for (CSCALCTDigiCollection::DigiRangeIterator j=alcts->begin(); j!=alcts->end(); j++) { std::vector<CSCALCTDigi>::const_iterator digiItr = (*j).second.first; std::vector<CSCALCTDigi>::const_iterator last = (*j).second.second; for( ; digiItr != last; ++digiItr) { digiItr->print(); } } } if(ClctDigiDump){ std::cout << std::endl; std::cout << "Event " << iEvent.id() << std::endl; std::cout << std::endl; std::cout << "********CLCT Digis********" << std::endl; for (CSCCLCTDigiCollection::DigiRangeIterator j=clcts->begin(); j!=clcts->end(); j++) { std::vector<CSCCLCTDigi>::const_iterator digiItr = (*j).second.first; std::vector<CSCCLCTDigi>::const_iterator last = (*j).second.second; for( ; digiItr != last; ++digiItr) { digiItr->print(); } } } if(CorrClctDigiDump){ std::cout << std::endl; std::cout << "Event " << iEvent.id() << std::endl; std::cout << std::endl; std::cout << "********CorrelatedCLCT Digis********" << std::endl; for (CSCCorrelatedLCTDigiCollection::DigiRangeIterator j=corrclcts->begin(); j!=corrclcts->end(); j++) { std::vector<CSCCorrelatedLCTDigi>::const_iterator digiItr = (*j).second.first; std::vector<CSCCorrelatedLCTDigi>::const_iterator last = (*j).second.second; for( ; digiItr != last; ++digiItr) { digiItr->print(); } } } if(StatusDigiDump){ std::cout << std::endl; std::cout << "Event " << iEvent.id() << std::endl; std::cout << std::endl; std::cout << "********STATUS Digis********" << std::endl; for (CSCDCCFormatStatusDigiCollection::DigiRangeIterator j=statusdigis->begin(); j!=statusdigis->end(); j++) { std::vector<CSCDCCFormatStatusDigi>::const_iterator digiItr = (*j).second.first; std::vector<CSCDCCFormatStatusDigi>::const_iterator last = (*j).second.second; for( ; digiItr != last; ++digiItr) { digiItr->print(); } } } if(DDUStatusDigiDump){ std::cout << std::endl; std::cout << "Event " << iEvent.id() << std::endl; std::cout << std::endl; std::cout << "********DDU STATUS Digis********" << std::endl; for (CSCDDUStatusDigiCollection::DigiRangeIterator j=DDUstatusdigi->begin(); j!=DDUstatusdigi->end(); j++){ std::vector<CSCDDUStatusDigi>::const_iterator digiItr = (*j).second.first; std::vector<CSCDDUStatusDigi>::const_iterator last = (*j).second.second; for( ; digiItr != last; ++digiItr) { digiItr->print(); } } } if(DCCStatusDigiDump){ std::cout << std::endl; std::cout << "Event " << iEvent.id() << std::endl; std::cout << std::endl; std::cout << "********DCC STATUS Digis********" << std::endl; for (CSCDCCStatusDigiCollection::DigiRangeIterator j=DCCstatusdigi->begin(); j!=DCCstatusdigi->end(); j++){ std::vector<CSCDCCStatusDigi>::const_iterator digiItr = (*j).second.first; std::vector<CSCDCCStatusDigi>::const_iterator last = (*j).second.second; for( ; digiItr != last; ++digiItr) { digiItr->print(); } } } #ifdef THIS_IS_AN_EVENT_EXAMPLE Handle<ExampleData> pIn; iEvent.getByLabel("example",pIn); #endif #ifdef THIS_IS_AN_EVENTSETUP_EXAMPLE ESHandle<SetupData> pSetup; iSetup.get<SetupRecord>().get(pSetup); #endif }
void CSCViewDigi::endJob | ( | void | ) | [private, virtual] |
bool CSCViewDigi::AlctDigiDump [private] |
Definition at line 72 of file CSCViewDigi.h.
Referenced by analyze(), and CSCViewDigi().
edm::InputTag CSCViewDigi::alctDigiTag_ [private] |
Definition at line 63 of file CSCViewDigi.h.
Referenced by analyze().
bool CSCViewDigi::ClctDigiDump [private] |
Definition at line 72 of file CSCViewDigi.h.
Referenced by analyze(), and CSCViewDigi().
edm::InputTag CSCViewDigi::clctDigiTag_ [private] |
Definition at line 64 of file CSCViewDigi.h.
Referenced by analyze().
bool CSCViewDigi::ComparatorDigiDump [private] |
Definition at line 73 of file CSCViewDigi.h.
Referenced by analyze(), and CSCViewDigi().
edm::InputTag CSCViewDigi::comparatorDigiTag_ [private] |
Definition at line 67 of file CSCViewDigi.h.
Referenced by analyze().
bool CSCViewDigi::CorrClctDigiDump [private] |
Definition at line 72 of file CSCViewDigi.h.
Referenced by analyze(), and CSCViewDigi().
edm::InputTag CSCViewDigi::corrclctDigiTag_ [private] |
Definition at line 65 of file CSCViewDigi.h.
Referenced by analyze().
bool CSCViewDigi::DCCStatusDigiDump [private] |
Definition at line 74 of file CSCViewDigi.h.
Referenced by analyze(), and CSCViewDigi().
edm::InputTag CSCViewDigi::DCCstatusDigiTag_ [private] |
Definition at line 71 of file CSCViewDigi.h.
Referenced by analyze().
bool CSCViewDigi::DDUStatusDigiDump [private] |
Definition at line 74 of file CSCViewDigi.h.
Referenced by analyze(), and CSCViewDigi().
edm::InputTag CSCViewDigi::DDUstatusDigiTag_ [private] |
Definition at line 70 of file CSCViewDigi.h.
Referenced by analyze().
bool CSCViewDigi::RpcDigiDump [private] |
Definition at line 73 of file CSCViewDigi.h.
Referenced by analyze(), and CSCViewDigi().
edm::InputTag CSCViewDigi::rpcDigiTag_ [private] |
Definition at line 68 of file CSCViewDigi.h.
Referenced by analyze().
bool CSCViewDigi::StatusDigiDump [private] |
Definition at line 73 of file CSCViewDigi.h.
Referenced by analyze(), and CSCViewDigi().
edm::InputTag CSCViewDigi::statusDigiTag_ [private] |
Definition at line 69 of file CSCViewDigi.h.
Referenced by analyze().
bool CSCViewDigi::StripDigiDump [private] |
Definition at line 73 of file CSCViewDigi.h.
Referenced by analyze(), and CSCViewDigi().
edm::InputTag CSCViewDigi::stripDigiTag_ [private] |
Definition at line 66 of file CSCViewDigi.h.
Referenced by analyze().
edm::InputTag CSCViewDigi::wireDigiTag_ [private] |
Definition at line 62 of file CSCViewDigi.h.
Referenced by analyze().
bool CSCViewDigi::WiresDigiDump [private] |
Definition at line 72 of file CSCViewDigi.h.
Referenced by analyze(), and CSCViewDigi().