CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
l1t::stage2::GMTCollections Class Reference

#include <GMTCollections.h>

Inheritance diagram for l1t::stage2::GMTCollections:
l1t::stage2::L1TObjectCollections l1t::UnpackerCollections

Public Member Functions

MuonBxCollectiongetImdMuonsBMTF ()
 
MuonBxCollectiongetImdMuonsEMTFNeg ()
 
MuonBxCollectiongetImdMuonsEMTFPos ()
 
MuonBxCollectiongetImdMuonsOMTFNeg ()
 
MuonBxCollectiongetImdMuonsOMTFPos ()
 
MuonBxCollectiongetMuons (const unsigned int copy) override
 
RegionalMuonCandBxCollectiongetRegionalMuonCandsBMTF ()
 
RegionalMuonCandBxCollectiongetRegionalMuonCandsEMTF ()
 
RegionalMuonCandBxCollectiongetRegionalMuonCandsOMTF ()
 
 GMTCollections (edm::Event &e, const int iFirstBx=-2, const int iLastBx=2, const int oFirstBx=-2, const int oLastBx=2)
 
 ~GMTCollections () override
 
- Public Member Functions inherited from l1t::stage2::L1TObjectCollections
virtual EGammaBxCollectiongetEGammas (const unsigned int copy)
 
virtual EtSumBxCollectiongetEtSums (const unsigned int copy)
 
virtual JetBxCollectiongetJets (const unsigned int copy)
 
virtual TauBxCollectiongetTaus (const unsigned int copy)
 
 L1TObjectCollections (edm::Event &e)
 
 ~L1TObjectCollections () override
 
- Public Member Functions inherited from l1t::UnpackerCollections
 UnpackerCollections (edm::Event &e)
 
virtual ~UnpackerCollections ()
 

Private Attributes

std::unique_ptr< MuonBxCollectionimdMuonsBMTF_
 
std::unique_ptr< MuonBxCollectionimdMuonsEMTFNeg_
 
std::unique_ptr< MuonBxCollectionimdMuonsEMTFPos_
 
std::unique_ptr< MuonBxCollectionimdMuonsOMTFNeg_
 
std::unique_ptr< MuonBxCollectionimdMuonsOMTFPos_
 
std::array< std::unique_ptr< MuonBxCollection >, 6 > muons_
 
std::unique_ptr< RegionalMuonCandBxCollectionregionalMuonCandsBMTF_
 
std::unique_ptr< RegionalMuonCandBxCollectionregionalMuonCandsEMTF_
 
std::unique_ptr< RegionalMuonCandBxCollectionregionalMuonCandsOMTF_
 

Additional Inherited Members

- Protected Attributes inherited from l1t::UnpackerCollections
edm::Eventevent_
 

Detailed Description

Definition at line 13 of file GMTCollections.h.

Constructor & Destructor Documentation

l1t::stage2::GMTCollections::GMTCollections ( edm::Event e,
const int  iFirstBx = -2,
const int  iLastBx = 2,
const int  oFirstBx = -2,
const int  oLastBx = 2 
)
inline

Definition at line 19 of file GMTCollections.h.

References models::generate(), muons_, and ~GMTCollections().

19  :
21  regionalMuonCandsBMTF_(std::make_unique<RegionalMuonCandBxCollection>(0, iFirstBx, iLastBx)),
22  regionalMuonCandsOMTF_(std::make_unique<RegionalMuonCandBxCollection>(0, iFirstBx, iLastBx)),
23  regionalMuonCandsEMTF_(std::make_unique<RegionalMuonCandBxCollection>(0, iFirstBx, iLastBx)),
24  muons_(),
25  imdMuonsBMTF_(std::make_unique<MuonBxCollection>(0, oFirstBx, oLastBx)),
26  imdMuonsEMTFNeg_(std::make_unique<MuonBxCollection>(0, oFirstBx, oLastBx)),
27  imdMuonsEMTFPos_(std::make_unique<MuonBxCollection>(0, oFirstBx, oLastBx)),
28  imdMuonsOMTFNeg_(std::make_unique<MuonBxCollection>(0, oFirstBx, oLastBx)),
29  imdMuonsOMTFPos_(std::make_unique<MuonBxCollection>(0, oFirstBx, oLastBx))
30  {
31  std::generate(muons_.begin(), muons_.end(), [&oFirstBx, &oLastBx]{ return std::make_unique<MuonBxCollection>(0, oFirstBx, oLastBx); });
32  };
std::unique_ptr< MuonBxCollection > imdMuonsOMTFNeg_
std::unique_ptr< RegionalMuonCandBxCollection > regionalMuonCandsOMTF_
std::unique_ptr< RegionalMuonCandBxCollection > regionalMuonCandsEMTF_
def generate(map_blobs=False, class_name=None)
Definition: models.py:189
std::unique_ptr< MuonBxCollection > imdMuonsEMTFNeg_
std::array< std::unique_ptr< MuonBxCollection >, 6 > muons_
std::unique_ptr< RegionalMuonCandBxCollection > regionalMuonCandsBMTF_
std::unique_ptr< MuonBxCollection > imdMuonsOMTFPos_
std::unique_ptr< MuonBxCollection > imdMuonsBMTF_
std::unique_ptr< MuonBxCollection > imdMuonsEMTFPos_
l1t::stage2::GMTCollections::~GMTCollections ( )
override

