16 triggerFed_(conf.getUntrackedParameter<int>(
"HcalTriggerFED",-1)),
17 sdFed_(conf.getUntrackedParameter<int>(
"HcalSlowDataFED",-1)),
18 spdFed_(conf.getUntrackedParameter<int>(
"HcalSourcePositionFED",-1)),
19 tdcFed_(conf.getUntrackedParameter<int>(
"HcalTDCFED",-1)),
20 qadcFed_(conf.getUntrackedParameter<int>(
"HcalQADCFED",-1)),
21 calibFile_(conf.getUntrackedParameter<
string>(
"ConfigurationFile",
"")),
22 tdcUnpacker_(conf.getUntrackedParameter<bool>(
"IncludeUnmatchedHits",
false)),
29 std::cout <<
"HcalTBObjectUnpacker will unpack Trigger FED ";
35 std::cout <<
"HcalTBObjectUnpacker will unpack SlowData FED ";
42 std::cout <<
"HcalTBObjectUnpacker will unpack TDC FED ";
49 std::cout <<
"HcalTBObjectUnpacker will unpack QADC FED ";
55 std::cout <<
"HcalTBObjectUnpacker will unpack Source Position Data FED ";
69 "HcalTBObjectUnpacker: TDC/QADC/WC configuration file not found or is empty: "<<
calibFile_<<endl;
73 "HcalTBObjectUnpacker: TDC/QADC/WC configuration file not found: "<<
calibFile_<<endl;
99 std::auto_ptr<HcalTBTriggerData>
102 std::auto_ptr<HcalTBRunData>
105 std::auto_ptr<HcalTBEventPosition>
108 std::auto_ptr<HcalTBTiming>
111 std::auto_ptr<HcalTBBeamCounters>
114 std::auto_ptr<HcalSourcePositionData>
162 printf(
"HcalTBObjectUnpacker cowardly refuses to parse a NULL file...\n");
174 while (
infile.getline(buffer, 1024)) {
175 if (buffer [0] ==
'#')
continue;
176 if (buffer [0] ==
'/' && buffer [1] ==
'/')
continue;
178 vector<string> lineVect;
181 for (
unsigned i=0;
i<=tmpStr.size();
i++) {
182 if (tmpStr[
i] ==
' ' ||
i==tmpStr.size()) {
185 lineVect.push_back(item);
192 if (empty) empty =
false;
196 if(lineVect.size()>0)
calibLines_.push_back(lineVect);
hcaltb::HcalTBTriggerDataUnpacker tdUnpacker_
T getParameter(std::string const &) const
void unpack(const FEDRawData &raw, HcalTBTriggerData &htbtd) const
tuple start
Check for commandline option errors.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
void unpack(const FEDRawData &raw, HcalTBBeamCounters &beamadc, bool is04_=true) const
std::vector< std::vector< std::string > > calibLines_
void unpack(const FEDRawData &raw, HcalSourcePositionData &hspd) const
hcaltb::HcalTBSlowDataUnpacker sdUnpacker_
hcaltb::HcalTBSourcePositionDataUnpacker spdUnpacker_
virtual ~HcalTBObjectUnpacker()
HcalTBObjectUnpacker(const edm::ParameterSet &ps)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
void setCalib(const std::vector< std::vector< std::string > > &calibLines_)
virtual void produce(edm::Event &e, const edm::EventSetup &c)
edm::EDGetTokenT< FEDRawDataCollection > tok_raw_
void unpack(const FEDRawData &raw, HcalTBRunData &htbrd, HcalTBEventPosition &htbep) const
void unpack(const FEDRawData &raw, HcalTBEventPosition &pos, HcalTBTiming &timing) const
hcaltb::HcalTBTDCUnpacker tdcUnpacker_
void setCalib(const std::vector< std::vector< std::string > > &calibLines_)
hcaltb::HcalTBQADCUnpacker qadcUnpacker_
volatile std::atomic< bool > shutdown_flag false
std::string fullPath() const