1 #ifndef HcalLutManager_h 2 #define HcalLutManager_h 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, std::shared_ptr<LutXml> > getLutXmlFromAsciiMaster(
std::string _filename,
66 bool split_by_crate =
true );
68 std::map<int, std::shared_ptr<LutXml> > getLinearizationLutXmlFromAsciiMasterEmap(
std::string _filename,
71 bool split_by_crate =
true );
73 std::map<int, std::shared_ptr<LutXml> > getLinearizationLutXmlFromAsciiMasterEmap_new(
std::string _filename,
76 bool split_by_crate =
true );
78 std::map<int, std::shared_ptr<LutXml> > getCompressionLutXmlFromAsciiMaster(
std::string _filename,
81 bool split_by_crate =
true );
83 std::map<int, std::shared_ptr<LutXml> > getLinearizationLutXmlFromCoder(
const HcalTPGCoder & _coder,
85 bool split_by_crate =
true );
87 std::map<int, std::shared_ptr<LutXml> > getMasks(
int var,
std::string _tag,
bool split_by_crate =
true );
89 std::map<int, std::shared_ptr<LutXml> > getLinearizationLutXmlFromCoderEmap(
const HcalTPGCoder & _coder,
91 bool split_by_crate =
true );
93 std::map<int, std::shared_ptr<LutXml> > getCompressionLutXmlFromCoder(
std::string _tag,
bool split_by_crate =
true );
95 std::map<int, std::shared_ptr<LutXml> > getCompressionLutXmlFromCoder(
const CaloTPGTranscoderULUT & _coder,
97 bool split_by_crate =
true );
99 std::map<int, std::shared_ptr<LutXml> > getZdcLutXml(
std::string _tag,
100 bool split_by_crate =
true );
102 std::map<int, std::shared_ptr<LutXml> > getHEFineGrainLUTs(
std::string _tag,
bool split_by_crate =
true );
107 std::shared_ptr<LutXml> > &
result,
109 std::shared_ptr<LutXml> > &
other);
114 int writeLutXmlFiles(
std::map<
int, std::shared_ptr<LutXml> > & _xml,
std::string _tag =
"default_tag",
bool split_by_crate =
true );
117 int createCompLutXmlFilesFromCoder(
std::string _tag,
bool split_by_crate =
true );
119 int createAllLutXmlFilesFromCoder(
const HcalTPGCoder & _coder,
std::string _tag,
bool split_by_crate =
true );
125 int createAllLutXmlFilesLinAsciiCompCoder(
std::string _tag,
std::string _lin_file,
bool split_by_crate =
true );
130 int test_direct_xml_parsing(
std::string _filename );
131 void test_emap(
void);
141 std::vector<unsigned int> getLutFromXml_old(
std::string tag, uint32_t _rawid, hcal::ConfigurationDatabase::LUTType _lt );
142 std::vector<unsigned int> getLutFromXml(
std::string tag, uint32_t _rawid, hcal::ConfigurationDatabase::LUTType _lt );
144 std::map<int, std::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" );
146 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 );
158 int initChannelIterator(std::vector<HcalGenericDetId> & map);
180 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