Skip to content

Commit

Permalink
local var
Browse files Browse the repository at this point in the history
  • Loading branch information
capalmer85 committed Jun 4, 2015
1 parent e27e0f5 commit 0e239cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EventFilter/Utilities/plugins/TcsdRawToDigi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ class TcdsRawToDigi : public edm::stream::EDProducer<> {
private:
virtual void produce(edm::Event&, const edm::EventSetup&) override;

int nibble;
edm::EDGetTokenT<FEDRawDataCollection> dataToken_;

};
Expand Down Expand Up @@ -87,6 +86,7 @@ void TcdsRawToDigi::produce(edm::Event& iEvent, const edm::EventSetup& iSetup)
edm::Handle<FEDRawDataCollection> rawdata;
iEvent.getByToken(dataToken_,rawdata);

int nibble=-99;
if( rawdata.isValid() ) {
const FEDRawData& tcdsData = rawdata->FEDData(FEDNumbering::MINTCDSuTCAFEDID);
if(tcdsData.size()>0){
Expand All @@ -98,7 +98,7 @@ void TcdsRawToDigi::produce(edm::Event& iEvent, const edm::EventSetup& iSetup)
} else {
nibble=-1;
}
std::cout<<"nibble is "<<nibble<<std::endl;
//std::cout<<"nibble is "<<nibble<<std::endl;

std::unique_ptr<int> pOut(new int(nibble));
iEvent.put( std::move(pOut), "nibble" );
Expand Down

0 comments on commit 0e239cd

Please sign in to comment.