![]() |
![]() |
Loads TotemDAQMapping and TotemAnalysisMask 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 | 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... | |
![]() | |
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()) |
![]() | |
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... | |
![]() | |
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 &) |
![]() | |
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) |
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 | |
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... | |
unsigned int | verbosity |
Additional Inherited Members | |
![]() | |
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 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 106 of file TotemDAQMappingESSourceXML.cc.
|
private |
whether to parse a mapping of a mask XML
Enumerator | |
---|---|
pMapping | |
pMask |
Definition at line 110 of file TotemDAQMappingESSourceXML.cc.
TotemDAQMappingESSourceXML::TotemDAQMappingESSourceXML | ( | const edm::ParameterSet & | conf | ) |
Definition at line 220 of file TotemDAQMappingESSourceXML.cc.
References b, configuration, edm::ParameterSet::getParameter(), TotemDAQMappingESSourceXML::ConfigBlock::mappingFileNames, TotemDAQMappingESSourceXML::ConfigBlock::maskFileNames, edm::ESProducer::setWhatProduced(), and TotemDAQMappingESSourceXML::ConfigBlock::validityRange.
TotemDAQMappingESSourceXML::~TotemDAQMappingESSourceXML | ( | ) |
Definition at line 285 of file TotemDAQMappingESSourceXML.cc.
|
private |
extracts VFAT's DAQ channel from XML attributes
Definition at line 1004 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 173 of file TotemDAQMappingESSourceXML.cc.
Referenced by ParseTreeT1(), and ParseTreeT2().
|
private |
adds the path prefix, if needed
Definition at line 291 of file TotemDAQMappingESSourceXML.cc.
References edm::FileInPath::fullPath().
Referenced by produce().
|
private |
Definition at line 1066 of file TotemDAQMappingESSourceXML.cc.
References a, Exception, i, j, Test(), and XERCES_CPP_NAMESPACE_USE::transcode().
Referenced by ParseTreeRP(), ParseTreeT1(), and ParseTreeT2().
|
inlineprivate |
returns the content of the node
Definition at line 142 of file TotemDAQMappingESSourceXML.cc.
References AlCaHLTBitMon_QueryRunRegistry::string, and XERCES_CPP_NAMESPACE_USE::transcode().
|
private |
determines node type
Definition at line 1033 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 148 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 361 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 778 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 492 of file TotemDAQMappingESSourceXML.cc.
References a, ChipFramePosition(), CommonNode(), compare_using_db::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 336 of file TotemDAQMappingESSourceXML.cc.
References Exception, nTop, createfilelist::parser, ParseTreeRP(), ParseTreeT1(), and ParseTreeT2().
Referenced by produce().
edm::ESProducts< boost::shared_ptr< TotemDAQMapping >, boost::shared_ptr< TotemAnalysisMask > > TotemDAQMappingESSourceXML::produce | ( | const TotemReadoutRcd & | ) |
Definition at line 300 of file TotemDAQMappingESSourceXML.cc.
References assert(), CompleteFileName(), configuration, currentBlock, currentBlockValid, Exception, personalPlayback::fn, totemRawToDigi_cff::mappingFileNames, totemRawToDigi_cff::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 158 of file TotemDAQMappingESSourceXML.cc.
Referenced by ParseTreeRP().
|
protectedvirtual |
sets infinite validity of this data
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 240 of file TotemDAQMappingESSourceXML.cc.
References begin, configuration, currentBlock, currentBlockValid, end, edm::EventID::event(), edm::IOVSyncValue::eventID(), Exception, customizeTrackingMonitorSeedNumber::idx, edm::eventsetup::EventSetupRecordKey::name(), and edm::EventID::run().
|
inlineprivate |
Definition at line 168 of file TotemDAQMappingESSourceXML.cc.
Referenced by ParseTreeT1().
|
inlineprivate |
|
inlineprivate |
returns true iff the node is of the given name
Definition at line 133 of file TotemDAQMappingESSourceXML.cc.
References XERCES_CPP_NAMESPACE_USE::transcode().
Referenced by GetChannels(), and GetNodeType().
|
private |
Definition at line 97 of file TotemDAQMappingESSourceXML.cc.
Referenced by produce(), setIntervalFor(), showPage.BuildViewer::showResults(), and TotemDAQMappingESSourceXML().
|
private |
index of the current block in 'configuration' array
Definition at line 100 of file TotemDAQMappingESSourceXML.cc.
Referenced by produce(), and setIntervalFor().
|
private |
flag whether the 'currentBlock' index is valid
Definition at line 103 of file TotemDAQMappingESSourceXML.cc.
Referenced by produce(), and setIntervalFor().
|
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.