Definition at line 9 of file GMTCollections.cc.

References l1t::UnpackerCollections::event_, mps_fire::i, imdMuonsBMTF_, imdMuonsEMTFNeg_, imdMuonsEMTFPos_, imdMuonsOMTFNeg_, imdMuonsOMTFPos_, eostools::move(), muons_, edm::Event::put(), regionalMuonCandsBMTF_, regionalMuonCandsEMTF_, and regionalMuonCandsOMTF_.

Referenced by GMTCollections().

10  {
14  event_.put(std::move(muons_[0]), "Muon");
15  for (int i=1; i<6; ++i) {
16  event_.put(std::move(muons_[i]), "MuonCopy"+std::to_string(i));
17  }
18  event_.put(std::move(imdMuonsBMTF_), "imdMuonsBMTF");
19  event_.put(std::move(imdMuonsEMTFNeg_), "imdMuonsEMTFNeg");
20  event_.put(std::move(imdMuonsEMTFPos_), "imdMuonsEMTFPos");
21  event_.put(std::move(imdMuonsOMTFNeg_), "imdMuonsOMTFNeg");
22  event_.put(std::move(imdMuonsOMTFPos_), "imdMuonsOMTFPos");
23  }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:125
std::unique_ptr< MuonBxCollection > imdMuonsOMTFNeg_
std::unique_ptr< RegionalMuonCandBxCollection > regionalMuonCandsOMTF_
std::unique_ptr< RegionalMuonCandBxCollection > regionalMuonCandsEMTF_
std::unique_ptr< MuonBxCollection > imdMuonsEMTFNeg_
std::array< std::unique_ptr< MuonBxCollection >, 6 > muons_
std::unique_ptr< RegionalMuonCandBxCollection > regionalMuonCandsBMTF_
std::unique_ptr< MuonBxCollection > imdMuonsOMTFPos_
std::unique_ptr< MuonBxCollection > imdMuonsBMTF_
def move(src, dest)
Definition: eostools.py:511
std::unique_ptr< MuonBxCollection > imdMuonsEMTFPos_

Member Function Documentation

MuonBxCollection* l1t::stage2::GMTCollections::getImdMuonsBMTF ( )
inline

Definition at line 40 of file GMTCollections.h.

References imdMuonsBMTF_.

40 { return imdMuonsBMTF_.get(); };
std::unique_ptr< MuonBxCollection > imdMuonsBMTF_
MuonBxCollection* l1t::stage2::GMTCollections::getImdMuonsEMTFNeg ( )
inline

Definition at line 41 of file GMTCollections.h.

References imdMuonsEMTFNeg_.

41 { return imdMuonsEMTFNeg_.get(); };
std::unique_ptr< MuonBxCollection > imdMuonsEMTFNeg_
MuonBxCollection* l1t::stage2::GMTCollections::getImdMuonsEMTFPos ( )
inline

Definition at line 42 of file GMTCollections.h.

References imdMuonsEMTFPos_.

42 { return imdMuonsEMTFPos_.get(); };
std::unique_ptr< MuonBxCollection > imdMuonsEMTFPos_
MuonBxCollection* l1t::stage2::GMTCollections::getImdMuonsOMTFNeg ( )
inline

Definition at line 43 of file GMTCollections.h.

References imdMuonsOMTFNeg_.

