-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
135 additions
and
171 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
OnlineDB/SiStripESSources/test/stubs/testSiStripGainBuilderFromDb.h
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
OnlineDB/SiStripESSources/test/stubs/test_AnalyzeCabling.h
This file was deleted.
Oops, something went wrong.
39 changes: 30 additions & 9 deletions
39
OnlineDB/SiStripESSources/test/stubs/test_FedCablingBuilder.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,43 @@ | ||
|
||
#include "OnlineDB/SiStripESSources/test/stubs/test_FedCablingBuilder.h" | ||
#include "FWCore/Framework/interface/ESHandle.h" | ||
#include "FWCore/MessageLogger/interface/MessageLogger.h" | ||
#include "DataFormats/SiStripCommon/interface/SiStripConstants.h" | ||
#include "CondFormats/DataRecord/interface/SiStripFedCablingRcd.h" | ||
#include "CondFormats/SiStripObjects/interface/SiStripFedCabling.h" | ||
#include "DataFormats/SiStripCommon/interface/SiStripConstants.h" | ||
#include "FWCore/Framework/interface/Event.h" | ||
#include "FWCore/Framework/interface/EventSetup.h" | ||
#include "FWCore/Framework/interface/one/EDAnalyzer.h" | ||
#include "FWCore/MessageLogger/interface/MessageLogger.h" | ||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
#include <iostream> | ||
#include <sstream> | ||
|
||
/** | ||
@class test_FedCablingBuilder | ||
@brief Simple class that analyzes Digis produced by RawToDigi unpacker | ||
*/ | ||
class test_FedCablingBuilder : public edm::one::EDAnalyzer<> { | ||
public: | ||
test_FedCablingBuilder(const edm::ParameterSet&) : cablingToken_(esConsumes()) {} | ||
~test_FedCablingBuilder() override = default; | ||
void analyze(const edm::Event&, const edm::EventSetup&); | ||
|
||
private: | ||
const edm::ESGetToken<SiStripFedCabling, SiStripFedCablingRcd> cablingToken_; | ||
}; | ||
|
||
using namespace std; | ||
using namespace sistrip; | ||
|
||
// ----------------------------------------------------------------------------- | ||
// | ||
void test_FedCablingBuilder::analyze(const edm::Event& event, const edm::EventSetup& setup) { | ||
LogTrace(mlCabling_) << "[test_FedCablingBuilder::" << __func__ << "]" | ||
<< " Dumping all FED connections..."; | ||
|
||
edm::ESHandle<SiStripFedCabling> fed_cabling; | ||
setup.get<SiStripFedCablingRcd>().get(fed_cabling); | ||
const SiStripFedCabling* fed_cabling = &setup.getData(cablingToken_); | ||
// fec cabling | ||
std::stringstream ss; | ||
ss << "[test_AnalyzeCabling::" << __func__ << "]" | ||
<< " Dumping all SiStripModule objects in FED cabling..." << std::endl | ||
<< fed_cabling; | ||
LogTrace(mlCabling_) << ss.str(); | ||
} | ||
|
||
#include "FWCore/Framework/interface/MakerMacros.h" | ||
DEFINE_FWK_MODULE(test_FedCablingBuilder); |
24 changes: 0 additions & 24 deletions
24
OnlineDB/SiStripESSources/test/stubs/test_FedCablingBuilder.h
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.