CMS 3D CMS Logo

GTCollections.cc
Go to the documentation of this file.
2 
3 #include "GTCollections.h"
4 
5 namespace l1t {
6  namespace stage2 {
8  event_.put(std::move(muons_[0]), "Muon");
9  event_.put(std::move(muonShowers_[0]), "MuonShower");
10  event_.put(std::move(egammas_[0]), "EGamma");
11  event_.put(std::move(etsums_[0]), "EtSum");
12  event_.put(std::move(jets_[0]), "Jet");
13  event_.put(std::move(taus_[0]), "Tau");
14  for (int i = 1; i < 6; ++i) {
15  event_.put(std::move(muons_[i]), "Muon" + std::to_string(i + 1));
16  event_.put(std::move(muonShowers_[i]), "MuonShower" + std::to_string(i + 1));
17  event_.put(std::move(egammas_[i]), "EGamma" + std::to_string(i + 1));
18  event_.put(std::move(etsums_[i]), "EtSum" + std::to_string(i + 1));
19  event_.put(std::move(jets_[i]), "Jet" + std::to_string(i + 1));
20  event_.put(std::move(taus_[i]), "Tau" + std::to_string(i + 1));
21  }
22 
25  }
26  } // namespace stage2
27 } // namespace l1t
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:133
std::array< std::unique_ptr< EGammaBxCollection >, 6 > egammas_
Definition: GTCollections.h:48
std::array< std::unique_ptr< TauBxCollection >, 6 > taus_
Definition: GTCollections.h:51
std::array< std::unique_ptr< JetBxCollection >, 6 > jets_
Definition: GTCollections.h:50
std::unique_ptr< GlobalExtBlkBxCollection > extBlk_
Definition: GTCollections.h:54
std::string to_string(const V &value)
Definition: OMSAccess.h:71
delete x;
Definition: CaloConfig.h:22
std::array< std::unique_ptr< MuonShowerBxCollection >, 6 > muonShowers_
Definition: GTCollections.h:47
std::array< std::unique_ptr< EtSumBxCollection >, 6 > etsums_
Definition: GTCollections.h:49
std::array< std::unique_ptr< MuonBxCollection >, 6 > muons_
Definition: GTCollections.h:43
std::unique_ptr< GlobalAlgBlkBxCollection > algBlk_
Definition: GTCollections.h:53
def move(src, dest)
Definition: eostools.py:511