31 mapFile_(iConfig.getUntrackedParameter<std::
string>(
"MapFile",
""))
55 descriptions.
add(
"caloTowerConstituents", desc );
63 iRecord.
get( topology ) ;
67 prod->useStandardHB(
true);
68 prod->useStandardHE(
true);
69 prod->useStandardHF(
true);
70 prod->useStandardHO(
true);
71 prod->useStandardEB(
true);
86 gzFile gzed = gzopen( eff.
fullPath().c_str(),
"rb" );
88 while( !gzeof( gzed ))
91 int ieta, iphi, rawid;
92 if( 0 != gzgets( gzed, line, 1023 ))
94 if(
index( line,
'#' ) != 0 )*(
index( line,
'#' )) = 0;
95 int ct = sscanf( line,
"%i %d %d", &rawid, &ieta, &iphi );
100 theMap.
assign( detid, tid );
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
CaloTowerConstituentsMapBuilder(const edm::ParameterSet &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
std::auto_ptr< CaloTowerConstituentsMap > ReturnType
void get(HolderT &iHolder) const
void assign(const DetId &cell, const CaloTowerDetId &tower)
set the association between a DetId and a tower
void add(std::string const &label, ParameterSetDescription const &psetDescription)
~CaloTowerConstituentsMapBuilder()
std::string fullPath() const
ReturnType produce(const IdealGeometryRecord &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void parseTextMap(const std::string &filename, CaloTowerConstituentsMap &theMap)