Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:27:29

0001 // -*- C++ -*-
0002 //
0003 // Package:     Core
0004 // Class  :     FWItemCSCSegmentAccessor
0005 //
0006 // Implementation:
0007 //     An example of how to write a plugin based FWItemAccessorBase derived class.
0008 //
0009 // Original Author:  Giulio Eulisse
0010 //         Created:  Thu Feb 18 15:19:44 EDT 2008
0011 //
0012 
0013 // system include files
0014 #include <cassert>
0015 
0016 #include "TClass.h"
0017 
0018 // user include files
0019 #include "DataFormats/CSCRecHit/interface/CSCRecHit2DCollection.h"
0020 #include "DataFormats/CSCRecHit/interface/CSCSegmentCollection.h"
0021 
0022 #include "DataFormats/DTRecHit/interface/DTRecSegment2DCollection.h"
0023 #include "DataFormats/DTRecHit/interface/DTRecSegment4DCollection.h"
0024 #include "DataFormats/DTRecHit/interface/DTRecHitCollection.h"
0025 
0026 #include "DataFormats/RPCRecHit/interface/RPCRecHitCollection.h"
0027 #include "DataFormats/GEMRecHit/interface/GEMRecHitCollection.h"
0028 #include "DataFormats/GEMRecHit/interface/GEMSegmentCollection.h"
0029 #include "DataFormats/GEMRecHit/interface/ME0RecHitCollection.h"
0030 #include "DataFormats/GEMRecHit/interface/ME0SegmentCollection.h"
0031 
0032 #include "DataFormats/DTDigi/interface/DTDigiCollection.h"
0033 #include "DataFormats/CSCDigi/interface/CSCWireDigiCollection.h"
0034 #include "DataFormats/CSCDigi/interface/CSCStripDigiCollection.h"
0035 #include "DataFormats/RPCDigi/interface/RPCDigiCollection.h"
0036 #include "DataFormats/CSCDigi/interface/CSCRPCDigiCollection.h"
0037 #include "DataFormats/GEMDigi/interface/GEMDigiCollection.h"
0038 #include "DataFormats/GEMDigi/interface/GEMPadDigiCollection.h"
0039 #include "DataFormats/GEMDigi/interface/GEMCoPadDigiCollection.h"
0040 #include "DataFormats/GEMDigi/interface/ME0DigiPreRecoCollection.h"
0041 
0042 #include "Fireworks/Core/interface/FWItemRandomAccessor.h"
0043 
0044 REGISTER_TEMPLATE_FWITEMACCESSOR(FWItemRandomAccessor<CSCRecHit2DCollection>,
0045                                  CSCRecHit2DCollection,
0046                                  "CSCRecHit2DCollectionAccessor");
0047 REGISTER_TEMPLATE_FWITEMACCESSOR(FWItemRandomAccessor<CSCSegmentCollection>,
0048                                  CSCSegmentCollection,
0049                                  "CSCSegmentCollectionAccessor");
0050 REGISTER_TEMPLATE_FWITEMACCESSOR(FWItemRandomAccessor<DTRecSegment2DCollection>,
0051                                  DTRecSegment2DCollection,
0052                                  "DTSegment2DCollectionAccessor");
0053 REGISTER_TEMPLATE_FWITEMACCESSOR(FWItemRandomAccessor<DTRecSegment4DCollection>,
0054                                  DTRecSegment4DCollection,
0055                                  "DTSegment4DCollectionAccessor");
0056 REGISTER_TEMPLATE_FWITEMACCESSOR(FWItemRandomAccessor<DTRecHitCollection>,
0057                                  DTRecHitCollection,
0058                                  "DTRecHitCollectionAccessor");
0059 REGISTER_TEMPLATE_FWITEMACCESSOR(FWItemRandomAccessor<RPCRecHitCollection>,
0060                                  RPCRecHitCollection,
0061                                  "RPCRecHitCollectionAccessor");
0062 REGISTER_TEMPLATE_FWITEMACCESSOR(FWItemRandomAccessor<GEMRecHitCollection>,
0063                                  GEMRecHitCollection,
0064                                  "GEMRecHitCollectionAccessor");
0065 REGISTER_TEMPLATE_FWITEMACCESSOR(FWItemRandomAccessor<GEMSegmentCollection>,
0066                                  GEMSegmentCollection,
0067                                  "GEMSegmentCollectionAccessor");
0068 REGISTER_TEMPLATE_FWITEMACCESSOR(FWItemRandomAccessor<ME0RecHitCollection>,
0069                                  ME0RecHitCollection,
0070                                  "ME0RecHitCollectionAccessor");
0071 REGISTER_TEMPLATE_FWITEMACCESSOR(FWItemRandomAccessor<ME0SegmentCollection>,
0072                                  ME0SegmentCollection,
0073                                  "ME0SegmentCollectionAccessor");
0074 
0075 typedef FWItemMuonDigiAccessor<DTDigiCollection, DTDigi> DTDigiAccessor;
0076 REGISTER_TEMPLATE_FWITEMACCESSOR(DTDigiAccessor, DTDigiCollection, "DTDigiCollectionAccessor");
0077 
0078 typedef FWItemMuonDigiAccessor<CSCWireDigiCollection, CSCWireDigi> CSCWireDigiAccessor;
0079 REGISTER_TEMPLATE_FWITEMACCESSOR(CSCWireDigiAccessor, CSCWireDigiCollection, "CSCWireDigiCollectionAccessor");
0080 
0081 typedef FWItemMuonDigiAccessor<CSCStripDigiCollection, CSCStripDigi> CSCStripDigiAccessor;
0082 REGISTER_TEMPLATE_FWITEMACCESSOR(CSCStripDigiAccessor, CSCStripDigiCollection, "CSCStripDigiCollectionAccessor");
0083 
0084 typedef FWItemMuonDigiAccessor<RPCDigiCollection, RPCDigi> RPCDigiAccessor;
0085 REGISTER_TEMPLATE_FWITEMACCESSOR(RPCDigiAccessor, RPCDigiCollection, "RPCDigiCollectionAccessor");
0086 
0087 typedef FWItemMuonDigiAccessor<CSCRPCDigiCollection, CSCRPCDigi> CSCRPCDigiAccessor;
0088 REGISTER_TEMPLATE_FWITEMACCESSOR(CSCRPCDigiAccessor, CSCRPCDigiCollection, "CSCRPCDigiCollectionAccessor");
0089 
0090 typedef FWItemMuonDigiAccessor<GEMDigiCollection, GEMDigi> GEMDigiAccessor;
0091 REGISTER_TEMPLATE_FWITEMACCESSOR(GEMDigiAccessor, GEMDigiCollection, "GEMDigiCollectionAccessor");
0092 
0093 typedef FWItemMuonDigiAccessor<GEMPadDigiCollection, GEMPadDigi> GEMPadDigiAccessor;
0094 REGISTER_TEMPLATE_FWITEMACCESSOR(GEMPadDigiAccessor, GEMPadDigiCollection, "GEMPadDigiCollectionAccessor");
0095 
0096 typedef FWItemMuonDigiAccessor<GEMCoPadDigiCollection, GEMCoPadDigi> GEMCoPadDigiAccessor;
0097 REGISTER_TEMPLATE_FWITEMACCESSOR(GEMCoPadDigiAccessor, GEMCoPadDigiCollection, "GEMCoPadDigiCollectionAccessor");
0098 
0099 typedef FWItemMuonDigiAccessor<ME0DigiPreRecoCollection, ME0DigiPreReco> ME0DigiPreRecoAccessor;
0100 REGISTER_TEMPLATE_FWITEMACCESSOR(ME0DigiPreRecoAccessor, ME0DigiPreRecoCollection, "ME0DigiPreRecoCollectionAccessor");