30 std::vector<int> theHcalShapeNums = {101,102,103,104,105,123,124,125,201,202,203,205,206,207,301};
33 for(
unsigned inum = 0; inum < theHcalShapeNums.size(); ++inum){
34 int num = theHcalShapeNums[inum];
50 delete shapeItr.second;
89 auto shapeMapItr = myShapes.find(shapeType);
90 if(shapeMapItr == myShapes.end()) {
92 << shapeType << std::endl;
95 return shapeMapItr->second;
111 else result =
nullptr;
113 edm::LogWarning(
"HcalShapes") <<
"Cannot find HCAL MC Params, so the default one is taken for subdet " << subdet;
Electronic response of the preamp.
const Item * getValues(DetId fId, bool throwOnFail=true) const
const CaloVShape * shape(const DetId &detId, bool precise=false) const override
std::map< int, const CaloVShape * > ShapeMap
const CaloVShape * defaultShape(const DetId &detId, bool precise=false) const
const ShapeMap & getShapeMap(bool precise) const
const HcalTopology * theTopology
unsigned int signalShape() const
void beginRun(edm::EventSetup const &es)
std::vector< HcalShape > theHcalShapes
HcalGenericSubdetector genericSubdet() const
HcalMCParams * theMCParams
T const * product() const
void setTopo(const HcalTopology *topo)
ShapeMap theShapesPrecise