File indexing completed on 2024-04-06 12:19:34
0001 #ifndef L1Trigger_CSCTriggerPrimitives_CSCMuonPortCard_h
0002 #define L1Trigger_CSCTriggerPrimitives_CSCMuonPortCard_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0029 #include "DataFormats/CSCDigi/interface/CSCCorrelatedLCTDigiCollection.h"
0030 #include "DataFormats/L1CSCTrackFinder/interface/CSCTriggerContainer.h"
0031 #include "DataFormats/L1CSCTrackFinder/interface/TrackStub.h"
0032 #include "L1Trigger/CSCTriggerPrimitives/interface/LCTQualityControl.h"
0033
0034 #include <vector>
0035
0036 class CSCMuonPortCard {
0037 public:
0038 typedef CSCTriggerContainer<csctf::TrackStub> TrackStubList;
0039
0040 CSCMuonPortCard(unsigned endcap, unsigned station, unsigned sector, const edm::ParameterSet& conf);
0041
0042 CSCMuonPortCard();
0043
0044
0045 void clear();
0046
0047
0048
0049 void loadLCTs(const CSCCorrelatedLCTDigiCollection& thedigis);
0050
0051
0052 void sortLCTs();
0053
0054
0055 void sortLCTs(const unsigned subsector, const int bx);
0056
0057
0058 std::vector<csctf::TrackStub> getLCTs() const { return selectedStubs_; }
0059
0060 private:
0061
0062 unsigned theEndcap;
0063 unsigned theStation;
0064 unsigned theSector;
0065
0066
0067 CSCTriggerContainer<csctf::TrackStub> stubs_;
0068
0069
0070 std::vector<csctf::TrackStub> selectedStubs_;
0071
0072
0073 bool sort_stubs_;
0074 bool drop_invalid_stubs_;
0075 bool drop_low_quality_stubs_;
0076 unsigned max_stubs_;
0077
0078 int minBX_, maxBX_;
0079
0080 std::string vmeName_;
0081 };
0082
0083 #endif