52 produces<HBHERecHitCollection>(
"HBHERecHitCollectionFHN");
53 produces<HORecHitCollection>(
"HORecHitCollectionFHN");
54 produces<HFRecHitCollection>(
"HFRecHitCollectionFHN");
56 produces<EcalRecHitCollection>(
"EcalRecHitCollectionFHN");
57 produces<EcalRecHitCollection>(
"PSEcalRecHitCollectionFHN");
59 produces<FEDRawDataCollection>(
"HcalFEDsFHN");
73 bool acceptEvent=
false;
77 bool isAnomalous_BasedOnMET =
false;
78 bool isAnomalous_BasedOnEnergyFraction=
false;
87 if(met.
pt() >
MetCut_) isAnomalous_BasedOnMET=
true;
98 std::vector<CaloTower> TowerContainer;
99 std::vector<reco::CaloJet> JetContainer;
100 TowerContainer.clear();
101 JetContainer.clear();
104 for(reco::CaloJetCollection::const_iterator calojetIter = calojetHandle->begin();calojetIter != calojetHandle->end();++calojetIter) {
106 JetContainer.push_back(*calojetIter);
107 double maxTowerE = 0.0;
109 double dR =
deltaR((*calojetIter).eta(),(*calojetIter).phi(),(*kal).eta(),(*kal).phi());
110 if( (dR < 0.50) && (kal->p() > maxTowerE) ) {
111 maxTowerE = kal->p();
115 TowerContainer.push_back(seedTower);
119 if(JetContainer.size() > 0) {
121 isAnomalous_BasedOnEnergyFraction =
true;
125 acceptEvent=((
useMet_&&isAnomalous_BasedOnMET)||(
useJet_&&isAnomalous_BasedOnEnergyFraction));
159 std::vector<edm::InputTag>::const_iterator
i;
166 tmpEcalRecHitCollection->push_back(*recHit);
176 miniHBHERecHitCollection->
push_back(*hbheItr);
181 miniHORecHitCollection->
push_back(*hoItr);
187 miniHFRecHitCollection->
push_back(*hfItr);
192 for (std::vector<EcalRecHit>::const_iterator ehit=tmpEcalRecHitCollection->begin(); ehit!=tmpEcalRecHitCollection->end(); ehit++)
194 outputEColl->push_back(*ehit);
211 std::vector<int> selFEDs;
214 selFEDs.push_back(i);
227 for (uint32_t
k=0;
k<selFEDs.size();
k++)
234 if (!rightFED)
continue;
242 if ( fedDataProd.
size() != 0 ) {
248 unsigned char *dataProd=fedDataProd.
data();
249 const unsigned char *
data=fedData.
data();
250 for (
unsigned int k=0;
k<
size; ++
k ) {
259 iEvent.
put( miniHBHERecHitCollection,
"HBHERecHitCollectionFHN");
260 iEvent.
put( miniHORecHitCollection,
"HORecHitCollectionFHN");
261 iEvent.
put( miniHFRecHitCollection,
"HFRecHitCollectionFHN");
262 iEvent.
put( outputEColl,
"EcalRecHitCollectionFHN");
263 iEvent.
put( outputESColl,
"PSEcalRecHitCollectionFHN");
264 iEvent.
put( outputFEDs,
"HcalFEDsFHN");
T getParameter(std::string const &) const
std::vector< CaloTower >::const_iterator const_iterator
void push_back(T const &t)
size_t size() const
Lenght of the data buffer in bytes.
edm::InputTag TowerSource_
std::vector< edm::InputTag > ecalLabels_
edm::InputTag rawInLabel_
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
void resize(size_t newsize)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
double JetHCALminEnergyFraction_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const_iterator end() const
double deltaR(double eta1, double eta2, double phi1, double phi2)
std::vector< reco::CaloMET > CaloMETCollection
collection of CaloMET objects
AlCaHcalNoiseProducer(const edm::ParameterSet &)
T const * product() const
edm::InputTag ecalPSLabel_
char data[epos_bytes_allocation]
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
virtual void produce(edm::Event &, const edm::EventSetup &)
virtual float pt() const GCC11_FINAL
transverse momentum
tuple size
Write out results.
const_iterator begin() const