46 for(
unsigned i=0;
i != nLabels;
i++ )
51 produces<HBHERecHitCollection>(
"HBHERecHitCollectionFHN");
52 produces<HORecHitCollection>(
"HORecHitCollectionFHN");
53 produces<HFRecHitCollection>(
"HFRecHitCollectionFHN");
55 produces<EcalRecHitCollection>(
"EcalRecHitCollectionFHN");
56 produces<EcalRecHitCollection>(
"PSEcalRecHitCollectionFHN");
58 produces<FEDRawDataCollection>(
"HcalFEDsFHN");
72 bool acceptEvent=
false;
76 bool isAnomalous_BasedOnMET =
false;
77 bool isAnomalous_BasedOnEnergyFraction=
false;
86 if(met.
pt() >
MetCut_) isAnomalous_BasedOnMET=
true;
97 std::vector<CaloTower> TowerContainer;
98 std::vector<reco::CaloJet> JetContainer;
99 TowerContainer.clear();
100 JetContainer.clear();
103 for(reco::CaloJetCollection::const_iterator calojetIter = calojetHandle->begin();calojetIter != calojetHandle->end();++calojetIter) {
105 JetContainer.push_back(*calojetIter);
106 double maxTowerE = 0.0;
108 double dR =
deltaR((*calojetIter).eta(),(*calojetIter).phi(),(*kal).eta(),(*kal).phi());
109 if( (dR < 0.50) && (kal->p() > maxTowerE) ) {
110 maxTowerE = kal->p();
114 TowerContainer.push_back(seedTower);
118 if(JetContainer.size() > 0) {
120 isAnomalous_BasedOnEnergyFraction =
true;
124 acceptEvent=((
useMet_&&isAnomalous_BasedOnMET)||(
useJet_&&isAnomalous_BasedOnEnergyFraction));
158 std::vector<edm::EDGetTokenT<EcalRecHitCollection> >::const_iterator
i;
165 tmpEcalRecHitCollection->push_back(*recHit);
175 miniHBHERecHitCollection->
push_back(*hbheItr);
180 miniHORecHitCollection->
push_back(*hoItr);
186 miniHFRecHitCollection->
push_back(*hfItr);
191 for (std::vector<EcalRecHit>::const_iterator ehit=tmpEcalRecHitCollection->begin(); ehit!=tmpEcalRecHitCollection->end(); ehit++)
193 outputEColl->push_back(*ehit);
210 std::vector<int> selFEDs;
213 selFEDs.push_back(i);
226 for (uint32_t
k=0;
k<selFEDs.size();
k++)
233 if (!rightFED)
continue;
241 if ( fedDataProd.
size() != 0 ) {
247 unsigned char *dataProd=fedDataProd.
data();
248 const unsigned char *
data=fedData.
data();
249 for (
unsigned int k=0;
k<
size; ++
k ) {
258 iEvent.
put( miniHBHERecHitCollection,
"HBHERecHitCollectionFHN");
259 iEvent.
put( miniHORecHitCollection,
"HORecHitCollectionFHN");
260 iEvent.
put( miniHFRecHitCollection,
"HFRecHitCollectionFHN");
261 iEvent.
put( outputEColl,
"EcalRecHitCollectionFHN");
262 iEvent.
put( outputESColl,
"PSEcalRecHitCollectionFHN");
263 iEvent.
put( outputFEDs,
"HcalFEDsFHN");
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
T getParameter(std::string const &) const
edm::EDGetTokenT< HORecHitCollection > tok_ho_
virtual float pt() const
transverse momentum
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< CaloTower >::const_iterator const_iterator
std::vector< edm::EDGetTokenT< EcalRecHitCollection > > toks_ecal_
edm::EDGetTokenT< CaloTowerCollection > tok_tower_
void push_back(T const &t)
edm::EDGetTokenT< EcalRecHitCollection > tok_ps_
edm::EDGetTokenT< FEDRawDataCollection > tok_raw_
edm::EDGetTokenT< reco::CaloJetCollection > tok_jets_
size_t size() const
Lenght of the data buffer in bytes.
std::vector< edm::InputTag > ecalLabels_
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_
const_iterator end() const
double deltaR(double eta1, double eta2, double phi1, double phi2)
std::vector< reco::CaloMET > CaloMETCollection
collection of CaloMET objects
T const * product() const
AlCaHcalNoiseProducer(const edm::ParameterSet &)
char data[epos_bytes_allocation]
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
virtual void produce(edm::Event &, const edm::EventSetup &)
tuple size
Write out results.
edm::EDGetTokenT< reco::CaloMETCollection > tok_met_
const_iterator begin() const