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>();
102 auto trigd = std::make_unique<HcalTBTriggerData>();
104 auto rund = std::make_unique<HcalTBRunData>();
106 auto epd = std::make_unique<HcalTBEventPosition>();
108 auto tmgd = std::make_unique<HcalTBTiming>();
110 auto bcntd = std::make_unique<HcalTBBeamCounters>();
112 auto spd = std::make_unique<HcalSourcePositionData>();
164 printf(
"HcalTBObjectUnpacker cowardly refuses to parse a NULL file...\n");
181 vector<string> lineVect;
185 for (
unsigned i = 0;
i <= tmpStr.size();
i++) {
186 if (tmpStr[
i] ==
' ' ||
i == tmpStr.size()) {
189 lineVect.push_back(
item);
200 if (!lineVect.empty())
hcaltb::HcalTBTriggerDataUnpacker tdUnpacker_
void produce(edm::Event &e, const edm::EventSetup &c) override
T getParameter(std::string const &) const
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
#define DEFINE_FWK_MODULE(type)
void setCalib(const std::vector< std::vector< std::string > > &calibLines_)
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_
const std::string & fullPath() const
void unpack(const FEDRawData &raw, HcalTBEventPosition &pos, HcalTBTiming &timing) const