1 #ifndef HcalLutManager_h 2 #define HcalLutManager_h 36 std::vector<std::vector<unsigned int> >
lut;
45 uint32_t _status_word_to_mask = 0x0000);
49 uint32_t _status_word_to_mask = 0x0000);
54 std::string& getLutXml(std::vector<unsigned int>& _lut);
58 std::map<int, std::shared_ptr<LutXml> > getLutXmlFromAsciiMaster(
std::string _filename,
61 bool split_by_crate =
true);
63 std::map<int, std::shared_ptr<LutXml> > getLinearizationLutXmlFromAsciiMasterEmap(
std::string _filename,
66 bool split_by_crate =
true);
68 std::map<int, std::shared_ptr<LutXml> > getLinearizationLutXmlFromAsciiMasterEmap_new(
std::string _filename,
71 bool split_by_crate =
true);
73 std::map<int, std::shared_ptr<LutXml> > getCompressionLutXmlFromAsciiMaster(
std::string _filename,
76 bool split_by_crate =
true);
78 std::map<int, std::shared_ptr<LutXml> > getLinearizationLutXmlFromCoder(
const HcalTPGCoder& _coder,
80 bool split_by_crate =
true);
82 std::map<int, std::shared_ptr<LutXml> > getMasks(
int var,
std::string _tag,
bool split_by_crate =
true);
84 std::map<int, std::shared_ptr<LutXml> > getLinearizationLutXmlFromCoderEmap(
const HcalTPGCoder& _coder,
86 bool split_by_crate =
true);
88 std::map<int, std::shared_ptr<LutXml> > getCompressionLutXmlFromCoder(
std::string _tag,
bool split_by_crate =
true);
90 std::map<int, std::shared_ptr<LutXml> > getCompressionLutXmlFromCoder(
const CaloTPGTranscoderULUT& _coder,
92 bool split_by_crate =
true);
94 std::map<int, std::shared_ptr<LutXml> > getZdcLutXml(
std::string _tag,
bool split_by_crate =
true);
96 std::map<int, std::shared_ptr<LutXml> > getHEFineGrainLUTs(
std::string _tag,
bool split_by_crate =
true);
104 int writeLutXmlFiles(
std::map<
int, std::shared_ptr<LutXml> >& _xml,
106 bool split_by_crate =
true);
109 int createCompLutXmlFilesFromCoder(
std::string _tag,
bool split_by_crate =
true);
112 int createLutXmlFiles_HBEFFromCoder_HOFromAscii(
std::string _tag,
115 bool split_by_crate =
true);
116 int createLutXmlFiles_HBEFFromCoder_HOFromAscii(
std::string _tag,
120 bool split_by_crate =
true);
122 int createLutXmlFiles_HBEFFromCoder_HOFromAscii_ZDC(
std::string _tag,
126 bool split_by_crate =
true);
128 int createAllLutXmlFilesLinAsciiCompCoder(
std::string _tag,
std::string _lin_file,
bool split_by_crate =
true);
133 int test_direct_xml_parsing(
std::string _filename);
134 void test_emap(
void);
146 hcal::ConfigurationDatabase::LUTType _lt);
147 std::vector<unsigned int> getLutFromXml(
std::string tag, uint32_t _rawid, hcal::ConfigurationDatabase::LUTType _lt);
149 std::map<int, std::shared_ptr<LutXml> > get_brickSet_from_oracle(
152 "occi://CMS_HCL_PRTTYPE_HCAL_READER@anyhost/int2r?PASSWORD=HCAL_Reader_88,LHWM_VERSION=22");
154 int get_xml_files_from_db(
157 "occi://CMS_HCL_PRTTYPE_HCAL_READER@anyhost/int2r?PASSWORD=HCAL_Reader_88,LHWM_VERSION=22",
158 bool split_by_crate =
true);
175 int initChannelIterator(std::vector<HcalGenericDetId>& map);
194 static int getLutSetFromFile_test(
std::string _filename);
std::vector< std::vector< unsigned int > > lut
std::vector< int > phi_max
std::vector< std::string > subdet
static int getLutXml_test(std::vector< unsigned int > &_lut)
Various manipulations with trigger Lookup Tables.
std::vector< int > phi_min
std::vector< int > depth_max
int getInt(ResultSet *rset, int ipar)
const HcalChannelQuality * cq
std::vector< int > depth_min
HcalChannelIterator _iter
XMLDOMBlock * lut_checksums_xml
Gather config data from online DB.
const HcalElectronicsMap * emap
std::vector< int > eta_max
std::vector< int > eta_min
uint32_t status_word_to_mask
const HcalDbService * conditions