22 #include <boost/algorithm/string/split.hpp>
23 #include <boost/algorithm/string/classification.hpp>
24 #include <boost/lexical_cast.hpp>
27 using namespace magneticfield;
43 iRecord.
get(
"magfield",cpv );
52 if (keys.size() != 0) {
57 typedef vector<edm::ParameterSet> VPSet;
60 if (fileSpec.size()!=0) {
62 for(VPSet::const_iterator rule = fileSpec.begin(); rule != fileSpec.end(); ++rule){
63 string s_volumes = rule->getParameter<
string>(
"volumes");
64 string s_sectors = rule->getParameter<
string>(
"sectors");
65 int master = rule->getParameter<
int>(
"master");
66 string path = rule->getParameter<
string>(
"path");
72 cout << s_volumes << endl;
73 copy(volumes.begin(), volumes.end(), ostream_iterator<unsigned>(
cout,
" "));
75 cout << s_sectors << endl;
76 copy(sectors.begin(), sectors.end(), ostream_iterator<unsigned>(
cout,
" "));
80 for (vector<unsigned>::iterator
i = volumes.begin();
i!=volumes.end(); ++
i){
81 for (vector<unsigned>::iterator
j = sectors.begin();
j!=sectors.end(); ++
j){
82 unsigned vpacked = (*i)*100+(*j);
83 if (gridFiles->find(vpacked)==gridFiles->end()) {
84 (*gridFiles)[vpacked] = make_pair(path, master);
86 edm::LogError(
"BADconfiguration") <<
"ERROR: VolumeBasedMagneticFieldESProducer: malformed gridFiles config parameter";
109 typedef vector<string>
vstring;
113 for (vstring::const_iterator
i= v1.begin();
i!=v1.end(); ++
i){
116 unsigned start = boost::lexical_cast<
unsigned>(v2.front());
117 unsigned end = boost::lexical_cast<
unsigned>(v2.back());
118 if ((v2.size()>2) || (start>end)) {
119 edm::LogError(
"BADconfiguration") <<
"VolumeBasedMagneticFieldESProducer: malformed configuration" << list << endl;
122 for (
unsigned k = start;
k<=
end; ++
k){
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
tuple start
Check for commandline option errors.
std::vector< MagBLayer * > barrelLayers() const
Get barrel layers.
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
std::vector< MagVolume6Faces * > barrelVolumes() const
std::auto_ptr< MagneticField > produce(const IdealMagneticFieldRecord &iRecord)
virtual void build(const DDCompactView &cpv)
void get(HolderT &iHolder) const
std::vector< unsigned > expandList(const std::string &list)
std::vector< MagESector * > endcapSectors() const
Get endcap layers.
T const * product() const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void setScaling(const std::vector< int > &keys, const std::vector< double > &values)
std::vector< MagVolume6Faces * > endcapVolumes() const
tuple VolumeBasedMagneticFieldESProducer
void setGridFiles(const std::auto_ptr< magneticfield::TableFileMap > gridFiles)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run
std::map< unsigned, std::pair< std::string, int > > TableFileMap