Loads CTPPSPixelDAQMapping and CTPPSPixelAnalysisMask from two XML files. More...
Classes | |
struct | ConfigBlock |
Static Public Attributes | |
static const std::string | tagAnalysisMask ="analysisMask" |
static const std::string | tagArm = "arm" |
Common position tags. More... | |
static const std::string | tagPixel ="pixel" |
static const std::string | tagROC ="roc" |
static const std::string | tagRPixPlane = "rpix_plane" |
static const std::string | tagRPPot = "rp_detector_set" |
static const std::string | tagRPStation = "station" |
RP XML tags. More... | |
Protected Member Functions | |
virtual void | setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) |
sets infinite validity of this data More... | |
Protected Member Functions inherited from edm::ESProducer | |
template<typename T > | |
void | setWhatProduced (T *iThis, const es::Label &iLabel=es::Label()) |
template<typename T > | |
void | setWhatProduced (T *iThis, const char *iLabel) |
template<typename T > | |
void | setWhatProduced (T *iThis, const std::string &iLabel) |
template<typename T , typename TDecorator > | |
void | setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label()) |
template<typename T , typename TReturn , typename TRecord > | |
void | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label()) |
template<typename T , typename TReturn , typename TRecord , typename TArg > | |
void | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label()) |
Protected Member Functions inherited from edm::ESProxyFactoryProducer | |
template<class TFactory > | |
void | registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string()) |
virtual void | registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string()) |
virtual void | registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList) |
override DataProxyProvider method More... | |
Protected Member Functions inherited from edm::eventsetup::DataProxyProvider | |
void | eraseAll (const EventSetupRecordKey &iRecordKey) |
deletes all the Proxies in aStream More... | |
void | invalidateProxies (const EventSetupRecordKey &iRecordKey) |
template<class T > | |
void | usingRecord () |
void | usingRecordWithKey (const EventSetupRecordKey &) |
Protected Member Functions inherited from edm::EventSetupRecordIntervalFinder | |
template<class T > | |
void | findingRecord () |
void | findingRecordWithKey (const eventsetup::EventSetupRecordKey &) |
Private Types | |
enum | NodeType { nUnknown, nSkip, nTop, nArm, nRPStation, nRPPot, nRPixPlane, nROC, nPixel } |
enumeration of XML node types More... | |
enum | ParseType { pMapping, pMask } |
whether to parse a mapping of a mask XML More... | |
Private Member Functions | |
CTPPSPixelFramePosition | ChipFramePosition (xercesc::DOMNode *chipnode) |
extracts VFAT's DAQ channel from XML attributes More... | |
string | CompleteFileName (const string &fn) |
adds the path prefix, if needed More... | |
string | GetNodeContent (xercesc::DOMNode *parent) |
returns the content of the node More... | |
NodeType | GetNodeType (xercesc::DOMNode *) |
determines node type More... | |
string | GetNodeValue (xercesc::DOMNode *node) |
returns the value of the node More... | |
void | GetPixels (xercesc::DOMNode *n, std::set< std::pair< unsigned char, unsigned char > > &pixels) |
void | ParseTreePixel (ParseType, xercesc::DOMNode *, NodeType, unsigned int parentID, const std::unique_ptr< CTPPSPixelDAQMapping > &, const std::unique_ptr< CTPPSPixelAnalysisMask > &) |
recursive method to extract Pixel-related information from the DOM tree More... | |
void | ParseXML (ParseType, const string &file, const std::unique_ptr< CTPPSPixelDAQMapping > &, const std::unique_ptr< CTPPSPixelAnalysisMask > &) |
parses XML file More... | |
bool | PixelNode (NodeType type) |
bool | Test (xercesc::DOMNode *node, const std::string &name) |
returns true iff the node is of the given name More... | |
Private Attributes | |
vector< ConfigBlock > | configuration |
unsigned int | currentBlock |
index of the current block in 'configuration' array More... | |
bool | currentBlockValid |
flag whether the 'currentBlock' index is valid More... | |
std::vector< std::string > | mappingFileNames |
the mapping files More... | |
string | subSystemName |
label of the CTPPS sub-system More... | |
unsigned int | verbosity |
Additional Inherited Members | |
Public Types inherited from edm::eventsetup::DataProxyProvider | |
typedef std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > | KeyedProxies |
typedef std::vector< EventSetupRecordKey > | Keys |
typedef std::map< EventSetupRecordKey, KeyedProxies > | RecordProxies |
Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider | |
static void | prevalidate (ConfigurationDescriptions &) |
Loads CTPPSPixelDAQMapping and CTPPSPixelAnalysisMask from two XML files.
Definition at line 50 of file CTPPSPixelDAQMappingESSourceXML.cc.
|
private |
enumeration of XML node types
Enumerator | |
---|---|
nUnknown | |
nSkip | |
nTop | |
nArm | |
nRPStation | |
nRPPot | |
nRPixPlane | |
nROC | |
nPixel |
Definition at line 102 of file CTPPSPixelDAQMappingESSourceXML.cc.
|
private |
whether to parse a mapping of a mask XML
Enumerator | |
---|---|
pMapping | |
pMask |
Definition at line 105 of file CTPPSPixelDAQMappingESSourceXML.cc.
CTPPSPixelDAQMappingESSourceXML::CTPPSPixelDAQMappingESSourceXML | ( | const edm::ParameterSet & | conf | ) |
Definition at line 179 of file CTPPSPixelDAQMappingESSourceXML.cc.
References b, configuration, edm::ParameterSet::getParameter(), CTPPSPixelDAQMappingESSourceXML::ConfigBlock::mappingFileNames, CTPPSPixelDAQMappingESSourceXML::ConfigBlock::maskFileNames, produceCTPPSPixelAnalysisMask(), produceCTPPSPixelDAQMapping(), edm::ESProducer::setWhatProduced(), subSystemName, and CTPPSPixelDAQMappingESSourceXML::ConfigBlock::validityRange.
CTPPSPixelDAQMappingESSourceXML::~CTPPSPixelDAQMappingESSourceXML | ( | ) |
Definition at line 250 of file CTPPSPixelDAQMappingESSourceXML.cc.
|
private |
extracts VFAT's DAQ channel from XML attributes
Definition at line 472 of file CTPPSPixelDAQMappingESSourceXML.cc.
References a, CTPPSPixelFramePosition::checkXMLAttributeFlag(), Exception, and CTPPSPixelFramePosition::setXMLAttribute().
Referenced by ParseTreePixel().
|
private |
adds the path prefix, if needed
Definition at line 256 of file CTPPSPixelDAQMappingESSourceXML.cc.
References edm::FileInPath::fullPath().
Referenced by produceCTPPSPixelAnalysisMask(), and produceCTPPSPixelDAQMapping().
|
inlineprivate |
returns the content of the node
Definition at line 130 of file CTPPSPixelDAQMappingESSourceXML.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
determines node type
Definition at line 502 of file CTPPSPixelDAQMappingESSourceXML.cc.
References Exception, nArm, nROC, nRPixPlane, nRPPot, nRPStation, tagArm, tagROC, tagRPixPlane, tagRPPot, tagRPStation, and Test().
Referenced by ParseTreePixel().
|
inlineprivate |
returns the value of the node
Definition at line 136 of file CTPPSPixelDAQMappingESSourceXML.cc.
References gen::n, Digi_Phase1_R30F12_HCal_cff::pixels, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 519 of file CTPPSPixelDAQMappingESSourceXML.cc.
References a, class-composition::children, cuy::col, DEFINE_FWK_EVENTSETUP_SOURCE, Exception, mps_fire::i, Digi_Phase1_R30F12_HCal_cff::pixels, and Test().
Referenced by ParseTreePixel().
|
private |
recursive method to extract Pixel-related information from the DOM tree
Definition at line 344 of file CTPPSPixelDAQMappingESSourceXML.cc.
References a, class-composition::children, ChipFramePosition(), Exception, CTPPSPixelROCAnalysisMask::fullMask, GetNodeType(), GetPixels(), mps_fire::i, hcalTTPDigis_cfi::id, CTPPSPixelROCInfo::iD, CTPPSPixelROCAnalysisMask::maskedPixels, gen::n, nArm, nPixel, nROC, nRPixPlane, nRPPot, nRPStation, nTop, nUnknown, offsetROCinDetId, PixelNode(), pMapping, pMask, and CTPPSPixelROCInfo::roc.
Referenced by ParseXML().
|
private |
parses XML file
Definition at line 319 of file CTPPSPixelDAQMappingESSourceXML.cc.
References Exception, nTop, createfilelist::parser, and ParseTreePixel().
Referenced by produceCTPPSPixelAnalysisMask(), and produceCTPPSPixelDAQMapping().
|
inlineprivate |
Definition at line 146 of file CTPPSPixelDAQMappingESSourceXML.cc.
References tagAnalysisMask, tagArm, tagPixel, tagROC, tagRPixPlane, tagRPPot, and tagRPStation.
Referenced by ParseTreePixel().
std::unique_ptr< CTPPSPixelAnalysisMask > CTPPSPixelDAQMappingESSourceXML::produceCTPPSPixelAnalysisMask | ( | const CTPPSPixelAnalysisMaskRcd & | ) |
Definition at line 290 of file CTPPSPixelDAQMappingESSourceXML.cc.
References CompleteFileName(), configuration, currentBlock, currentBlockValid, HPSPFTaus_cff::mapping, mappingFileNames, RecoTauDiscriminantConfiguration::mask, ParseXML(), pMapping, pMask, cms::concurrency::xercesInitialize(), and cms::concurrency::xercesTerminate().
Referenced by CTPPSPixelDAQMappingESSourceXML().
std::unique_ptr< CTPPSPixelDAQMapping > CTPPSPixelDAQMappingESSourceXML::produceCTPPSPixelDAQMapping | ( | const CTPPSPixelDAQMappingRcd & | ) |
Definition at line 264 of file CTPPSPixelDAQMappingESSourceXML.cc.
References CompleteFileName(), configuration, currentBlock, currentBlockValid, HPSPFTaus_cff::mapping, mappingFileNames, RecoTauDiscriminantConfiguration::mask, ParseXML(), pMapping, pMask, cms::concurrency::xercesInitialize(), and cms::concurrency::xercesTerminate().
Referenced by CTPPSPixelDAQMappingESSourceXML().
|
protectedvirtual |
sets infinite validity of this data
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 206 of file CTPPSPixelDAQMappingESSourceXML.cc.
References begin, configuration, currentBlock, currentBlockValid, end, edm::EventID::event(), edm::IOVSyncValue::eventID(), Exception, training_settings::idx, edm::eventsetup::EventSetupRecordKey::name(), and edm::EventID::run().
|
inlineprivate |
returns true iff the node is of the given name
Definition at line 121 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by GetNodeType(), and GetPixels().
|
private |
Definition at line 93 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by CTPPSPixelDAQMappingESSourceXML(), produceCTPPSPixelAnalysisMask(), produceCTPPSPixelDAQMapping(), setIntervalFor(), and showPage.BuildViewer::showResults().
|
private |
index of the current block in 'configuration' array
Definition at line 96 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by produceCTPPSPixelAnalysisMask(), produceCTPPSPixelDAQMapping(), and setIntervalFor().
|
private |
flag whether the 'currentBlock' index is valid
Definition at line 99 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by produceCTPPSPixelAnalysisMask(), produceCTPPSPixelDAQMapping(), and setIntervalFor().
|
private |
the mapping files
Definition at line 79 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by produceCTPPSPixelAnalysisMask(), and produceCTPPSPixelDAQMapping().
|
private |
label of the CTPPS sub-system
Definition at line 76 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by CTPPSPixelDAQMappingESSourceXML().
|
static |
Definition at line 54 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by PixelNode().
|
static |
Common position tags.
Definition at line 59 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by GetNodeType(), and PixelNode().
|
static |
Definition at line 57 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by PixelNode().
|
static |
Definition at line 56 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by GetNodeType(), and PixelNode().
|
static |
Definition at line 55 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by GetNodeType(), and PixelNode().
|
static |
Definition at line 63 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by GetNodeType(), and PixelNode().
|
static |
RP XML tags.
Definition at line 62 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by GetNodeType(), and PixelNode().
|
private |
Definition at line 73 of file CTPPSPixelDAQMappingESSourceXML.cc.