24 theOutputTree(nullptr),
33 theOutputTree =
new TTree(
"lasRawDataTree",
"lasRawDataTree");
58 std::vector<edm::eventsetup::EventSetupRecordKey> oToFill;
62 o << oToFill[
i].name() <<
"\n";
64 LogDebug(
"RawDataConverter") <<
"The size of EventSetup is: " << oToFill.size() <<
"\n" << o.str();
80 std::ostringstream search_message;
81 search_message <<
"Searching for SiStripDigis\n";
89 search_message <<
"Checking for Module " << *moduleLabel <<
" Instance " << *instanceLabel <<
"\n";
92 iEvent.
getByLabel(*moduleLabel, *instanceLabel, theStripDigis);
94 search_message <<
"Found ZeroSuppressed\n";
95 edm::LogInfo(
"RawDataConverter") << search_message.str();
102 iEvent.
getByLabel(*moduleLabel, *instanceLabel, theStripRawDigis);
103 if (theStripRawDigis.
isValid()) {
104 search_message <<
"Found Raw\n";
105 edm::LogInfo(
"RawDataConverter") << search_message.str();
112 iEvent.
getByLabel(*moduleLabel, *instanceLabel, theStripProcessedRawDigis);
113 if (theStripProcessedRawDigis.
isValid()) {
114 search_message <<
"Found ProcessedRaw\n";
115 edm::LogInfo(
"RawDataConverter") << search_message.str();
140 latency =
static_cast<int32_t
>(summary->latency());
155 GetDigis<SiStripDigi>(
iEvent);
158 throw std::runtime_error(
"RawDataConverter is not yet able to process VirginRaw Data");
161 throw std::runtime_error(
"RawDataConverter is not yet able to process ProcessedRaw Data");
164 throw std::runtime_error(
"Did not find valid Module or Instance label");
190 static const std::vector<float> zero_buffer(512, 0);
203 }
while (loop.
TECLoop(det, ring, beam, disk));
void SetTEC2TECEntry(int subdetector, int beam, int tecDisk, T)
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
void fillDetectorId(void)
#define DEFINE_FWK_MODULE(type)
DigiType GetValidLabels(const edm::Event &iEvent)
edm::LuminosityBlockNumber_t luminosityBlock() const
LASGlobalData< int > detectorId
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< std::string > theDigiModuleLabels
void beginRun(edm::Run const &, edm::EventSetup const &) override
bool TEC2TECLoop(int &, int &, int &) const
T & GetTIBTOBEntry(int subdetector, int beam, int tibTobPosition)
void SetTIBTOBEntry(int subdetector, int beam, int tibTobPosition, T)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
RawDataConverter(const edm::ParameterSet &)
~RawDataConverter() override
Log< level::Info, false > LogInfo
T & GetTEC2TECEntry(int subdetector, int beam, int tecDisk)
T getParameter(std::string const &) const
T & GetTECEntry(int subdetector, int tecRing, int beam, int tecDisk)
void fillAvailableRecordKeys(std::vector< eventsetup::EventSetupRecordKey > &oToFill) const
clears the oToFill vector and then fills it with the keys for all available records ...
std::string CurrentModuleLabel
LASGlobalData< std::vector< float > > theData
bool TECLoop(int &, int &, int &, int &) const
bool TIBTOBLoop(int &, int &, int &) const
std::string CurrentInstanceLabel
std::vector< std::string > theProductInstanceLabels
void SetTECEntry(int subdetector, int tecRing, int beam, int tecDisk, T)