122 using namespace reco;
147 auto ebrhitscleaned = std::make_unique<EcalRecHitCollection>();
148 for(
unsigned int i = 0;
i < ebrhitsuncleaned->
size();
i++){
152 for(
unsigned int j = 0; j <refbeamhalorechits.
size() ; j++){
153 const EcalRecHit &rhitbeamhalo = *(refbeamhalorechits)[j];
159 if(isclean) ebrhitscleaned->push_back(rhit);
163 auto eerhitscleaned = std::make_unique<EcalRecHitCollection>();
164 for(
unsigned int i = 0;
i < eerhitsuncleaned->
size();
i++){
168 for(
unsigned int j = 0; j <refbeamhalorechits.
size() ; j++){
169 const EcalRecHit &rhitbeamhalo = *(refbeamhalorechits)[j];
175 if(isclean) eerhitscleaned->push_back(rhit);
179 auto hbherhitscleaned = std::make_unique<HBHERecHitCollection>();
180 for(
unsigned int i = 0;
i < hbherhitsuncleaned->
size();
i++){
181 const HBHERecHit & rhit = (*hbherhitsuncleaned)[
i];
184 for(
unsigned int j = 0; j <refbeamhalorechits.
size() ; j++){
185 const HBHERecHit &rhitbeamhalo = *(refbeamhalorechits)[j];
191 if(isclean) hbherhitscleaned->push_back(rhit);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const DetId & detid() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const DetId & detid() const
edm::RefVector< HBHERecHitCollection > & GetHBHERechits()
edm::EDGetTokenT< GlobalHaloData > globalhalo_token
edm::EDGetTokenT< EcalRecHitCollection > ecalebhits_token
size_type size() const
Size of the RefVector.
edm::RefVector< EcalRecHitCollection > & GetEBRechits()
edm::EDGetTokenT< HBHERecHitCollection > hbhehits_token
edm::RefVector< EcalRecHitCollection > & GetEERechits()
edm::EDGetTokenT< EcalRecHitCollection > ecaleehits_token