1 #ifndef HcalLutManager_h 2 #define HcalLutManager_h 16 #include <boost/shared_ptr.hpp> 38 std::vector<std::vector<unsigned int> >
lut;
50 uint32_t _status_word_to_mask = 0x0000);
54 std::string & getLutXml( std::vector<unsigned int> & _lut );
58 std::map<int, boost::shared_ptr<LutXml> > getLutXmlFromAsciiMaster(
std::string _filename,
61 bool split_by_crate =
true );
63 std::map<int, boost::shared_ptr<LutXml> > getLinearizationLutXmlFromAsciiMasterEmap(
std::string _filename,
66 bool split_by_crate =
true );
68 std::map<int, boost::shared_ptr<LutXml> > getLinearizationLutXmlFromAsciiMasterEmap_new(
std::string _filename,
71 bool split_by_crate =
true );
73 std::map<int, boost::shared_ptr<LutXml> > getCompressionLutXmlFromAsciiMaster(
std::string _filename,
76 bool split_by_crate =
true );
78 std::map<int, boost::shared_ptr<LutXml> > getLinearizationLutXmlFromCoder(
const HcalTPGCoder & _coder,
80 bool split_by_crate =
true );
82 std::map<int, boost::shared_ptr<LutXml> > getLinearizationLutXmlFromCoderEmap(
const HcalTPGCoder & _coder,
84 bool split_by_crate =
true );
86 std::map<int, boost::shared_ptr<LutXml> > getCompressionLutXmlFromCoder(
std::string _tag,
bool split_by_crate =
true );
88 std::map<int, boost::shared_ptr<LutXml> > getCompressionLutXmlFromCoder(
const CaloTPGTranscoderULUT & _coder,
90 bool split_by_crate =
true );
92 std::map<int, boost::shared_ptr<LutXml> > getZdcLutXml(
std::string _tag,
93 bool split_by_crate =
true );
97 boost::shared_ptr<LutXml> > &
result,
99 boost::shared_ptr<LutXml> > &
other);
104 int writeLutXmlFiles(
std::map<
int, boost::shared_ptr<LutXml> > & _xml,
std::string _tag =
"default_tag",
bool split_by_crate =
true );
107 int createCompLutXmlFilesFromCoder(
std::string _tag,
bool split_by_crate =
true );
109 int createAllLutXmlFilesFromCoder(
const HcalTPGCoder & _coder,
std::string _tag,
bool split_by_crate =
true );
115 int createAllLutXmlFilesLinAsciiCompCoder(
std::string _tag,
std::string _lin_file,
bool split_by_crate =
true );
120 int test_direct_xml_parsing(
std::string _filename );
121 void test_emap(
void);
131 std::vector<unsigned int> getLutFromXml_old(
std::string tag, uint32_t _rawid, hcal::ConfigurationDatabase::LUTType _lt );
132 std::vector<unsigned int> getLutFromXml(
std::string tag, uint32_t _rawid, hcal::ConfigurationDatabase::LUTType _lt );
134 std::map<int, boost::shared_ptr<LutXml> > get_brickSet_from_oracle(
std::string tag,
const std::string _accessor =
"occi://CMS_HCL_PRTTYPE_HCAL_READER@anyhost/int2r?PASSWORD=HCAL_Reader_88,LHWM_VERSION=22" );
136 int get_xml_files_from_db(
std::string tag,
const std::string db_accessor =
"occi://CMS_HCL_PRTTYPE_HCAL_READER@anyhost/int2r?PASSWORD=HCAL_Reader_88,LHWM_VERSION=22",
bool split_by_crate =
true );
148 int initChannelIterator(std::vector<HcalGenericDetId> & map);
169 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