Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-05 22:48:12

0001 // -*- C++ -*-
0002 //
0003 // Package:     Tracks
0004 // Class  :     FWItemTrackAccessor
0005 //
0006 // Implementation:
0007 //
0008 // Original Author:  Tom McCauley
0009 //         Created:  Thu Feb 18 15:19:44 EDT 2008
0010 //
0011 
0012 #include <cassert>
0013 
0014 #include "TClass.h"
0015 
0016 #include "DataFormats/Common/interface/DetSetVector.h"
0017 #include "DataFormats/Common/interface/DetSetVectorNew.h"
0018 #include "DataFormats/SiPixelDigi/interface/PixelDigi.h"
0019 #include "DataFormats/SiStripDigi/interface/SiStripDigi.h"
0020 #include "DataFormats/SiStripCluster/interface/SiStripCluster.h"
0021 #include "DataFormats/SiPixelCluster/interface/SiPixelCluster.h"
0022 #include "DataFormats/Phase2TrackerCluster/interface/Phase2TrackerCluster1D.h"
0023 
0024 #include "DataFormats/BeamSpot/interface/BeamSpot.h"
0025 
0026 #include "Fireworks/Core/interface/FWItemRandomAccessor.h"
0027 #include "Fireworks/Core/interface/FWItemSingleAccessor.h"
0028 
0029 class BeamSpotSingleAccessor : public FWItemSingleAccessor {
0030 public:
0031   BeamSpotSingleAccessor(const TClass* x) : FWItemSingleAccessor(x) {}
0032   ~BeamSpotSingleAccessor() override{};
0033   REGISTER_FWITEMACCESSOR_METHODS();
0034 };
0035 
0036 REGISTER_TEMPLATE_FWITEMACCESSOR(FWItemDetSetAccessor<edm::DetSetVector<SiStripDigi> >,
0037                                  edm::DetSetVector<SiStripDigi>,
0038                                  "SiStripDigiCollectionAccessor");
0039 REGISTER_TEMPLATE_FWITEMACCESSOR(FWItemDetSetAccessor<edm::DetSetVector<PixelDigi> >,
0040                                  edm::DetSetVector<PixelDigi>,
0041                                  "SiPixelDigiCollectionAccessor");
0042 REGISTER_TEMPLATE_FWITEMACCESSOR(FWItemNewDetSetAccessor<edmNew::DetSetVector<SiStripCluster> >,
0043                                  edmNew::DetSetVector<SiStripCluster>,
0044                                  "SiStripClusterCollectionNewAccessor");
0045 REGISTER_TEMPLATE_FWITEMACCESSOR(FWItemNewDetSetAccessor<edmNew::DetSetVector<SiPixelCluster> >,
0046                                  edmNew::DetSetVector<SiPixelCluster>,
0047                                  "SiPixelClusterCollectionNewAccessor");
0048 REGISTER_TEMPLATE_FWITEMACCESSOR(FWItemNewDetSetAccessor<edmNew::DetSetVector<Phase2TrackerCluster1D> >,
0049                                  edmNew::DetSetVector<Phase2TrackerCluster1D>,
0050                                  "Phase2TrackerCluster1DCollectionNewAccessor");
0051 
0052 REGISTER_FWITEMACCESSOR(BeamSpotSingleAccessor, reco::BeamSpot, "BeamSpotAccessor");