30 mapFile_(iConfig.getUntrackedParameter<std::
string>(
"MapFile",
""))
54 descriptions.
add(
"caloTowerConstituents", desc );
62 iRecord.
get( topology ) ;
66 prod->useStandardHB(
true);
67 prod->useStandardHE(
true);
68 prod->useStandardHF(
true);
69 prod->useStandardHO(
true);
70 prod->useStandardEB(
true);
85 gzFile gzed = gzopen( eff.
fullPath().c_str(),
"rb" );
87 while( !gzeof( gzed ))
90 int ieta, iphi, rawid;
91 if( 0 != gzgets( gzed, line, 1023 ))
93 if(
index( line,
'#' ) != 0 )*(
index( line,
'#' )) = 0;
94 int ct = sscanf( line,
"%i %d %d", &rawid, &ieta, &iphi );
99 theMap.
assign( detid, tid );
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
CaloTopology const * topology(0)
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)