10 recoCluster_.nClusters = recoCluster_.eta.size();
11 for (reco::CaloClusterCollection::const_iterator
it = caloClusters.begin();
12 it != caloClusters.end() && recoCluster_.nClusters < maxCl;
14 recoCluster_.eta.push_back(
it->eta());
15 recoCluster_.phi.push_back(
it->phi());
16 recoCluster_.et.push_back(
it->energy() *
sin(
it->position().theta()));
17 recoCluster_.e.push_back(
it->energy());
18 recoCluster_.nClusters++;
23 recoCluster_.nClusters = recoCluster_.eta.size();
25 for (reco::SuperClusterCollection::const_iterator
it =
superClusters.begin();
28 recoCluster_.eta.push_back(
it->eta());
29 recoCluster_.phi.push_back(
it->phi());
30 recoCluster_.et.push_back(
it->energy() *
sin(
it->position().theta()));
31 recoCluster_.e.push_back(
it->energy());
32 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