15 : triggerFed_(conf.getUntrackedParameter<
int>(
"HcalTriggerFED", -1)),
16 sdFed_(conf.getUntrackedParameter<
int>(
"HcalSlowDataFED", -1)),
17 spdFed_(conf.getUntrackedParameter<
int>(
"HcalSourcePositionFED", -1)),
18 tdcFed_(conf.getUntrackedParameter<
int>(
"HcalTDCFED", -1)),
19 qadcFed_(conf.getUntrackedParameter<
int>(
"HcalQADCFED", -1)),
20 calibFile_(conf.getUntrackedParameter<
string>(
"ConfigurationFile",
"")),
21 tdcUnpacker_(conf.getUntrackedParameter<
bool>(
"IncludeUnmatchedHits",
false)),
23 doTriggerData_(
false),
24 doEventPosition_(
false),
31 std::cout <<
"HcalTBObjectUnpacker will unpack Trigger FED ";
37 std::cout <<
"HcalTBObjectUnpacker will unpack SlowData FED ";
44 std::cout <<
"HcalTBObjectUnpacker will unpack TDC FED ";
51 std::cout <<
"HcalTBObjectUnpacker will unpack QADC FED ";
57 std::cout <<
"HcalTBObjectUnpacker will unpack Source Position Data FED ";
69 <<
"HcalTBObjectUnpacker: TDC/QADC/WC configuration file not found or is empty: " <<
calibFile_ << endl;
72 <<
"HcalTBObjectUnpacker: TDC/QADC/WC configuration file not found: " <<
calibFile_ << endl;
77 produces<HcalTBTriggerData>();
79 produces<HcalTBRunData>();
81 produces<HcalTBEventPosition>();
83 produces<HcalTBTiming>();
86 produces<HcalTBBeamCounters>();
90 produces<HcalSourcePositionData>();
105 auto trigd = std::make_unique<HcalTBTriggerData>();
107 auto rund = std::make_unique<HcalTBRunData>();
109 auto epd = std::make_unique<HcalTBEventPosition>();
111 auto tmgd = std::make_unique<HcalTBTiming>();
113 auto bcntd = std::make_unique<HcalTBBeamCounters>();
115 auto spd = std::make_unique<HcalSourcePositionData>();
167 printf(
"HcalTBObjectUnpacker cowardly refuses to parse a NULL file...\n");
184 vector<string> lineVect;
188 for (
unsigned i = 0;
i <= tmpStr.size();
i++) {
189 if (tmpStr[
i] ==
' ' ||
i == tmpStr.size()) {
192 lineVect.push_back(
item);
203 if (!lineVect.empty())
hcaltb::HcalTBTriggerDataUnpacker tdUnpacker_
void produce(edm::Event &e, const edm::EventSetup &c) override
T getParameter(std::string const &) const
std::string fullPath() const
#define DEFINE_FWK_MODULE(type)
std::vector< std::vector< std::string > > calibLines_
hcaltb::HcalTBSlowDataUnpacker sdUnpacker_
hcaltb::HcalTBSourcePositionDataUnpacker spdUnpacker_
HcalTBObjectUnpacker(const edm::ParameterSet &ps)
void unpack(const FEDRawData &raw, HcalTBRunData &htbrd, HcalTBEventPosition &htbep) const
void setCalib(const std::vector< std::vector< std::string > > &calibLines_)
~HcalTBObjectUnpacker() override
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
void unpack(const FEDRawData &raw, HcalTBTriggerData &htbtd) const
edm::EDGetTokenT< FEDRawDataCollection > tok_raw_
void unpack(const FEDRawData &raw, HcalSourcePositionData &hspd) const
hcaltb::HcalTBTDCUnpacker tdcUnpacker_
void unpack(const FEDRawData &raw, HcalTBBeamCounters &beamadc, bool is04_=true) const
void setCalib(const std::vector< std::vector< std::string > > &calibLines_)
hcaltb::HcalTBQADCUnpacker qadcUnpacker_
void unpack(const FEDRawData &raw, HcalTBEventPosition &pos, HcalTBTiming &timing) const