16 recoCluster_.nClusters=recoCluster_.eta.size();
17 for(reco::CaloClusterCollection::const_iterator it=caloClusters.begin(); it!=caloClusters.end() && recoCluster_.nClusters<maxCl; it++)
19 recoCluster_.eta.push_back( it->eta() );
20 recoCluster_.phi.push_back( it->phi() );
21 recoCluster_.et.push_back ( it->energy() *
sin( it->position().theta() ) );
22 recoCluster_.e.push_back ( it->energy() );
23 recoCluster_.nClusters++;
30 recoCluster_.nClusters=recoCluster_.eta.size();
32 for(reco::SuperClusterCollection::const_iterator it=superClusters.begin(); it!=superClusters.end() && recoCluster_.nClusters<maxCl; it++)
34 recoCluster_.eta.push_back(it->eta());
35 recoCluster_.phi.push_back(it->phi());
36 recoCluster_.et.push_back (it->energy() *
sin( it->position().theta() ) );
37 recoCluster_.e.push_back (it->energy());
38 recoCluster_.nClusters++;
void Set(const reco::CaloClusterCollection &caloClusterCollection, unsigned maxCl)
Sin< T >::type sin(const T &t)
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
std::vector< CaloCluster > CaloClusterCollection
collection of CaloCluster objects