77 inputLabel_(iConfig.getParameter<edm::InputTag>(
"rechitLabel")),
78 factor_(iConfig.getParameter<double>(
"revertFactor")),
79 doInterCalib_(iConfig.getParameter<bool>(
"doInterCalib"))
82 produces<CastorRecHitCollection>();
118 if (!
rechits.isValid())
std::cout <<
"No valid CastorRecHitCollection found, please check the InputLabel..." << std::endl;
124 for (
unsigned int i=0;
i<
rechits->size();
i++) {
135 double correctedenergy = 0;
138 correctedenergy = 0.5*fC*calibrations.
gain(capid);
141 correctedenergy = fC*calibrations.
gain(capid);
145 correctedenergy = 0.5*fC;
147 correctedenergy = fC;
154 std::vector<DetId> channels = myqual->getAllChannels();
156 for (std::vector<DetId>::iterator channel = channels.begin();channel != channels.end();channel++) {
157 if (channel->rawId() == detcell.
rawId()) {
160 if (mydigistatus->
getValue() == 2989) ok =
false;
166 rec->push_back(*correctedhit);
#define DEFINE_FWK_MODULE(type)
int module() const
get the module (1-2 for EM, 1-12 for HAD)
HcalCastorDetId id() const
get the id
RecHitCorrector(const edm::ParameterSet &)
uint32_t rawId() const
get the raw id
virtual void produce(edm::Event &, const edm::EventSetup &)
uint32_t getValue() const
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
double gain(int fCapId) const
get gain for capid=0..3
edm::InputTag inputLabel_