43 { return imdMuonsOMTFNeg_.get(); };
std::unique_ptr< MuonBxCollection > imdMuonsOMTFNeg_
MuonBxCollection* l1t::stage2::GMTCollections::getImdMuonsOMTFPos ( )
inline

Definition at line 44 of file GMTCollections.h.

44 { return imdMuonsOMTFPos_.get(); };
std::unique_ptr< MuonBxCollection > imdMuonsOMTFPos_
MuonBxCollection* l1t::stage2::GMTCollections::getMuons ( const unsigned int  copy)
inlineoverridevirtual

Reimplemented from l1t::stage2::L1TObjectCollections.

Definition at line 39 of file GMTCollections.h.

References popcon2dropbox::copy(), and muons_.

39 { return muons_[copy].get(); };
def copy(args, dbName)
std::array< std::unique_ptr< MuonBxCollection >, 6 > muons_
RegionalMuonCandBxCollection* l1t::stage2::GMTCollections::getRegionalMuonCandsBMTF ( )
inline

Definition at line 36 of file GMTCollections.h.

References regionalMuonCandsBMTF_.

36 { return regionalMuonCandsBMTF_.get(); };
std::unique_ptr< RegionalMuonCandBxCollection > regionalMuonCandsBMTF_
RegionalMuonCandBxCollection* l1t::stage2::GMTCollections::getRegionalMuonCandsEMTF ( )
inline

Definition at line 38 of file GMTCollections.h.

References regionalMuonCandsEMTF_.

38 { return regionalMuonCandsEMTF_.get(); };
std::unique_ptr< RegionalMuonCandBxCollection > regionalMuonCandsEMTF_
RegionalMuonCandBxCollection* l1t::stage2::GMTCollections::getRegionalMuonCandsOMTF ( )
inline

Definition at line 37 of file GMTCollections.h.

References regionalMuonCandsOMTF_.

37 { return regionalMuonCandsOMTF_.get(); };
std::unique_ptr< RegionalMuonCandBxCollection > regionalMuonCandsOMTF_

Member Data Documentation

std::unique_ptr<MuonBxCollection> l1t::stage2::GMTCollections::imdMuonsBMTF_
private

Definition at line 51 of file GMTCollections.h.

Referenced by getImdMuonsBMTF(), and ~GMTCollections().

std::unique_ptr<MuonBxCollection> l1t::stage2::GMTCollections::imdMuonsEMTFNeg_
private

Definition at line 52 of file GMTCollections.h.

Referenced by getImdMuonsEMTFNeg(), and ~GMTCollections().

std::unique_ptr<MuonBxCollection> l1t::stage2::GMTCollections::imdMuonsEMTFPos_
private

Definition at line 53 of file GMTCollections.h.

Referenced by getImdMuonsEMTFPos(), and ~GMTCollections().

std::unique_ptr<MuonBxCollection> l1t::stage2::GMTCollections::imdMuonsOMTFNeg_
private

Definition at line 54 of file GMTCollections.h.

Referenced by getImdMuonsOMTFNeg(), and ~GMTCollections().

std::unique_ptr<MuonBxCollection> l1t::stage2::GMTCollections::imdMuonsOMTFPos_
private

Definition at line 55 of file GMTCollections.h.

Referenced by ~GMTCollections().

std::array<std::unique_ptr<MuonBxCollection>, 6> l1t::stage2::GMTCollections::muons_
private

Definition at line 50 of file GMTCollections.h.

Referenced by getMuons(), GMTCollections(), and ~GMTCollections().

std::unique_ptr<RegionalMuonCandBxCollection> l1t::stage2::GMTCollections::regionalMuonCandsBMTF_
private

Definition at line 44 of file GMTCollections.h.

Referenced by getRegionalMuonCandsBMTF(), and ~GMTCollections().

std::unique_ptr<RegionalMuonCandBxCollection> l1t::stage2::GMTCollections::regionalMuonCandsEMTF_
private

Definition at line 49 of file GMTCollections.h.

Referenced by getRegionalMuonCandsEMTF(), and ~GMTCollections().

std::unique_ptr<RegionalMuonCandBxCollection> l1t::stage2::GMTCollections::regionalMuonCandsOMTF_
private

Definition at line 48 of file GMTCollections.h.

Referenced by getRegionalMuonCandsOMTF(), and ~GMTCollections().