Go to the documentation of this file. 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);
61 bool split_by_crate =
true);
66 bool split_by_crate =
true);
71 bool split_by_crate =
true);
76 bool split_by_crate =
true);
80 bool split_by_crate =
true);
86 bool split_by_crate =
true);
92 bool split_by_crate =
true);
106 bool split_by_crate =
true);
115 bool split_by_crate =
true);
120 bool split_by_crate =
true);
126 bool split_by_crate =
true);
146 hcal::ConfigurationDatabase::LUTType _lt);
152 "occi://CMS_HCL_PRTTYPE_HCAL_READER@anyhost/int2r?PASSWORD=HCAL_Reader_88,LHWM_VERSION=22");
157 "occi://CMS_HCL_PRTTYPE_HCAL_READER@anyhost/int2r?PASSWORD=HCAL_Reader_88,LHWM_VERSION=22",
158 bool split_by_crate =
true);
int local_connect(std::string lut_xml_file, std::string lmap_hbef_file, std::string lmap_ho_file)
int createAllLutXmlFilesFromCoder(const HcalTPGCoder &_coder, std::string _tag, bool split_by_crate=true)
int createLutXmlFiles_HBEFFromCoder_HOFromAscii_ZDC(std::string _tag, const HcalTPGCoder &_coder, const CaloTPGTranscoderULUT &_transcoder, std::string _lin_file, bool split_by_crate=true)
int test_direct_xml_parsing(std::string _filename)
int createLinLutXmlFiles(std::string _tag, std::string _lin_file, bool split_by_crate=true)
std::map< int, std::shared_ptr< LutXml > > getLinearizationLutXmlFromCoderEmap(const HcalTPGCoder &_coder, std::string _tag, bool split_by_crate=true)
static int getLutXml_test(std::vector< unsigned int > &_lut)
std::map< int, std::shared_ptr< LutXml > > getCompressionLutXmlFromAsciiMaster(std::string _filename, std::string _tag, int _crate=-1, bool split_by_crate=true)
int createAllLutXmlFiles(std::string _tag, std::string _lin_file, std::string _comp_file, bool split_by_crate=true)
std::vector< int > eta_min
std::map< int, std::shared_ptr< LutXml > > getMasks(int var, std::string _tag, bool split_by_crate=true)
int createCompLutXmlFilesFromCoder(std::string _tag, bool split_by_crate=true)
const HcalChannelQuality * cq
uint32_t status_word_to_mask
int create_lut_loader(std::string file_list, std::string _prefix, std::string tag_name, std::string comment="default comment", std::string version="V00-01-01", int subversion=1)
std::vector< int > eta_max
void addLutMap(std::map< int, std::shared_ptr< LutXml > > &result, const std::map< int, std::shared_ptr< LutXml > > &other)
std::vector< std::vector< unsigned int > > lut
std::map< int, std::shared_ptr< LutXml > > getLinearizationLutXmlFromAsciiMasterEmap(std::string _filename, std::string _tag, int _crate, bool split_by_crate=true)
std::vector< int > phi_max
std::vector< int > depth_min
std::string get_checksum(std::vector< unsigned int > &lut)
const HcalElectronicsMap * emap
static std::string get_time_stamp(time_t _time)
static int getLutSetFromFile_test(std::string _filename)
int writeLutXmlFiles(std::map< int, std::shared_ptr< LutXml > > &_xml, std::string _tag="default_tag", bool split_by_crate=true)
HcalChannelIterator _iter
Gather config data from online DB.
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)
int createLutXmlFiles_HBEFFromCoder_HOFromAscii(std::string _tag, const HcalTPGCoder &_coder, std::string _lin_file, bool split_by_crate=true)
std::vector< unsigned int > getLutFromXml_old(std::string tag, uint32_t _rawid, hcal::ConfigurationDatabase::LUTType _lt)
int test_xml_access(std::string _tag, std::string _filename)
int read_luts(std::string lut_xml_file)
std::string & getLutXml(std::vector< unsigned int > &_lut)
int createAllLutXmlFilesLinAsciiCompCoder(std::string _tag, std::string _lin_file, bool split_by_crate=true)
int initChannelIterator(std::vector< HcalGenericDetId > &map)
HcalLutSet getLutSetFromFile(std::string _filename, int _type=1)
std::map< int, std::shared_ptr< LutXml > > getZdcLutXml(std::string _tag, bool split_by_crate=true)
const HcalDbService * conditions
std::vector< int > phi_min
std::map< int, std::shared_ptr< LutXml > > getLinearizationLutXmlFromAsciiMasterEmap_new(std::string _filename, std::string _tag, int _crate, bool split_by_crate=true)
static HcalSubdetector get_subdetector(std::string _subdet)
Various manipulations with trigger Lookup Tables.
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")
static int getInt_test(std::string number)
static int getInt(std::string number)
XMLDOMBlock * lut_checksums_xml
std::vector< int > depth_max
int read_lmap(std::string lmap_hbef_file, std::string lmap_ho_file)
std::map< int, std::shared_ptr< LutXml > > getLutXmlFromAsciiMaster(std::string _filename, std::string _tag, int _crate=-1, bool split_by_crate=true)
std::vector< std::string > subdet
std::map< int, std::shared_ptr< LutXml > > getLinearizationLutXmlFromCoder(const HcalTPGCoder &_coder, std::string _tag, bool split_by_crate=true)
std::map< int, std::shared_ptr< LutXml > > getHEFineGrainLUTs(std::string _tag, bool split_by_crate=true)
std::vector< unsigned int > getLutFromXml(std::string tag, uint32_t _rawid, hcal::ConfigurationDatabase::LUTType _lt)
std::map< int, std::shared_ptr< LutXml > > getCompressionLutXmlFromCoder(std::string _tag, bool split_by_crate=true)