21 theOutputTree(nullptr),
30 theOutputTree =
new TTree(
"lasRawDataTree",
"lasRawDataTree");
50 std::vector<edm::eventsetup::EventSetupRecordKey> oToFill;
54 o << oToFill[
i].name() <<
"\n";
56 LogDebug(
"RawDataConverter") <<
"The size of EventSetup is: " << oToFill.size() <<
"\n" << o.str();
72 std::ostringstream search_message;
73 search_message <<
"Searching for SiStripDigis\n";
81 search_message <<
"Checking for Module " << *moduleLabel <<
" Instance " << *instanceLabel <<
"\n";
84 iEvent.
getByLabel(*moduleLabel, *instanceLabel, theStripDigis);
86 search_message <<
"Found ZeroSuppressed\n";
87 edm::LogInfo(
"RawDataConverter") << search_message.str();
94 iEvent.
getByLabel(*moduleLabel, *instanceLabel, theStripRawDigis);
95 if (theStripRawDigis.
isValid()) {
96 search_message <<
"Found Raw\n";
97 edm::LogInfo(
"RawDataConverter") << search_message.str();
104 iEvent.
getByLabel(*moduleLabel, *instanceLabel, theStripProcessedRawDigis);
105 if (theStripProcessedRawDigis.
isValid()) {
106 search_message <<
"Found ProcessedRaw\n";
107 edm::LogInfo(
"RawDataConverter") << search_message.str();
132 latency =
static_cast<int32_t
>(summary->latency());
147 GetDigis<SiStripDigi>(
iEvent);
150 throw std::runtime_error(
"RawDataConverter is not yet able to process VirginRaw Data");
153 throw std::runtime_error(
"RawDataConverter is not yet able to process ProcessedRaw Data");
156 throw std::runtime_error(
"Did not find valid Module or Instance label");
182 static const std::vector<float> zero_buffer(512, 0);
195 }
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 &)
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)