43 template <
typename T1,
typename T2>
47 std::map<uint32_t, std::vector<BaseHit> > output_map;
51 DetId detIdObject( clustSet->detId() );
53 output_map[detIdObject.rawId()].push_back(*clustIt);
58 for (
typename std::map<uint32_t, std::vector<BaseHit> >::const_iterator outHits = output_map.begin(); outHits != output_map.end(); ++outHits ) {
59 DetId detIdObject(outHits->first);
60 typename MergeCollection::FastFiller spc(*output, detIdObject);
61 for (
auto Hit : outHits->second){
71 template <
typename T1,
typename T2>
74 std::map<uint32_t, BaseHit > output_map;
79 T2 *akt_calo_obj = &output_map[detIdObject.rawId()];
80 float new_energy = akt_calo_obj->energy() +
recHit->energy();
82 newRecHit.setEnergy(new_energy);
83 *akt_calo_obj = newRecHit;
87 for (
typename std::map<uint32_t, BaseHit >::const_iterator outHits = output_map.begin(); outHits != output_map.end(); ++outHits ) {
88 output->push_back(outHits->second);
96 template <
typename T1,
typename T2>
99 std::map<uint32_t, std::vector<BaseHit> > output_map;
104 output_map[detIdObject].push_back(*
recHit);
108 for (
typename std::map<uint32_t, std::vector<BaseHit> >::const_iterator outHits = output_map.begin(); outHits != output_map.end(); ++outHits ) {
117 template <
typename T1,
typename T2>
128 fill_output_obj_tracker(output,inputCollections,
true);
136 fill_output_obj_tracker(output,inputCollections);
144 fill_output_obj_calo(output,inputCollections);
151 fill_output_obj_calo(output,inputCollections);
157 fill_output_obj_calo(output,inputCollections);
163 fill_output_obj_calo(output,inputCollections);
169 fill_output_obj_calo(output,inputCollections);
176 fill_output_obj_calo(output,inputCollections);
185 fill_output_obj_muonchamber(output,inputCollections);
191 fill_output_obj_muonchamber(output,inputCollections);
198 fill_output_obj_muonchamber(output,inputCollections);
CollectionMerger< edm::SortedCollection< HORecHit >, HORecHit > HORecHitColMerger
#define DEFINE_FWK_MODULE(type)
CollectionMerger< edm::SortedCollection< CastorRecHit >, CastorRecHit > CastorRecHitColMerger
data_type const * const_iterator
Container::value_type value_type
CollectionMerger< edmNew::DetSetVector< SiPixelCluster >, SiPixelCluster > PixelColMerger
void fill_output_obj_muonchamber(std::unique_ptr< MergeCollection > &output, std::vector< edm::Handle< MergeCollection > > &inputCollections)
void fill_output_obj_calo(std::unique_ptr< MergeCollection > &output, std::vector< edm::Handle< MergeCollection > > &inputCollections)
CollectionMerger< edm::SortedCollection< ZDCRecHit >, ZDCRecHit > ZDCRecHitColMerger
Pixel cluster – collection of neighboring pixels above threshold.
void fill_output_obj(std::unique_ptr< MergeCollection > &output, std::vector< edm::Handle< MergeCollection > > &inputCollections)
CollectionMerger< edmNew::DetSetVector< SiStripCluster >, SiStripCluster > StripColMerger
CollectionMerger< edm::RangeMap< DTLayerId, edm::OwnVector< DTRecHit1DPair > >, DTRecHit1DPair > DTRecHitColMerger
CollectionMerger< edm::RangeMap< CSCDetId, edm::OwnVector< CSCRecHit2D > >, CSCRecHit2D > CSCRecHitColMerger
CollectionMerger< edm::SortedCollection< HFRecHit >, HFRecHit > HFRecHitColMerger
CollectionMerger< edm::RangeMap< RPCDetId, edm::OwnVector< RPCRecHit > >, RPCRecHit > RPCRecHitColMerger
void fill_output_obj_tracker(std::unique_ptr< MergeCollection > &output, std::vector< edm::Handle< MergeCollection > > &inputCollections, bool print_pixel=false)
CollectionMerger< edm::SortedCollection< HBHERecHit >, HBHERecHit > HBHERecHitColMerger
CollectionMerger< edm::SortedCollection< EcalRecHit >, EcalRecHit > EcalRecHitColMerger