File indexing completed on 2024-04-06 12:20:28
0001 #ifndef L1Trigger_L1TGEM_GE0TriggerPseudoBuilder_h
0002 #define L1Trigger_L1TGEM_GE0TriggerPseudoBuilder_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include "DataFormats/GEMDigi/interface/ME0TriggerDigiCollection.h"
0013 #include "DataFormats/GEMRecHit/interface/GEMSegmentCollection.h"
0014 #include "DataFormats/GEMRecHit/interface/GEMSegment.h"
0015 #include "DataFormats/GEMRecHit/interface/GEMRecHit.h"
0016 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0017
0018 class GEMGeometry;
0019
0020 class GE0TriggerPseudoBuilder {
0021 public:
0022
0023
0024
0025
0026 explicit GE0TriggerPseudoBuilder(const edm::ParameterSet&);
0027
0028 ~GE0TriggerPseudoBuilder();
0029
0030
0031 void build(const GEMSegmentCollection& me0segments, GE0TriggerDigiCollection& oc_trig);
0032
0033
0034 void setME0Geometry(const GEMGeometry* g) { me0_g = g; }
0035
0036
0037 void dumpAllME0Segments(const GEMSegmentCollection& segments) const;
0038
0039
0040
0041
0042 enum class trig_me0s { MAX_ENDCAPS = 2, MAX_CHAMBERS = 18 };
0043
0044 private:
0045 static const int min_endcap;
0046 static const int max_endcap;
0047 static const int min_chamber;
0048 static const int max_chamber;
0049 static const unsigned int ME0KeyLayer;
0050 static const int ME0TriggerCentralBX;
0051
0052 const GEMGeometry* me0_g;
0053
0054 int info_;
0055
0056 double dphiresolution_;
0057
0058 ME0TriggerDigi segmentConversion(const GEMSegment segment);
0059
0060 edm::ParameterSet config_;
0061 };
0062
0063 #endif