File indexing completed on 2024-04-06 12:30:37
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #include "FWCore/Framework/interface/Frameworkfwd.h"
0018 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0019
0020 #include "FWCore/Framework/interface/Event.h"
0021 #include "FWCore/Framework/interface/MakerMacros.h"
0022
0023 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0024
0025 #include "SimDataFormats/CrossingFrame/interface/CrossingFrame.h"
0026 #include "SimDataFormats/CrossingFrame/interface/MixCollection.h"
0027 #include "SimDataFormats/TrackingHit/interface/PSimHit.h"
0028 #include "SimDataFormats/CaloHit/interface/PCaloHitContainer.h"
0029 #include "SimDataFormats/Track/interface/SimTrackContainer.h"
0030 #include "SimDataFormats/Vertex/interface/SimVertexContainer.h"
0031 #include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h"
0032
0033 #include <vector>
0034 #include <string>
0035
0036 namespace edm {
0037
0038
0039
0040
0041
0042 class TestMix : public edm::one::EDAnalyzer<> {
0043 public:
0044 explicit TestMix(const edm::ParameterSet&);
0045 ~TestMix() override;
0046
0047 void analyze(const edm::Event&, const edm::EventSetup&) override;
0048
0049 private:
0050 int level_;
0051 std::vector<std::string> track_containers_;
0052 std::vector<std::string> track_containers2_;
0053
0054 edm::EDGetTokenT<CrossingFrame<PSimHit>> TrackerToken0_;
0055 edm::EDGetTokenT<CrossingFrame<PSimHit>> TrackerToken1_;
0056 edm::EDGetTokenT<CrossingFrame<PSimHit>> TrackerToken2_;
0057 edm::EDGetTokenT<CrossingFrame<PSimHit>> TrackerToken3_;
0058 edm::EDGetTokenT<CrossingFrame<PSimHit>> TrackerToken4_;
0059
0060 edm::EDGetTokenT<CrossingFrame<PCaloHit>> CaloToken1_;
0061
0062 edm::EDGetTokenT<CrossingFrame<SimTrack>> SimTrackToken_;
0063 edm::EDGetTokenT<CrossingFrame<SimVertex>> SimVertexToken_;
0064 edm::EDGetTokenT<CrossingFrame<HepMCProduct>> HepMCToken_;
0065 };
0066 }