Skip to content

Commit

Permalink
Removed unused getByLabel calls
Browse files Browse the repository at this point in the history
Signed-off-by: Antanas Norkus <[email protected]>
  • Loading branch information
Antanas Norkus committed Nov 21, 2013
1 parent 2287a09 commit ceda167
Show file tree
Hide file tree
Showing 27 changed files with 5 additions and 75 deletions.
2 changes: 0 additions & 2 deletions Calibration/TkAlCaRecoProducers/src/AlcaBeamSpotManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ void AlcaBeamSpotManager::reset(void){
void AlcaBeamSpotManager::readLumi(const LuminosityBlock& iLumi){

Handle<BeamSpot> beamSpotHandle;
iLumi.getByLabel(beamSpotModuleName_,beamSpotLabel_, beamSpotHandle);
//iLumi.getByLabel("beamspot","alcaBeamSpot", beamSpotHandle);
iLumi.getByToken(beamSpotToken_, beamSpotHandle);

if(beamSpotHandle.isValid()) { // check the product
Expand Down
6 changes: 1 addition & 5 deletions DQM/CastorMonitor/src/CastorMonitorModule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -459,16 +459,14 @@ void CastorMonitorModule::analyze(const edm::Event& iEvent, const edm::EventSetu
//-- TAKE IT AWAY for the time being
////---- try to get raw data and unpacker report
edm::Handle<FEDRawDataCollection> RawData;
//iEvent.getByLabel(inputLabelRaw_,RawData);
iEvent.getByToken(inputLabelRawToken_, RawData);
if (!RawData.isValid()) {
rawOK_=false;
if (fVerbosity>0) std::cout << "RAW DATA NOT FOUND!" << std::endl;
}


edm::Handle<HcalUnpackerReport> report;
//iEvent.getByLabel(inputLabelReport_,report);
edm::Handle<HcalUnpackerReport> report;
iEvent.getByToken(inputLabelReportToken_, report);
if (!report.isValid()) {
rawOK_=false;
Expand All @@ -490,7 +488,6 @@ void CastorMonitorModule::analyze(const edm::Event& iEvent, const edm::EventSetu
//---------------------------------------------------------------//

edm::Handle<CastorDigiCollection> CastorDigi;
//iEvent.getByLabel(inputLabelDigi_,CastorDigi);
iEvent.getByToken(inputLabelDigiToken_, CastorDigi);
if (!CastorDigi.isValid()) {
digiOK_=false;
Expand All @@ -509,7 +506,6 @@ void CastorMonitorModule::analyze(const edm::Event& iEvent, const edm::EventSetu
//------------------- try to get RecHits ------------------------//
//---------------------------------------------------------------//
edm::Handle<CastorRecHitCollection> CastorHits;
//iEvent.getByLabel(inputLabelRecHitCASTOR_,CastorHits);
iEvent.getByToken(inputLabelRecHitCASTORToken_, CastorHits);
if (!CastorHits.isValid()) {
rechitOK_ = false;
Expand Down
1 change: 0 additions & 1 deletion DQM/DTMonitorModule/src/DTAlbertoBenvenutiTask.cc
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ void DTAlbertoBenvenutiTask::analyze(const edm::Event& e, const edm::EventSetup&
if (nevents%1000 == 0 && debug) {}

edm::Handle<DTDigiCollection> dtdigis;
//e.getByLabel("dtunpacker", dtdigis);
e.getByToken(DTUnpackerToken_, dtdigis);

bool checkNoisyChannels = parameters.getUntrackedParameter<bool>("checkNoisyChannels",false);
Expand Down
1 change: 0 additions & 1 deletion DQM/DataScouting/plugins/AlphaTVarAnalyzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ AlphaTVarAnalyzer::~AlphaTVarAnalyzer(){}
void AlphaTVarAnalyzer::analyze( const edm::Event & iEvent, const edm::EventSetup & c ){

edm::Handle<std::vector<double> > alphaTvar_handle;
//iEvent.getByLabel(m_alphaTVarCollectionTag,alphaTvar_handle);
iEvent.getByToken(m_alphaTVarCollectionTagToken_, alphaTvar_handle);


Expand Down
4 changes: 0 additions & 4 deletions DQM/DataScouting/plugins/DiJetVarAnalyzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ void DiJetVarAnalyzer::analyze( const edm::Event & iEvent, const edm::EventSetup

// ## Get jet collection
edm::Handle<reco::CaloJetCollection> calojets_handle;
//iEvent.getByLabel(jetCollectionTag_,calojets_handle);
iEvent.getByToken(jetCollectionTagToken_,calojets_handle);


Expand All @@ -92,7 +91,6 @@ void DiJetVarAnalyzer::analyze( const edm::Event & iEvent, const edm::EventSetup

// ## Get widejets
edm::Handle< vector<math::PtEtaPhiMLorentzVector> > widejets_handle;
//iEvent.getByLabel (widejetsCollectionTag_,widejets_handle);
iEvent.getByToken(widejetsCollectionTagToken_, widejets_handle);

TLorentzVector wj1;
Expand Down Expand Up @@ -133,12 +131,10 @@ void DiJetVarAnalyzer::analyze( const edm::Event & iEvent, const edm::EventSetup

// met
edm::Handle<reco::CaloMETCollection> calomet_handle;
//iEvent.getByLabel(metCollectionTag_,calomet_handle);
iEvent.getByToken(metCollectionTagToken_, calomet_handle);

// met cleaned
edm::Handle<reco::CaloMETCollection> calometClean_handle;
//iEvent.getByLabel(metCleanCollectionTag_,calometClean_handle);
iEvent.getByToken(metCleanCollectionTagToken_, calometClean_handle);

if( calomet_handle.isValid() && calometClean_handle.isValid() )
Expand Down
4 changes: 0 additions & 4 deletions DQM/DataScouting/plugins/RazorVarAnalyzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ void RazorVarAnalyzer::analyze( const edm::Event & iEvent, const edm::EventSetup

//count the number of jets with a minimal selection
edm::Handle<reco::CaloJetCollection> calojets_handle;
//iEvent.getByLabel(m_jetCollectionTag,calojets_handle);
iEvent.getByToken(m_jetCollectionTagToken_, calojets_handle);


Expand All @@ -50,7 +49,6 @@ void RazorVarAnalyzer::analyze( const edm::Event & iEvent, const edm::EventSetup

//count the number of muons
edm::Handle<std::vector<reco::RecoChargedCandidate> > muon_handle;
//iEvent.getByLabel(m_muCollectionTag,muon_handle);
iEvent.getByToken(m_muCollectionTagToken_, muon_handle);

unsigned int nmu_loose = 0;
Expand All @@ -64,7 +62,6 @@ void RazorVarAnalyzer::analyze( const edm::Event & iEvent, const edm::EventSetup

//count the number of electrons
edm::Handle<reco::ElectronCollection> ele_handle;
//iEvent.getByLabel(m_eleCollectionTag,ele_handle);
iEvent.getByToken(m_eleCollectionTagToken_, ele_handle);

unsigned int nele_loose = 0;
Expand All @@ -91,7 +88,6 @@ void RazorVarAnalyzer::analyze( const edm::Event & iEvent, const edm::EventSetup
}

edm::Handle<std::vector<double> > razorvar_handle;
//iEvent.getByLabel(m_razorVarCollectionTag,razorvar_handle);
iEvent.getByToken(m_razorVarCollectionTagToken_, razorvar_handle);

if(razorvar_handle->size() > 1){
Expand Down
1 change: 0 additions & 1 deletion DQM/DataScouting/plugins/ScoutingTestAnalyzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ void ScoutingTestAnalyzer::analyze( const edm::Event & iEvent, const edm::EventS


edm::Handle<reco::CaloJetCollection> calojets_handle ;
//iEvent.getByLabel(m_pfJetsCollectionTag,calojets_handle) ;
iEvent.getByToken(m_pfJetsCollectionTagToken_, calojets_handle);

/* This is an example of how C++11 can simplify or lifes. The auto keyword
Expand Down
1 change: 0 additions & 1 deletion DQM/DataScouting/src/AlphaTVarProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ AlphaTVarProducer::produce(edm::Event& iEvent, const edm::EventSetup& iSetup)

// get hold of collection of objects
edm::Handle<reco::CaloJetCollection> calojet_handle;
iEvent.getByLabel(inputJetTag_,calojet_handle);
iEvent.getByToken(inputJetTagToken_, calojet_handle);

std::auto_ptr<std::vector<double> > result(new std::vector<double>);
Expand Down
1 change: 0 additions & 1 deletion DQM/DataScouting/src/DiJetVarProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ DiJetVarProducer::produce(edm::Event& iEvent, const edm::EventSetup& iSetup)

// ## Get jet collection
edm::Handle<reco::CaloJetCollection> calojets_handle;
iEvent.getByLabel(inputJetTag_,calojets_handle);
iEvent.getByToken(inputJetTagToken_, calojets_handle);
//cout << "size: " << calojets_handle->size() << endl;

Expand Down
2 changes: 0 additions & 2 deletions DQM/DataScouting/src/RazorVarProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,10 @@ RazorVarProducer::produce(edm::Event& iEvent, const edm::EventSetup& iSetup)

// get hold of collection of objects
Handle< vector<math::XYZTLorentzVector> > hemispheres;
//iEvent.getByLabel (inputTag_,hemispheres);
iEvent.getByToken (inputTagToken_, hemispheres);

// get hold of the MET Collection
Handle<CaloMETCollection> inputMet;
iEvent.getByLabel(inputMetTag_,inputMet);
iEvent.getByToken(inputMetTagToken_, inputMet);

std::auto_ptr<std::vector<double> > result(new std::vector<double>);
Expand Down
3 changes: 1 addition & 2 deletions DQM/HcalMonitorTasks/src/HcalDataIntegrityTask.cc
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ void HcalDataIntegrityTask::analyze(edm::Event const&e, edm::EventSetup const&s)
// Now get the collections we need

edm::Handle<FEDRawDataCollection> rawraw;

// Trying new getByLabel

if (!(e.getByToken(tok_raw_,rawraw)))
{
if (debug_>0) edm::LogWarning("HcalDataIntegrityTask")<<" raw data with label "<<inputLabelRawData_<<" not available";
Expand Down
2 changes: 0 additions & 2 deletions DQM/HcalMonitorTasks/src/HcalDigiMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,6 @@ void HcalDigiMonitor::analyze(edm::Event const&e, edm::EventSetup const&s)
/////////////////////////////////////////////////////////////////
// check if detectors whether they were ON
edm::Handle<DcsStatusCollection> dcsStatus;
//e.getByLabel("scalersRawToDigi", dcsStatus);
e.getByToken(dcsStatusToken_, dcsStatus);

if (dcsStatus.isValid() && dcsStatus->size() != 0)
Expand Down Expand Up @@ -560,7 +559,6 @@ void HcalDigiMonitor::analyze(edm::Event const&e, edm::EventSetup const&s)
}
// try to get Raw Data
edm::Handle<FEDRawDataCollection> rawraw;
//if (!(e.getByLabel(FEDRawDataCollection_,rawraw)))
if ( !(e.getByToken(FEDRawDataCollectionToken_, rawraw)))
{
edm::LogWarning("HcalRawDataMonitor")<<" raw data with label "<<FEDRawDataCollection_<<" not available";
Expand Down
4 changes: 2 additions & 2 deletions DQM/L1TMonitor/interface/CompareTwoInstances.hh
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ public:
// relevant guy.
// using namespace edm;
// Handle<L1GctEmCandCollection> p1, p2;
// iEvent.getByLabel(Coll1_,p1);
// iEvent.getByLabel(Coll2_,p2);
// iEvent.getByToken(Coll1Token_,p1);
// iEvent.getByToken(Coll2Token_,p2);

// a_(p1,p2);
//
Expand Down
4 changes: 0 additions & 4 deletions DQM/L1TMonitor/src/L1GtHwValidation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,6 @@ void L1GtHwValidation::compareDaqRecord(const edm::Event& iEvent,

// get the L1 GT hardware DAQ record L1GlobalTriggerReadoutRecord
edm::Handle<L1GlobalTriggerReadoutRecord> gtReadoutRecordData;
//iEvent.getByLabel(m_l1GtDataDaqInputTag, gtReadoutRecordData);
iEvent.getByToken(m_l1GtDataDaqInputToken_, gtReadoutRecordData);

bool validData = false;
Expand All @@ -1613,7 +1612,6 @@ void L1GtHwValidation::compareDaqRecord(const edm::Event& iEvent,

// get the L1 GT emulator DAQ record L1GlobalTriggerReadoutRecord
edm::Handle<L1GlobalTriggerReadoutRecord> gtReadoutRecordEmul;
//iEvent.getByLabel(m_l1GtEmulDaqInputTag, gtReadoutRecordEmul);
iEvent.getByToken(m_l1GtEmulDaqInputToken_, gtReadoutRecordEmul);

bool validEmul = false;
Expand Down Expand Up @@ -1769,7 +1767,6 @@ void L1GtHwValidation::compareEvmRecord(const edm::Event& iEvent,

// get the L1 GT hardware EVM record L1GlobalTriggerEvmReadoutRecord
edm::Handle<L1GlobalTriggerEvmReadoutRecord> gtReadoutRecordData;
//iEvent.getByLabel(m_l1GtDataEvmInputTag, gtReadoutRecordData);
iEvent.getByToken(m_l1GtDataEvmInputToken_, gtReadoutRecordData);

bool validData = false;
Expand All @@ -1782,7 +1779,6 @@ void L1GtHwValidation::compareEvmRecord(const edm::Event& iEvent,

// get the L1 GT emulator EVM record L1GlobalTriggerEvmReadoutRecord
edm::Handle<L1GlobalTriggerEvmReadoutRecord> gtReadoutRecordEmul;
iEvent.getByLabel(m_l1GtEmulEvmInputTag, gtReadoutRecordEmul);
iEvent.getByToken(m_l1GtEmulEvmInputToken_, gtReadoutRecordEmul);

bool validEmul = false;
Expand Down
7 changes: 0 additions & 7 deletions DQM/L1TMonitor/src/L1TCSCTF.cc
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,6 @@ void L1TCSCTF::analyze(const Event& e, const EventSetup& c)
edm::Handle<L1MuGMTReadoutCollection> pCollection;
if( gmtProducer.label() != "null" )
{ // GMT block
//e.getByLabel(gmtProducer,pCollection);
e.getByToken(gmtProducerToken_, pCollection);
if (!pCollection.isValid())
{
Expand Down Expand Up @@ -507,7 +506,6 @@ void L1TCSCTF::analyze(const Event& e, const EventSetup& c)
if( statusProducer.label() != "null" )
{
edm::Handle<L1CSCStatusDigiCollection> status;
//e.getByLabel(statusProducer.label(),statusProducer.instance(),status);
e.getByToken(statusToken_, status);
bool integrity=status->first, se=false, sm=false, bx=false, af=false, fmm=false;
int nStat = 0;
Expand Down Expand Up @@ -543,7 +541,6 @@ void L1TCSCTF::analyze(const Event& e, const EventSetup& c)
CSCTriggerGeometry::setGeometry(pDD);

edm::Handle<CSCCorrelatedLCTDigiCollection> corrlcts;
//e.getByLabel(lctProducer.label(),lctProducer.instance(),corrlcts);
e.getByToken(corrlctsToken_, corrlcts);

for(CSCCorrelatedLCTDigiCollection::DigiRangeIterator csc=corrlcts.product()->begin(); csc!=corrlcts.product()->end(); csc++)
Expand Down Expand Up @@ -638,7 +635,6 @@ void L1TCSCTF::analyze(const Event& e, const EventSetup& c)
if( trackProducer.label() != "null" )
{
edm::Handle<L1CSCTrackCollection> tracks;
//e.getByLabel(trackProducer.label(),trackProducer.instance(),tracks);
e.getByToken(tracksToken_, tracks);
for(L1CSCTrackCollection::const_iterator trk=tracks->begin(); trk<tracks->end(); trk++)
{
Expand Down Expand Up @@ -742,7 +738,6 @@ void L1TCSCTF::analyze(const Event& e, const EventSetup& c)
}
edm::Handle<CSCCorrelatedLCTDigiCollection> corrlcts;
e.getByLabel(lctProducer.label(),lctProducer.instance(),corrlcts);
for(CSCCorrelatedLCTDigiCollection::DigiRangeIterator csc=corrlcts.product()->begin(); csc!=corrlcts.product()->end(); csc++)
{
CSCCorrelatedLCTDigiCollection::Range range1 = corrlcts.product()->get((*csc).first);
Expand Down Expand Up @@ -853,10 +848,8 @@ void L1TCSCTF::analyze(const Event& e, const EventSetup& c)
{
// handle to needed collections
edm::Handle<CSCTriggerContainer<csctf::TrackStub> > dtStubs;
//e.getByLabel(mbProducer.label(), mbProducer.instance(), dtStubs);
e.getByToken(dtStubsToken_, dtStubs);
edm::Handle<L1CSCTrackCollection> tracks;
//e.getByLabel(trackProducer.label(),trackProducer.instance(),tracks);
e.getByToken(mbtracksToken_, tracks);

// loop on the DT stubs
Expand Down
5 changes: 0 additions & 5 deletions DQM/L1TMonitor/src/L1TCompare.cc
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,6 @@ void L1TCompare::analyze(const Event & e, const EventSetup & c)
return;
}


//e.getByLabel(gctSource_.label(),"cenJets", gctCenJets);
//e.getByLabel(gctSource_.label(), "isoEm", gctIsoEmCands);
//e.getByLabel(gctSource_.label(), "nonIsoEm", gctNonIsoEmCands);

e.getByToken(gctCenJetsToken_, gctCenJets);
e.getByToken(gctIsoEmCandsToken_, gctIsoEmCands);
e.getByToken(gctNonIsoEmCandsToken_, gctNonIsoEmCands);
Expand Down
1 change: 0 additions & 1 deletion DQM/L1TMonitor/src/L1TDEMON.cc
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,6 @@ void L1TDEMON::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup)

/// get the comparison results
edm::Handle < L1DataEmulRecord > deRecord;
//iEvent.getByLabel(DEsource_, deRecord);
iEvent.getByToken(DEsourceToken_, deRecord);

if (!deRecord.isValid()) {
Expand Down
3 changes: 0 additions & 3 deletions DQM/L1TMonitor/src/L1TDTTF.cc
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,6 @@ void L1TDTTF::analyze(const edm::Event& event,
/// tracks handle
edm::Handle<L1MuDTTrackContainer > myL1MuDTTrackContainer;
try {
//event.getByLabel(trackInputTag_, myL1MuDTTrackContainer);
event.getByToken(trackInputToken_, myL1MuDTTrackContainer);
} catch (cms::Exception& iException) {
edm::LogError("L1TDTTF::analyze::DataNotFound")
Expand Down Expand Up @@ -657,7 +656,6 @@ void L1TDTTF::analyze(const edm::Event& event,
try {

edm::Handle<reco::MuonCollection> muons;
//event.getByLabel(muonCollectionLabel_, muons);
event.getByToken(muonCollectionToken_, muons);
accept = false;
if ( muons.isValid() ) {
Expand Down Expand Up @@ -711,7 +709,6 @@ void L1TDTTF::analyze(const edm::Event& event,
try {

edm::Handle<L1MuGMTReadoutCollection> pCollection;
//event.getByLabel(gmtSource_, pCollection);
event.getByToken(gmtSourceToken_, pCollection);

if ( !pCollection.isValid() ) {
Expand Down
12 changes: 0 additions & 12 deletions DQM/L1TMonitor/src/L1TGCT.cc
Original file line number Diff line number Diff line change
Expand Up @@ -483,18 +483,6 @@ void L1TGCT::analyze(const edm::Event & e, const edm::EventSetup & c)
edm::Handle < L1GctEtHadCollection > l1EtHad;
edm::Handle < L1GctEtTotalCollection > l1EtTotal;

//e.getByLabel(gctIsoEmSource_, l1IsoEm);
//e.getByLabel(gctNonIsoEmSource_, l1NonIsoEm);
//e.getByLabel(gctCenJetsSource_, l1CenJets);
//e.getByLabel(gctForJetsSource_, l1ForJets);
//e.getByLabel(gctTauJetsSource_, l1TauJets);
//e.getByLabel(gctEnergySumsSource_, l1HFSums);
//e.getByLabel(gctEnergySumsSource_, l1HFCounts);
//e.getByLabel(gctEnergySumsSource_, l1EtMiss);
//e.getByLabel(gctEnergySumsSource_, l1HtMiss);
//e.getByLabel(gctEnergySumsSource_, l1EtHad);
//e.getByLabel(gctEnergySumsSource_, l1EtTotal);

e.getByToken(gctIsoEmSourceToken_, l1IsoEm);
e.getByToken(gctNonIsoEmSourceToken_, l1NonIsoEm);
e.getByToken(gctCenJetsSourceToken_, l1CenJets);
Expand Down
1 change: 0 additions & 1 deletion DQM/L1TMonitor/src/L1TdeRCT.cc
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ void L1TdeRCT::analyze(const Event & e, const EventSetup & c)
edm::Handle < L1CaloEmCollection > emEmul;
edm::Handle < L1CaloRegionCollection > rgnEmul;

// need to change to getByLabel
// bool doEm = true; FIXME gcc461: variable 'doEm' set but not used
// bool doHd = true; FIXME gcc461: variable 'doHd' set but not used
bool doEcal = true;
Expand Down
2 changes: 0 additions & 2 deletions DQM/PhysicsObjectsMonitoring/src/PhysicsObjectsMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ void PhysicsObjectsMonitor::analyze(const Event & event, const EventSetup& event

// Get the RecTrack collection from the event
Handle<reco::TrackCollection> staTracks;
//event.getByLabel(theSTAMuonLabel, staTracks);
event.getByToken(theSTAMuonToken_, staTracks);

ESHandle<MagneticField> theMGField;
Expand All @@ -122,7 +121,6 @@ void PhysicsObjectsMonitor::analyze(const Event & event, const EventSetup& event
// Get the SimTrack collection from the event
// if(theDataType == "SimData"){
// Handle<SimTrackContainer> simTracks;
// event.getByLabel("g4SimHits",simTracks);

// numberOfRecTracks += staTracks->size();

Expand Down
6 changes: 1 addition & 5 deletions DQM/RCTMonitor/src/RCTMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,8 @@ float DynamicScale(int EtaStamp)
// Get the RCT digis
edm::Handle<L1CaloEmCollection> em;
// edm::Handle<L1CaloRegionCollection> rgn;

// iEvent.getByType(em);
// iEvent.getByType(rgn);

//iEvent.getByLabel(m_rctSource,em);
iEvent.getByToken(m_rctSourceToken_, em);
iEvent.getByToken(m_rctSourceToken_, em);



Expand Down
1 change: 0 additions & 1 deletion DQM/SiPixelMonitorClient/src/SiPixelDaqInfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ void SiPixelDaqInfo::analyze(const edm::Event& iEvent, const edm::EventSetup& iS
if(NEvents_>=1 && NEvents_<=100){
// check if any Pixel FED is in readout:
edm::Handle<FEDRawDataCollection> rawDataHandle;
//iEvent.getByLabel(daqSource_, rawDataHandle);
iEvent.getByToken(daqSourceToken_, rawDataHandle);
if(!rawDataHandle.isValid()){
edm::LogInfo("SiPixelDaqInfo") << daqSource_ << " is empty!";
Expand Down
1 change: 0 additions & 1 deletion DQM/SiPixelMonitorClient/src/SiPixelEDAClient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ void SiPixelEDAClient::analyze(const edm::Event& e, const edm::EventSetup& eSetu
if(nEvents_==1){
// check if any Pixel FED is in readout:
edm::Handle<FEDRawDataCollection> rawDataHandle;
//e.getByLabel(inputSource_, rawDataHandle);
e.getByToken(inputSourceToken_, rawDataHandle);
if(!rawDataHandle.isValid()){
edm::LogInfo("SiPixelEDAClient") << inputSource_ << " is empty";
Expand Down
Loading

0 comments on commit ceda167

Please sign in to comment.