Loads TotemDAQMapping and TotemAnalysisMask from two XML files. More...
Static Public Attributes | |
static const std::string | tagAnalysisMask ="analysisMask" |
static const std::string | tagArm = "arm" |
Common position tags. More... | |
static const std::string | tagChannel ="channel" |
static const std::string | tagChip1 = "vfat" |
COMMON Chip XML tags. More... | |
static const std::string | tagChip2 = "test_vfat" |
static const std::string | tagRPPlane = "rp_plane" |
static const std::string | tagRPPot = "rp_detector_set" |
static const std::string | tagRPStation = "station" |
RP XML tags. More... | |
static const std::string | tagT1 ="t1_detector_set" |
T1 XML tags. More... | |
static const std::string | tagT1Arm ="t1_arm" |
static const std::string | tagT1ChannelType ="t1_channel_type" |
static const std::string | tagT1CSC ="t1_csc" |
static const std::string | tagT1Plane ="t1_plane" |
static const std::string | tagT2 ="t2_detector_set" |
T2 XML tags. More... | |
static const std::string | tagT2detector ="t2_detector" |
static const std::string | tagT2Half ="t2_half" |
static const std::string | tagTriggerVFAT1 = "trigger_vfat" |
static const std::string | tagVFAT ="vfat" |
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::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string()) |
virtual void | registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_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, nTop, nArm, nRPStation, nRPPot, nRPPlane, nChip, nTriggerVFAT, nT2, nT2Half, nT2Det, nT1, nT1Arm, nT1Plane, nT1CSC, nT1ChannelType, nChannel } |
enumeration of XML node types More... | |
enum | ParseType { pMapping, pMask } |
whether to parse a mapping of a mask XML More... | |
Private Member Functions | |
TotemFramePosition | ChipFramePosition (xercesc::DOMNode *chipnode) |
extracts VFAT's DAQ channel from XML attributes More... | |
bool | CommonNode (NodeType type) |
string | CompleteFileName (const string &fn) |
adds the path prefix, if needed More... | |
void | GetChannels (xercesc::DOMNode *n, std::set< unsigned char > &channels) |
xercesc::DOMDocument * | GetDOMDocument (string file) |
returns the top element from an XML file 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 | ParseTreeRP (ParseType, xercesc::DOMNode *, NodeType, unsigned int parentID, const boost::shared_ptr< TotemDAQMapping > &, const boost::shared_ptr< TotemAnalysisMask > &) |
recursive method to extract RP-related information from the DOM tree More... | |
void | ParseTreeT1 (ParseType, xercesc::DOMNode *, NodeType, unsigned int parentID, const boost::shared_ptr< TotemDAQMapping > &, const boost::shared_ptr< TotemAnalysisMask > &, unsigned int T1Arm, unsigned int T1Plane, unsigned int T1CSC) |
recursive method to extract RP-related information from the DOM tree More... | |
void | ParseTreeT2 (ParseType, xercesc::DOMNode *, NodeType, unsigned int parentID, const boost::shared_ptr< TotemDAQMapping > &, const boost::shared_ptr< TotemAnalysisMask > &) |
recursive method to extract RP-related information from the DOM tree More... | |
void | ParseXML (ParseType, const string &file, const boost::shared_ptr< TotemDAQMapping > &, const boost::shared_ptr< TotemAnalysisMask > &) |
parses XML file More... | |
bool | RPNode (NodeType type) |
bool | T1Node (NodeType type) |
bool | T2Node (NodeType type) |
bool | Test (xercesc::DOMNode *node, const std::string &name) |
returns true iff the node is of the given name More... | |
Private Attributes | |
std::vector< std::string > | mappingFileNames |
the mapping files More... | |
std::vector< std::string > | maskFileNames |
the mask files 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 TotemDAQMapping and TotemAnalysisMask from two XML files.
Definition at line 45 of file TotemDAQMappingESSourceXML.cc.
|
private |
enumeration of XML node types
Enumerator | |
---|---|
nUnknown | |
nTop | |
nArm | |
nRPStation | |
nRPPot | |
nRPPlane | |
nChip | |
nTriggerVFAT | |
nT2 | |
nT2Half | |
nT2Det | |
nT1 | |
nT1Arm | |
nT1Plane | |
nT1CSC | |
nT1ChannelType | |
nChannel |
Definition at line 92 of file TotemDAQMappingESSourceXML.cc.
|
private |
whether to parse a mapping of a mask XML
Enumerator | |
---|---|
pMapping | |
pMask |
Definition at line 96 of file TotemDAQMappingESSourceXML.cc.
TotemDAQMappingESSourceXML::TotemDAQMappingESSourceXML | ( | const edm::ParameterSet & | conf | ) |
Definition at line 209 of file TotemDAQMappingESSourceXML.cc.
References edm::ESProducer::setWhatProduced().
TotemDAQMappingESSourceXML::~TotemDAQMappingESSourceXML | ( | ) |
Definition at line 253 of file TotemDAQMappingESSourceXML.cc.
|
private |
extracts VFAT's DAQ channel from XML attributes
Definition at line 954 of file TotemDAQMappingESSourceXML.cc.
References a, TotemFramePosition::checkXMLAttributeFlag(), Exception, personalPlayback::fp, j, TotemFramePosition::setXMLAttribute(), and XERCES_CPP_NAMESPACE_USE::transcode().
Referenced by ParseTreeRP(), ParseTreeT1(), and ParseTreeT2().
|
inlineprivate |
Definition at line 162 of file TotemDAQMappingESSourceXML.cc.
Referenced by ParseTreeT1(), and ParseTreeT2().
|
private |
adds the path prefix, if needed
Definition at line 220 of file TotemDAQMappingESSourceXML.cc.
References edm::FileInPath::fullPath().
Referenced by produce().
|
private |
Definition at line 1016 of file TotemDAQMappingESSourceXML.cc.
References a, Exception, i, j, Test(), and XERCES_CPP_NAMESPACE_USE::transcode().
Referenced by ParseTreeRP(), ParseTreeT1(), and ParseTreeT2().
|
private |
returns the top element from an XML file
Definition at line 237 of file TotemDAQMappingESSourceXML.cc.
References Exception, and mps_alisetup::parser.
Referenced by ParseXML().
|
inlineprivate |
returns the content of the node
Definition at line 131 of file TotemDAQMappingESSourceXML.cc.
References AlCaHLTBitMon_QueryRunRegistry::string, and XERCES_CPP_NAMESPACE_USE::transcode().
|
private |
determines node type
Definition at line 983 of file TotemDAQMappingESSourceXML.cc.
References Exception, nArm, nChannel, nChip, nRPPlane, nRPPot, nRPStation, nT1, nT1Arm, nT1ChannelType, nT1CSC, nT1Plane, nT2, nT2Det, nT2Half, nTriggerVFAT, tagArm, tagChannel, tagChip1, tagChip2, tagRPPlane, tagRPPot, tagRPStation, tagT1, tagT1Arm, tagT1ChannelType, tagT1CSC, tagT1Plane, tagT2, tagT2detector, tagT2Half, tagTriggerVFAT1, Test(), and XERCES_CPP_NAMESPACE_USE::transcode().
Referenced by ParseTreeRP(), ParseTreeT1(), and ParseTreeT2().
|
inlineprivate |
returns the value of the node
Definition at line 137 of file TotemDAQMappingESSourceXML.cc.
References AlCaHLTBitMon_QueryRunRegistry::string, and XERCES_CPP_NAMESPACE_USE::transcode().
Referenced by ParseTreeT2().
|
private |
recursive method to extract RP-related information from the DOM tree
Definition at line 311 of file TotemDAQMappingESSourceXML.cc.
References a, TotemVFATInfo::CC, ChipFramePosition(), TotemVFATInfo::data, Exception, TotemVFATAnalysisMask::fullMask, GetChannels(), GetNodeType(), TotemVFATInfo::hwID, i, j, TotemVFATAnalysisMask::maskedChannels, gen::n, nChip, nRPPlane, nRPPot, nTop, nTriggerVFAT, pMapping, pMask, TotemSymbID::RP, RPNode(), TotemSymbID::subSystem, TotemSymbID::symbolicID, TotemVFATInfo::symbolicID, tagRPPot, XERCES_CPP_NAMESPACE_USE::transcode(), and TotemVFATInfo::type.
Referenced by ParseXML().
|
private |
recursive method to extract RP-related information from the DOM tree
Definition at line 728 of file TotemDAQMappingESSourceXML.cc.
References a, ChipFramePosition(), CommonNode(), TotemVFATInfo::data, Exception, TotemVFATAnalysisMask::fullMask, GetChannels(), GetNodeType(), TotemVFATInfo::hwID, i, j, TotemVFATAnalysisMask::maskedChannels, gen::n, nChip, nT1Arm, nT1ChannelType, nT1CSC, nT1Plane, nUnknown, pMask, TotemSymbID::subSystem, TotemSymbID::symbolicID, TotemVFATInfo::symbolicID, TotemSymbID::T1, T1Node(), tagT1CSC, XERCES_CPP_NAMESPACE_USE::transcode(), and TotemVFATInfo::type.
Referenced by ParseXML().
|
private |
recursive method to extract RP-related information from the DOM tree
Definition at line 442 of file TotemDAQMappingESSourceXML.cc.
References a, ChipFramePosition(), CommonNode(), compare(), gather_cfg::cout, TotemVFATInfo::data, Exception, TotemVFATAnalysisMask::fullMask, GetChannels(), GetNodeType(), GetNodeValue(), TotemVFATInfo::hwID, i, j, TotemVFATAnalysisMask::maskedChannels, gen::n, nArm, nChip, nT2Det, nT2Half, nUnknown, pMapping, pMask, TotemSymbID::subSystem, TotemSymbID::symbolicID, TotemVFATInfo::symbolicID, TotemSymbID::T2, T2Node(), tagT2detector, XERCES_CPP_NAMESPACE_USE::transcode(), and TotemVFATInfo::type.
Referenced by ParseXML().
|
private |
parses XML file
Definition at line 294 of file TotemDAQMappingESSourceXML.cc.
References Exception, GetDOMDocument(), nTop, ParseTreeRP(), ParseTreeT1(), and ParseTreeT2().
Referenced by produce().
edm::ESProducts< boost::shared_ptr< TotemDAQMapping >, boost::shared_ptr< TotemAnalysisMask > > TotemDAQMappingESSourceXML::produce | ( | const TotemReadoutRcd & | ) |
Definition at line 260 of file TotemDAQMappingESSourceXML.cc.
References CompleteFileName(), Exception, i, mappingFileNames, maskFileNames, python.rootplot.argparse::message, ParseXML(), pMapping, pMask, edm::es::products(), fetchall_from_DQM_v2::release, and XERCES_CPP_NAMESPACE_USE::transcode().
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
|
inlineprivate |
Definition at line 147 of file TotemDAQMappingESSourceXML.cc.
Referenced by ParseTreeRP().
|
protectedvirtual |
sets infinite validity of this data
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 228 of file TotemDAQMappingESSourceXML.cc.
References edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime(), and infinity.
|
inlineprivate |
Definition at line 157 of file TotemDAQMappingESSourceXML.cc.
Referenced by ParseTreeT1().
|
inlineprivate |
|
inlineprivate |
returns true iff the node is of the given name
Definition at line 122 of file TotemDAQMappingESSourceXML.cc.
References XERCES_CPP_NAMESPACE_USE::transcode().
Referenced by GetChannels(), and GetNodeType().
|
private |
the mapping files
Definition at line 86 of file TotemDAQMappingESSourceXML.cc.
Referenced by produce().
|
private |
the mask files
Definition at line 89 of file TotemDAQMappingESSourceXML.cc.
Referenced by produce().
|
static |
Definition at line 50 of file TotemDAQMappingESSourceXML.cc.
|
static |
Common position tags.
Definition at line 53 of file TotemDAQMappingESSourceXML.cc.
Referenced by GetNodeType().
|
static |
Definition at line 49 of file TotemDAQMappingESSourceXML.cc.
Referenced by GetNodeType().
|
static |
COMMON Chip XML tags.
Definition at line 73 of file TotemDAQMappingESSourceXML.cc.
Referenced by GetNodeType().
|
static |
Definition at line 74 of file TotemDAQMappingESSourceXML.cc.
Referenced by GetNodeType().
|
static |
Definition at line 58 of file TotemDAQMappingESSourceXML.cc.
Referenced by GetNodeType().
|
static |
Definition at line 57 of file TotemDAQMappingESSourceXML.cc.
Referenced by GetNodeType(), and ParseTreeRP().
|
static |
RP XML tags.
Definition at line 56 of file TotemDAQMappingESSourceXML.cc.
Referenced by GetNodeType().
|
static |
T1 XML tags.
Definition at line 66 of file TotemDAQMappingESSourceXML.cc.
Referenced by GetNodeType().
|
static |
Definition at line 67 of file TotemDAQMappingESSourceXML.cc.
Referenced by GetNodeType().
|
static |
Definition at line 70 of file TotemDAQMappingESSourceXML.cc.
Referenced by GetNodeType().
|
static |
Definition at line 69 of file TotemDAQMappingESSourceXML.cc.
Referenced by GetNodeType(), and ParseTreeT1().
|
static |
Definition at line 68 of file TotemDAQMappingESSourceXML.cc.
Referenced by GetNodeType().
|
static |
T2 XML tags.
Definition at line 61 of file TotemDAQMappingESSourceXML.cc.
Referenced by GetNodeType().
|
static |
Definition at line 63 of file TotemDAQMappingESSourceXML.cc.
Referenced by GetNodeType(), and ParseTreeT2().
|
static |
Definition at line 62 of file TotemDAQMappingESSourceXML.cc.
Referenced by GetNodeType().
|
static |
Definition at line 75 of file TotemDAQMappingESSourceXML.cc.
Referenced by GetNodeType().
|
static |
Definition at line 48 of file TotemDAQMappingESSourceXML.cc.
|
private |
Definition at line 83 of file TotemDAQMappingESSourceXML.cc.