Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual merge 7_3_X into 7_3_ROOT6_X #6025

Merged
merged 84 commits into from
Oct 27, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
32b4cbc
templating the IVF sequence: main IVF producer
arizzi Sep 17, 2014
2b0169d
templating the IVF sequence: main IVF producer
arizzi Sep 17, 2014
0e404e6
templating the IVF arbitrator
arizzi Sep 18, 2014
dddbfbc
more IVF templating
arizzi Sep 18, 2014
0904755
templated IVF, configs and fixes after some runtime tests
arizzi Sep 18, 2014
fa1ff2a
fix fraction vs absolute count of shared tracks
arizzi Sep 18, 2014
8b7b49e
create btag taginfos and jettags for IVF-cand
arizzi Sep 19, 2014
3b0c6e9
protect against crash for invalid tsos
arizzi Sep 19, 2014
58a5cdf
Initial changes for moving conf to DB
namapane Sep 24, 2014
d193ce6
New payload for MF config
namapane Sep 25, 2014
5611c22
Use new payload for MF config
namapane Sep 25, 2014
80a53ff
Split ParametrizedMagneticField into a factory and a plugin
namapane Sep 26, 2014
9abd32b
Separate the MF geometry record from the sim/reco geometry records. A…
namapane Oct 9, 2014
412f2c2
remove table list as it's too big
namapane Oct 9, 2014
c6cce9d
small fixes
namapane Oct 10, 2014
8064557
cosmetics
namapane Oct 10, 2014
58cee1f
fix test for moved file
namapane Oct 13, 2014
652197a
fix the (unused) XMLIdealMagneticFieldGeometryESProducer to use the n…
namapane Oct 14, 2014
1170522
remove obsolete tests
namapane Oct 14, 2014
f975c19
make Chris happy
namapane Oct 15, 2014
d1325a3
EDAnalyzer migrated to DQMEDAnalyzer + reduction of the number of his…
aescalante Oct 17, 2014
31c04b7
EDAnalyzer migrated to DQMEDAnalyzer + reduction of the number of his…
aescalante Oct 17, 2014
e221c5a
EDAnalyzer migrated to DQMEDAnalyzer + reduction of the number of his…
aescalante Oct 17, 2014
a86fc8c
add CC computation in a tool
VinInn Oct 10, 2014
cf80945
added CCC in code
VinInn Oct 10, 2014
172aaa3
fix config fro minGoodCharge in layers
VinInn Oct 10, 2014
25265f0
move CCC out of estimate
VinInn Oct 10, 2014
eaac8bb
separate CCC form estimate, and invoke
VinInn Oct 10, 2014
36243ae
should produce No regression
VinInn Oct 11, 2014
1131b08
should produce no regression
VinInn Oct 11, 2014
0fc5579
prefilter as it should
VinInn Oct 12, 2014
53b77c9
move Chi2ChargeMeasurement
VinInn Oct 12, 2014
1ba587c
move Chi2ChargeMeasurementEst in RecoTracker with opaque interface
VinInn Oct 13, 2014
24c9dde
no CCC in JetCore
VinInn Oct 13, 2014
4065d1e
add minGoodCharge to Clusterizer
VinInn Oct 13, 2014
4b0e93e
remove regression caused by recovering projected
VinInn Oct 13, 2014
2cd4404
fix skip logic
VinInn Oct 14, 2014
f7b3148
filter only mono
VinInn Oct 14, 2014
d0bf8a0
replace barycenter with firstStrip: faster and equivalent
VinInn Oct 15, 2014
6186d40
more consistent in use of tool
VinInn Oct 15, 2014
43adb49
compiles
VinInn Oct 15, 2014
6632955
forgot produce
VinInn Oct 15, 2014
26cb59e
fix mistype
VinInn Oct 15, 2014
f511720
avoid regression in Conversions
VinInn Oct 16, 2014
b081c45
add comments in statement that could cause regression
VinInn Oct 16, 2014
ed28bc2
a producer of CCC masks
VinInn Oct 16, 2014
d66c170
add an inconditional cluster mask as in the past
VinInn Oct 16, 2014
79ed38f
do from scratch
VinInn Oct 22, 2014
0a90cee
Merged ivf-template from repository cms-btv-pog
arizzi Oct 23, 2014
71084f3
stoyan cleanup requirements
arizzi Oct 23, 2014
06216a9
fix multiple entries
arizzi Oct 23, 2014
1ed3c7d
include pilot blade stuff to pixel rawdigi, 2nd attempt
dkotlins Oct 23, 2014
d3bfe7e
fixing bug where brem var was NaN which causes out of bound array acc…
Sam-Harper Oct 23, 2014
86848e9
CentralityPopConProducer removed
yetkinyilmaz Oct 23, 2014
0867321
NZS MC production snippet
Oct 24, 2014
b19f156
Provide the ability to do a separate cache-hint for cloning.
bbockelm Oct 22, 2014
efae274
put back the plugin definition for RPC
deguio Oct 24, 2014
b307597
Merge pull request #5987 from deguio/fixRPC
ktf Oct 24, 2014
3d2be15
Updated payload type list for dropbox
ggovi Oct 24, 2014
8c9023f
Add release notes file.
ktf Oct 24, 2014
cfc82ec
HLT saveTags fix in filter config
Martin-Grunewald Oct 24, 2014
615b438
Merge pull request #5983 from bbockelm/clone-cache-hint-73x
cmsbuild Oct 24, 2014
ecefcf6
Merge pull request #5989 from ktf/dummy-pr-to-test-automerging
cmsbuild Oct 24, 2014
a3eb5d7
Update ExoticaDQM.h
aescalante Oct 24, 2014
060c573
Convert ESZeroSuppressionProducer to stream module
Dr15Jones Oct 24, 2014
d6df02e
Convert PileupInformation to stream module
Dr15Jones Oct 24, 2014
051535c
Merge pull request #5853 from VinInn/CCC
cmsbuild Oct 24, 2014
8208eba
Merge pull request #5970 from Sam-Harper/EG73XEUncertaintyFix
cmsbuild Oct 24, 2014
6897ec1
Merged refs/pull/5994/head from repository cms-sw
perrotta Oct 25, 2014
094628e
Integration of single leptons prescaled triggers for fake rate measur…
perrotta Oct 25, 2014
8ac155e
Merge pull request #5785 from namapane/MFGeometryFromDB
cmsbuild Oct 25, 2014
e42ee54
Merge pull request #6002 from perrotta/SingleLeptonHltForFakeRateMesu…
cmsbuild Oct 25, 2014
9830e06
Merge pull request #6000 from Dr15Jones/streamPileupInformation
cmsbuild Oct 25, 2014
87fa47c
Merge pull request #5998 from Dr15Jones/streamESZeroSuppressionProducer
cmsbuild Oct 25, 2014
de39440
Merge pull request #5981 from abdoulline/HCAL_NZS_custom_73X
cmsbuild Oct 25, 2014
1cafbed
Merge pull request #5990 from CmsHI/pr_73X_v04
cmsbuild Oct 25, 2014
501964e
Merge pull request #5955 from cms-btv-pog/ivf-template
cmsbuild Oct 25, 2014
84a326f
FastPV update and triggers for ZnnHbb,VBFHbb,X->HH->4b in the master …
perrotta Oct 26, 2014
96911dc
Merge pull request #5992 from ggovi/new-conddb-dropbox-fix0
cmsbuild Oct 26, 2014
05ffacd
Merge pull request #6008 from perrotta/fastPvUpdate
cmsbuild Oct 27, 2014
c39b12e
comment out afs file access
dkotlins Oct 27, 2014
2e58e33
Merge pull request #5883 from aescalante/Exotica-DQM-Update-and-migra…
cmsbuild Oct 27, 2014
f184df9
Merge pull request #5961 from dkotlins/raw2digi_pilot_bis
cmsbuild Oct 27, 2014
efd52c9
Merge remote branch 'origin/CMSSW_7_3_X' into work
nclopezo Oct 27, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CondCore/Utilities/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<use name="CondFormats/SiStripObjects"/>
<use name="CondFormats/Common"/>
<use name="CondFormats/BTauObjects"/>
<use name="CondFormats/MFObjects"/>
<export>
<lib name="1"/>
</export>
8 changes: 8 additions & 0 deletions CondCore/Utilities/src/CondDBImport.cc
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ namespace cond {
IMPORT_PAYLOAD_CASE( L1RPCHsbConfig )
IMPORT_PAYLOAD_CASE( L1RPCHwConfig )
IMPORT_PAYLOAD_CASE( L1TriggerKey )
IMPORT_PAYLOAD_CASE( MagFieldConfig )
if( inputTypeName == "L1TriggerKeyList" ){
match = true;
const L1TriggerKeyList& obj = *static_cast<const L1TriggerKeyList*>( inputPtr );
Expand Down Expand Up @@ -258,6 +259,7 @@ namespace cond {
IMPORT_PAYLOAD_CASE( lumi::LumiSectionData )
IMPORT_PAYLOAD_CASE( MixingModuleConfig )
IMPORT_PAYLOAD_CASE( MuScleFitDBobject )
IMPORT_PAYLOAD_CASE( DYTThrObject )
IMPORT_PAYLOAD_CASE( OOTPileupCorrectionBuffer )
IMPORT_PAYLOAD_CASE( StorableDoubleMap<AbsOOTPileupCorrection> )
IMPORT_PAYLOAD_CASE( PhysicsTools::Calibration::MVAComputerContainer )
Expand Down Expand Up @@ -285,6 +287,7 @@ namespace cond {
IMPORT_PAYLOAD_CASE( RPCObTemp )
IMPORT_PAYLOAD_CASE( RPCObUXC )
IMPORT_PAYLOAD_CASE( RPCObVmon )
IMPORT_PAYLOAD_CASE( RPFlatParams )
IMPORT_PAYLOAD_CASE( RecoIdealGeometry )
IMPORT_PAYLOAD_CASE( RunInfo )
IMPORT_PAYLOAD_CASE( SiPixelCalibConfiguration )
Expand All @@ -295,6 +298,7 @@ namespace cond {
IMPORT_PAYLOAD_CASE( SiPixelLorentzAngle )
IMPORT_PAYLOAD_CASE( SiPixelQuality )
IMPORT_PAYLOAD_CASE( SiPixelTemplateDBObject )
IMPORT_PAYLOAD_CASE( SiPixel2DTemplateDBObject )
IMPORT_PAYLOAD_CASE( SiStripApvGain )
IMPORT_PAYLOAD_CASE( SiStripBadStrip )
IMPORT_PAYLOAD_CASE( SiStripBackPlaneCorrection )
Expand Down Expand Up @@ -518,6 +522,7 @@ namespace cond {
FETCH_PAYLOAD_CASE( lumi::LumiSectionData )
FETCH_PAYLOAD_CASE( MixingModuleConfig )
FETCH_PAYLOAD_CASE( MuScleFitDBobject )
FETCH_PAYLOAD_CASE( DYTThrObject )
FETCH_PAYLOAD_CASE( PhysicsTools::Calibration::MVAComputerContainer )
FETCH_PAYLOAD_CASE( PCaloGeometry )
FETCH_PAYLOAD_CASE( PGeometricDet )
Expand All @@ -543,6 +548,7 @@ namespace cond {
FETCH_PAYLOAD_CASE( RPCObTemp )
FETCH_PAYLOAD_CASE( RPCObUXC )
FETCH_PAYLOAD_CASE( RPCObVmon )
FETCH_PAYLOAD_CASE( RPFlatParams )
FETCH_PAYLOAD_CASE( RecoIdealGeometry )
FETCH_PAYLOAD_CASE( RunInfo )
FETCH_PAYLOAD_CASE( SiPixelCalibConfiguration )
Expand All @@ -553,6 +559,7 @@ namespace cond {
FETCH_PAYLOAD_CASE( SiPixelLorentzAngle )
FETCH_PAYLOAD_CASE( SiPixelQuality )
FETCH_PAYLOAD_CASE( SiPixelTemplateDBObject )
FETCH_PAYLOAD_CASE( SiPixel2DTemplateDBObject )
FETCH_PAYLOAD_CASE( SiStripApvGain )
FETCH_PAYLOAD_CASE( SiStripBackPlaneCorrection )
FETCH_PAYLOAD_CASE( SiStripBadStrip )
Expand All @@ -574,6 +581,7 @@ namespace cond {
FETCH_PAYLOAD_CASE( EcalCondObjectContainer<EcalTPGPedestal> )
FETCH_PAYLOAD_CASE( EcalCondObjectContainer<EcalXtalGroupId> )
FETCH_PAYLOAD_CASE( EcalCondObjectContainer<float> )
FETCH_PAYLOAD_CASE( MagFieldConfig )

//
if( payloadTypeName == "PhysicsTools::Calibration::Histogram3D<double,double,double,double>" ){
Expand Down
6 changes: 5 additions & 1 deletion CondCore/Utilities/src/CondFormats.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "CondFormats/CastorObjects/interface/CastorElectronicsMap.h"
#include "CondFormats/CastorObjects/interface/CastorSaturationCorrs.h"
#include "CondFormats/HIObjects/interface/CentralityTable.h"
#include "CondFormats/HIObjects/interface/RPFlatParams.h"
#include "CondFormats/GeometryObjects/interface/CSCRecoDigiParameters.h"
#include "CondFormats/CSCObjects/interface/CSCBadChambers.h"
#include "CondFormats/CSCObjects/interface/CSCBadStrips.h"
Expand All @@ -31,7 +32,6 @@
#include "CondFormats/DTObjects/interface/DTLVStatus.h"
#include "CondFormats/DTObjects/interface/DTMtime.h"
#include "CondFormats/DTObjects/interface/DTReadOutMapping.h"
#include "CondFormats/DTObjects/interface/DTRecoUncertainties.h"
#include "CondFormats/DTObjects/interface/DTStatusFlag.h"
#include "CondFormats/DTObjects/interface/DTT0.h"
#include "CondFormats/DTObjects/interface/DTTPGParameters.h"
Expand Down Expand Up @@ -100,6 +100,7 @@
#include "CondFormats/RPCObjects/interface/RPCObPVSSmap.h"
#include "CondFormats/RPCObjects/interface/RPCObUXC.h"
#include "CondFormats/GeometryObjects/interface/RecoIdealGeometry.h"
#include "CondFormats/RecoMuonObjects/interface/DYTThrObject.h"
#include "CondFormats/RecoMuonObjects/interface/MuScleFitDBobject.h"
#include "CondFormats/RunInfo/interface/RunInfo.h"
#include "CondFormats/RunInfo/interface/MixingModuleConfig.h"
Expand All @@ -110,6 +111,7 @@
#include "CondFormats/SiPixelObjects/interface/SiPixelLorentzAngle.h"
#include "CondFormats/SiPixelObjects/interface/SiPixelQuality.h"
#include "CondFormats/SiPixelObjects/interface/SiPixelTemplateDBObject.h"
#include "CondFormats/SiPixelObjects/interface/SiPixel2DTemplateDBObject.h"
#include "CondFormats/SiPixelObjects/interface/SiPixelGenErrorDBObject.h"
#include "CondFormats/SiStripObjects/interface/SiStripApvGain.h"
#include "CondFormats/SiStripObjects/interface/SiStripBadStrip.h"
Expand Down Expand Up @@ -202,6 +204,8 @@
#include "CondFormats/SiStripObjects/interface/SiStripNoises.h"
#include "CondFormats/SiStripObjects/interface/SiStripPedestals.h"
#include "CondFormats/BTauObjects/interface/TrackProbabilityCalibration.h"
#include "CondFormats/MFObjects/interface/MagFieldConfig.h"

#include "CondFormats/Common/interface/BaseKeyed.h"
//#include "CondFormats/Common/interface/KeyList.h"

Expand Down
6 changes: 6 additions & 0 deletions CondFormats/DataRecord/interface/MFGeometryFileRcd.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef MFGEOMETRYFILERCD_H
#define MFGEOMETRYFILERCD_H

#include "FWCore/Framework/interface/EventSetupRecordImplementation.h"
class MFGeometryFileRcd : public edm::eventsetup::EventSetupRecordImplementation<MFGeometryFileRcd> {};
#endif
8 changes: 8 additions & 0 deletions CondFormats/DataRecord/interface/MagFieldConfigRcd.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#ifndef CondFormats_MagFieldConfigRcd_h
#define CondFormats_MagFieldConfigRcd_h

#include "FWCore/Framework/interface/EventSetupRecordImplementation.h"

class MagFieldConfigRcd : public edm::eventsetup::EventSetupRecordImplementation<MagFieldConfigRcd> {};

#endif
4 changes: 4 additions & 0 deletions CondFormats/DataRecord/src/MFGeometryFileRcd.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include "CondFormats/DataRecord/interface/MFGeometryFileRcd.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"

EVENTSETUP_RECORD_REG(MFGeometryFileRcd);
4 changes: 4 additions & 0 deletions CondFormats/DataRecord/src/MagFieldConfigRcd.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include "CondFormats/DataRecord/interface/MagFieldConfigRcd.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"

EVENTSETUP_RECORD_REG(MagFieldConfigRcd);
9 changes: 9 additions & 0 deletions CondFormats/MFObjects/BuildFile.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<flags GENREFLEX_ARGS="--"/>
<use name="CondFormats/Common"/>
<use name="FWCore/Utilities"/>
<use name="CondCore/DBCommon"/>
<use name="boost_serialization"/>
<use name="rootrflx"/>
<export>
<lib name="1"/>
</export>
62 changes: 62 additions & 0 deletions CondFormats/MFObjects/interface/MagFieldConfig.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#ifndef MagFieldConfig_h
#define MagFieldConfig_h

/** \class MagFieldConfig
*
* No description available.
*
* \author N. Amapane - Torino
*/

#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "CondFormats/Serialization/interface/Serializable.h"

#include <string>
#include <vector>
#include <map>

namespace edm {class ParameterSet;}

namespace magneticfield {
typedef std::map<int, std::pair<std::string, int> > TableFileMap;
}


class MagFieldConfig {
public:

MagFieldConfig(){}

/// Constructor
MagFieldConfig(const edm::ParameterSet& pset, bool debug=false);

// Operations
public:
std::vector<unsigned> expandList(const std::string& list);

/// Version of the geometry to be used
int geometryVersion;

/// Version of the data tables to be used
std::string version;

/// Specification of which data table is to be used for each volume
magneticfield::TableFileMap gridFiles;

/// Scaling factors for the field in specific volumes
std::vector<int> keys;
std::vector<double> values;

/// Label or type of the tracker parametrization
std::string slaveFieldVersion;

/// Parameters for the tracker parametrization
/// (not used in legacy producers where slaveFieldVersion is the label of the
/// parametrization in the EventSetup)
std::vector<double> slaveFieldParameters;

COND_SERIALIZABLE;
};
#endif


6 changes: 6 additions & 0 deletions CondFormats/MFObjects/plugins/BuildFile.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<use name="FWCore/Framework"/>
<use name="FWCore/PluginManager"/>
<use name="CondCore/ESSources"/>
<use name="CondFormats/MFObjects"/>
<use name="CondFormats/DataRecord"/>
<flags EDM_PLUGIN="1"/>
8 changes: 8 additions & 0 deletions CondFormats/MFObjects/plugins/plugin.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include "CondCore/ESSources/interface/registration_macros.h"
#include "CondFormats/MFObjects/interface/MagFieldConfig.h"
#include "CondFormats/DataRecord/interface/MagFieldConfigRcd.h"
#include "CondFormats/Common/interface/FileBlob.h"
#include "CondFormats/DataRecord/interface/MFGeometryFileRcd.h"

REGISTER_PLUGIN(MagFieldConfigRcd, MagFieldConfig);
REGISTER_PLUGIN(MFGeometryFileRcd, FileBlob);
98 changes: 98 additions & 0 deletions CondFormats/MFObjects/src/MagFieldConfig.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
/** \file
*
* \author N. Amapane - Torino
*/

#include "CondFormats/MFObjects/interface/MagFieldConfig.h"
#include <FWCore/MessageLogger/interface/MessageLogger.h>

#include <iostream>
#include <vector>
#include <memory>

#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/classification.hpp>
#include <boost/lexical_cast.hpp>

using namespace std;
using namespace magneticfield;


MagFieldConfig::MagFieldConfig(const edm::ParameterSet& pset, bool debug) {

version = pset.getParameter<std::string>("version");
geometryVersion = pset.getParameter<int>("geometryVersion");


// Get specification for the grid tables to be used.
typedef vector<edm::ParameterSet> VPSet;

VPSet fileSpec = pset.getParameter<VPSet>("gridFiles");
if (fileSpec.size()!=0) {
for(VPSet::const_iterator rule = fileSpec.begin(); rule != fileSpec.end(); ++rule){
string s_volumes = rule->getParameter<string>("volumes");
string s_sectors = rule->getParameter<string>("sectors"); // 0 means all volumes
int master = rule->getParameter<int>("master");
string path = rule->getParameter<string>("path");

vector<unsigned> volumes = expandList(s_volumes);
vector<unsigned> sectors = expandList(s_sectors);

if (debug) {
cout << "Volumes: " << s_volumes <<" Sectors: " << s_sectors
<< " Master: " << master << " Path: " << path << endl;
cout << " Expanded volumes: ";
copy(volumes.begin(), volumes.end(), ostream_iterator<unsigned>(cout, " "));
cout << endl;
cout << " Expanded sectors: ";
copy(sectors.begin(), sectors.end(), ostream_iterator<unsigned>(cout, " "));
cout << endl;
}

for (vector<unsigned>::iterator i = volumes.begin(); i!=volumes.end(); ++i){
for (vector<unsigned>::iterator j = sectors.begin(); j!=sectors.end(); ++j){
unsigned vpacked = (*i)*100+(*j);
if (gridFiles.find(vpacked)==gridFiles.end()) {
gridFiles[vpacked] = make_pair(path, master);
} else {
throw cms::Exception("ConfigurationError") << "VolumeBasedMagneticFieldESProducer: malformed gridFiles config parameter" << endl;
}
}
}
}
}

// Get scaling factors
keys = pset.getParameter<vector<int> >("scalingVolumes");
values = pset.getParameter<vector<double> >("scalingFactors");


// Slave field label. Either a label of an existing map (legacy support), or the
// type of parametrization to be constructed with the "paramData" parameters.
slaveFieldVersion = pset.getParameter<string>("paramLabel");
// Check for compatibility with older configurations
if (pset.existsAs<vector<double> >("paramData")) {
slaveFieldParameters = pset.getParameter<vector<double> >("paramData");
}

}

vector<unsigned> MagFieldConfig::expandList(const string& list) {
typedef vector<string> vstring;
vector<unsigned> values;
vstring v1;
boost::split(v1, list, boost::is_any_of(","));
for (vstring::const_iterator i= v1.begin(); i!=v1.end(); ++i){
vstring v2;
boost::split(v2, *i, boost::is_any_of("-"));
unsigned start = boost::lexical_cast<unsigned>(v2.front());
unsigned end = boost::lexical_cast<unsigned>(v2.back());
if ((v2.size()>2) || (start>end)) {
throw cms::Exception("ConfigurationError") << "VolumeBasedMagneticFieldESProducerFromDB: malformed configuration" << list << endl;
}
for (unsigned k = start; k<=end; ++k){
values.push_back(k);
}
}
return values;
}
5 changes: 5 additions & 0 deletions CondFormats/MFObjects/src/T_EventSetup_MagFieldConfig.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// user include files
#include "CondFormats/MFObjects/interface/MagFieldConfig.h"
#include "FWCore/Utilities/interface/typelookup.h"

TYPELOOKUP_DATA_REG(MagFieldConfig);
11 changes: 11 additions & 0 deletions CondFormats/MFObjects/src/classes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include "headers.h"

namespace CondFormats_MFObjects {
struct dictionary {
std::pair<std::string, int> str_int;
std::pair<int, std::pair<std::string, int> > tablemappair;
std::pair<const int, std::pair<std::string, int> > tablemappairc;
std::map<int, std::pair<std::string, int> > tablemap;
MagFieldConfig conf;
};
}
7 changes: 7 additions & 0 deletions CondFormats/MFObjects/src/classes_def.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<lcgdict>
<class name="std::pair<std::string, int>"/>
<class name="std::pair<int, std::pair<std::string, int> >"/>
<class name="std::pair<const int, std::pair<std::string, int> >"/>
<class name="std::map<int, std::pair<std::string, int> >"/>
<class name="MagFieldConfig"/>
</lcgdict>
5 changes: 5 additions & 0 deletions CondFormats/MFObjects/src/headers.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* Condition Objects
* MagFieldConfig
*/

#include "CondFormats/MFObjects/interface/MagFieldConfig.h"
14 changes: 14 additions & 0 deletions CondFormats/MFObjects/test/BuildFile.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<use name="FWCore/Framework"/>
<use name="FWCore/ParameterSet"/>
<use name="CondFormats/MFObjects"/>
<use name="CondCore/DBCommon"/>
<use name="CondCore/DBOutputService"/>
<use name="CondCore/IOVService"/>
<use name="CondCore/MetaDataService"/>
<use name="CondFormats/DataRecord"/>
<library file="MagFieldConfigDBWriter.cc" name="CondFormatsMFObjectsTest">
<flags EDM_PLUGIN="1"/>
</library>

<bin file="testSerializationMFObjects.cpp">
</bin>