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 | |
void | setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override |
sets infinite validity of this data More... | |
Protected Member Functions inherited from edm::ESProducer | |
template<typename T > | |
auto | setWhatProduced (T *iThis, const char *iLabel) |
template<typename T > | |
auto | setWhatProduced (T *iThis, const es::Label &iLabel={}) |
template<typename T > | |
auto | setWhatProduced (T *iThis, const std::string &iLabel) |
template<typename T , typename TDecorator > | |
auto | setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={}) |
template<typename T , typename TReturn , typename TRecord > | |
auto | setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const es::Label &iLabel={}) |
template<typename T , typename TReturn , typename TRecord , typename TArg > | |
ESConsumesCollectorT< TRecord > | setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={}) |
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 EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string()) |
KeyedProxiesVector | registerProxies (const EventSetupRecordKey &, unsigned int iovIndex) override |
Protected Member Functions inherited from edm::eventsetup::DataProxyProvider | |
template<class T > | |
void | usingRecord () |
void | usingRecordWithKey (const EventSetupRecordKey &key) |
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 | |
Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider | |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Types inherited from edm::ESProxyFactoryProducer | |
using | EventSetupRecordKey = eventsetup::EventSetupRecordKey |
Protected Types inherited from edm::eventsetup::DataProxyProvider | |
using | KeyedProxiesVector = std::vector< std::pair< DataKey, std::shared_ptr< DataProxy > >> |
Loads CTPPSPixelDAQMapping and CTPPSPixelAnalysisMask from two XML files.
Definition at line 49 of file CTPPSPixelDAQMappingESSourceXML.cc.
|
private |
enumeration of XML node types
Enumerator | |
---|---|
nUnknown | |
nSkip | |
nTop | |
nArm | |
nRPStation | |
nRPPot | |
nRPixPlane | |
nROC | |
nPixel |
Definition at line 97 of file CTPPSPixelDAQMappingESSourceXML.cc.
|
private |
whether to parse a mapping of a mask XML
Enumerator | |
---|---|
pMapping | |
pMask |
Definition at line 100 of file CTPPSPixelDAQMappingESSourceXML.cc.
CTPPSPixelDAQMappingESSourceXML::CTPPSPixelDAQMappingESSourceXML | ( | const edm::ParameterSet & | conf | ) |
Definition at line 171 of file CTPPSPixelDAQMappingESSourceXML.cc.
References b, configuration, edm::ParameterSet::getParameter(), produceCTPPSPixelAnalysisMask(), produceCTPPSPixelDAQMapping(), edm::ESProducer::setWhatProduced(), and subSystemName.
|
override |
Definition at line 231 of file CTPPSPixelDAQMappingESSourceXML.cc.
|
private |
extracts VFAT's DAQ channel from XML attributes
Definition at line 453 of file CTPPSPixelDAQMappingESSourceXML.cc.
References a, Exception, personalPlayback::fp, dqmiolumiharvest::j, and cms::xerces::toString().
Referenced by ParseTreePixel().
|
private |
adds the path prefix, if needed
Definition at line 233 of file CTPPSPixelDAQMappingESSourceXML.cc.
References personalPlayback::fn, and edm::FileInPath::fullPath().
Referenced by produceCTPPSPixelAnalysisMask(), and produceCTPPSPixelDAQMapping().
|
inlineprivate |
returns the content of the node
Definition at line 129 of file CTPPSPixelDAQMappingESSourceXML.cc.
References class-composition::parent, and cms::xerces::toString().
|
private |
determines node type
Definition at line 479 of file CTPPSPixelDAQMappingESSourceXML.cc.
References Exception, dqmiodumpmetadata::n, nArm, nROC, nRPixPlane, nRPPot, nRPStation, tagArm, tagROC, tagRPixPlane, tagRPPot, tagRPStation, Test(), and cms::xerces::toString().
Referenced by ParseTreePixel().
|
inlineprivate |
returns the value of the node
Definition at line 132 of file CTPPSPixelDAQMappingESSourceXML.cc.
References cms::xerces::toString().
|
private |
Definition at line 500 of file CTPPSPixelDAQMappingESSourceXML.cc.
References a, class-composition::children, cuy::col, Exception, mps_fire::i, dqmiolumiharvest::j, dqmiodumpmetadata::n, es_hardcode_cfi::pixels, Test(), and cms::xerces::toString().
Referenced by ParseTreePixel().
|
private |
recursive method to extract Pixel-related information from the DOM tree
Definition at line 316 of file CTPPSPixelDAQMappingESSourceXML.cc.
References a, class-composition::children, ChipFramePosition(), Exception, CTPPSPixelROCAnalysisMask::fullMask, GetNodeType(), GetPixels(), mps_fire::i, triggerObjects_cff::id, CTPPSPixelROCInfo::iD, dqmiolumiharvest::j, taus_updatedMVAIds_cff::mapping, CTPPSPixelROCAnalysisMask::maskedPixels, dqmiodumpmetadata::n, nArm, nPixel, nROC, nRPixPlane, nRPPot, nRPStation, nTop, nUnknown, offsetROCinDetId, class-composition::parent, PixelNode(), pMapping, pMask, CTPPSPixelROCInfo::roc, and cms::xerces::toString().
Referenced by ParseXML().
|
private |
parses XML file
Definition at line 293 of file CTPPSPixelDAQMappingESSourceXML.cc.
References Exception, FrontierConditions_GlobalTag_cff::file, taus_updatedMVAIds_cff::mapping, nTop, writedatasetfile::parser, and ParseTreePixel().
Referenced by produceCTPPSPixelAnalysisMask(), and produceCTPPSPixelDAQMapping().
|
inlineprivate |
Definition at line 139 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by ParseTreePixel().
std::unique_ptr< CTPPSPixelAnalysisMask > CTPPSPixelDAQMappingESSourceXML::produceCTPPSPixelAnalysisMask | ( | const CTPPSPixelAnalysisMaskRcd & | ) |
Definition at line 264 of file CTPPSPixelDAQMappingESSourceXML.cc.
References cms::cuda::assert(), CompleteFileName(), configuration, currentBlock, currentBlockValid, personalPlayback::fn, taus_updatedMVAIds_cff::mapping, mappingFileNames, ctppsRawToDigi_cff::maskFileNames, ParseXML(), pMapping, pMask, cms::concurrency::xercesInitialize(), and cms::concurrency::xercesTerminate().
Referenced by CTPPSPixelDAQMappingESSourceXML().
std::unique_ptr< CTPPSPixelDAQMapping > CTPPSPixelDAQMappingESSourceXML::produceCTPPSPixelDAQMapping | ( | const CTPPSPixelDAQMappingRcd & | ) |
Definition at line 238 of file CTPPSPixelDAQMappingESSourceXML.cc.
References cms::cuda::assert(), CompleteFileName(), configuration, currentBlock, currentBlockValid, personalPlayback::fn, taus_updatedMVAIds_cff::mapping, mappingFileNames, ctppsRawToDigi_cff::maskFileNames, ParseXML(), pMapping, pMask, cms::concurrency::xercesInitialize(), and cms::concurrency::xercesTerminate().
Referenced by CTPPSPixelDAQMappingESSourceXML().
|
overrideprotectedvirtual |
sets infinite validity of this data
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 193 of file CTPPSPixelDAQMappingESSourceXML.cc.
References begin, configuration, currentBlock, currentBlockValid, end, edm::EventID::event(), edm::IOVSyncValue::eventID(), Exception, charmTagsComputerCvsB_cfi::idx, crabWrapper::key, and edm::EventID::run().
|
inlineprivate |
returns true iff the node is of the given name
Definition at line 121 of file CTPPSPixelDAQMappingESSourceXML.cc.
References Skims_PA_cff::name, and cms::xerces::toString().
Referenced by GetNodeType(), and GetPixels().
|
private |
Definition at line 88 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 91 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by produceCTPPSPixelAnalysisMask(), produceCTPPSPixelDAQMapping(), and setIntervalFor().
|
private |
flag whether the 'currentBlock' index is valid
Definition at line 94 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by produceCTPPSPixelAnalysisMask(), produceCTPPSPixelDAQMapping(), and setIntervalFor().
|
private |
the mapping files
Definition at line 75 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by produceCTPPSPixelAnalysisMask(), and produceCTPPSPixelDAQMapping().
|
private |
label of the CTPPS sub-system
Definition at line 72 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by CTPPSPixelDAQMappingESSourceXML().
|
static |
Definition at line 51 of file CTPPSPixelDAQMappingESSourceXML.cc.
|
static |
Common position tags.
Definition at line 56 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by GetNodeType().
|
static |
Definition at line 54 of file CTPPSPixelDAQMappingESSourceXML.cc.
|
static |
Definition at line 53 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by GetNodeType().
|
static |
Definition at line 52 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by GetNodeType().
|
static |
Definition at line 60 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by GetNodeType().
|
static |
RP XML tags.
Definition at line 59 of file CTPPSPixelDAQMappingESSourceXML.cc.
Referenced by GetNodeType().
|
private |
Definition at line 69 of file CTPPSPixelDAQMappingESSourceXML.cc.