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 uint32_t _status_word_to_mask = 0x0000);
59 std::string & getLutXml( std::vector<unsigned int> & _lut );
63 std::map<int, boost::shared_ptr<LutXml> > getLutXmlFromAsciiMaster(
std::string _filename,
66 bool split_by_crate =
true );
68 std::map<int, boost::shared_ptr<LutXml> > getLinearizationLutXmlFromAsciiMasterEmap(
std::string _filename,
71 bool split_by_crate =
true );
73 std::map<int, boost::shared_ptr<LutXml> > getLinearizationLutXmlFromAsciiMasterEmap_new(
std::string _filename,
76 bool split_by_crate =
true );
78 std::map<int, boost::shared_ptr<LutXml> > getCompressionLutXmlFromAsciiMaster(
std::string _filename,
81 bool split_by_crate =
true );
83 std::map<int, boost::shared_ptr<LutXml> > getLinearizationLutXmlFromCoder(
const HcalTPGCoder & _coder,
85 bool split_by_crate =
true );
87 std::map<int, boost::shared_ptr<LutXml> > getMasks(
int var,
std::string _tag,
bool split_by_crate =
true );
89 std::map<int, boost::shared_ptr<LutXml> > getLinearizationLutXmlFromCoderEmap(
const HcalTPGCoder & _coder,
91 bool split_by_crate =
true );
93 std::map<int, boost::shared_ptr<LutXml> > getCompressionLutXmlFromCoder(
std::string _tag,
bool split_by_crate =
true );
95 std::map<int, boost::shared_ptr<LutXml> > getCompressionLutXmlFromCoder(
const CaloTPGTranscoderULUT & _coder,
97 bool split_by_crate =
true );
99 std::map<int, boost::shared_ptr<LutXml> > getZdcLutXml(
std::string _tag,
100 bool split_by_crate =
true );
104 boost::shared_ptr<LutXml> > &
result,
106 boost::shared_ptr<LutXml> > &
other);
111 int writeLutXmlFiles(
std::map<
int, boost::shared_ptr<LutXml> > & _xml,
std::string _tag =
"default_tag",
bool split_by_crate =
true );
114 int createCompLutXmlFilesFromCoder(
std::string _tag,
bool split_by_crate =
true );
116 int createAllLutXmlFilesFromCoder(
const HcalTPGCoder & _coder,
std::string _tag,
bool split_by_crate =
true );
122 int createAllLutXmlFilesLinAsciiCompCoder(
std::string _tag,
std::string _lin_file,
bool split_by_crate =
true );
127 int test_direct_xml_parsing(
std::string _filename );
128 void test_emap(
void);
138 std::vector<unsigned int> getLutFromXml_old(
std::string tag, uint32_t _rawid, hcal::ConfigurationDatabase::LUTType _lt );
139 std::vector<unsigned int> getLutFromXml(
std::string tag, uint32_t _rawid, hcal::ConfigurationDatabase::LUTType _lt );
141 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" );
143 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 );
155 int initChannelIterator(std::vector<HcalGenericDetId> & map);
177 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