test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EMTFHitExtra.h
Go to the documentation of this file.
1 // Class for input trigger primitives to EMTF - AWB 04.01.16
2 // Based on L1Trigger/L1TMuon/interface/deprecate/MuonTriggerPrimitive.h
3 // In particular, see struct CSCData
4 
5 #ifndef __l1t_EMTFHitExtra_h__
6 #define __l1t_EMTFHitExtra_h__
7 
8 #include <vector>
9 #include <boost/cstdint.hpp>
10 #include <cmath>
11 #include <iostream>
12 
15 
16 namespace l1t {
17  class EMTFHitExtra: public EMTFHit {
18  public:
19 
21 
22  bx0(-999), layer(-999), zone(-999), phi_hit(-999), phi_zone(-999), phi_loc_int(-999),
23  phi_loc_deg(-999), phi_loc_rad(-999), phi_glob_deg(-999), phi_glob_rad(-999), phi_geom_rad(-999),
24  theta_int(-999), theta_loc(-999), theta_deg(-999), theta_rad(-999), eta(-999)
25  {};
26 
27  virtual ~EMTFHitExtra() {};
28 
32  EMTFHitExtra ht;
33  ht.set_endcap(Endcap()); ht.set_station(Station()); ht.set_ring(Ring()); ht.set_sector(Sector());
38  ht.set_bend(Bend()); ht.set_valid(Valid()); ht.set_sync_err(Sync_err()); ht.set_bc0(BC0()); ht.set_bx(BX());
40 
42 
43  ht.set_bx0(BX0()); ht.set_layer(Layer()); ht.set_zone(Zone()); ht.set_phi_hit(Phi_hit()); ht.set_phi_zone(Phi_zone());
47  ht.set_eta(Eta());
48  return ht;
49  }
50  void SetZoneContribution (std::vector<int> vect_ints) { zone_contribution = vect_ints; }
51  std::vector<int> Zone_contribution () const { return zone_contribution; }
52 
53  void set_bx0 (int bits) { bx0 = bits; }
54  void set_layer (int bits) { layer = bits; }
55  void set_zone (int bits) { zone = bits; }
56  void set_phi_hit (int bits) { phi_hit = bits; }
57  void set_phi_zone (int bits) { phi_zone = bits; }
59  void set_phi_loc_deg (float val) { phi_loc_deg = val; }
60  void set_phi_loc_rad (float val) { phi_loc_rad = val; }
61  void set_phi_glob_deg (float val) { (val < 180) ? phi_glob_deg = val : phi_glob_deg = val - 360; }
62  void set_phi_glob_rad (float val) { (val < Geom::pi() ) ? phi_glob_rad = val : phi_glob_rad = val - 2*Geom::pi(); }
63  void set_phi_geom_rad (float val) { phi_geom_rad = val; }
64  void set_theta_int (int bits) { theta_int = bits; }
65  void set_theta_loc (float val) { theta_loc = val; }
66  void set_theta_deg (float val) { theta_deg = val; }
67  void set_theta_rad (float val) { theta_rad = val; }
68  void set_eta (float val) { eta = val; }
69 
70  int BX0 () const { return bx0; }
71  int Layer () const { return layer; }
72  int Zone () const { return zone; }
73  int Phi_hit () const { return phi_hit; }
74  int Phi_zone () const { return phi_zone; }
75  int Phi_loc_int () const { return phi_loc_int; }
76  float Phi_loc_deg () const { return phi_loc_deg; }
77  float Phi_loc_rad () const { return phi_loc_rad; }
78  float Phi_glob_deg () const { return phi_glob_deg; }
79  float Phi_glob_rad () const { return phi_glob_rad; }
80  float Phi_geom_rad () const { return phi_geom_rad; }
81  int Theta_int () const { return theta_int; }
82  float Theta_loc () const { return theta_loc; }
83  float Theta_deg () const { return theta_deg; }
84  float Theta_rad () const { return theta_rad; }
85  float Eta () const { return eta; }
86 
87 
88  private:
89 
90  std::vector<int> zone_contribution; // Filled in emulator from ConvertedHit.ZoneContribution()
91 
92  int bx0; // 1-3600. Filled in EMTFHit.cc from CSCCorrelatedLCTDigi
93  int layer;
94  int zone; // 4 - 118. Filled in emulator from ConvertedHit.Zhit()
95  int phi_hit; // 1 - 42. Filled in emulator from ConvertedHit.Ph_hit()
96  int phi_zone; // 1 - 6. Filled in emulator from ConvertedHit.Phzvl()
97  int phi_loc_int; // ? - ?. Filled in emulator from ConvertedHit.Phi()
98  float phi_loc_deg; // ? - ?. Filled in emulator, calculated from phi_loc_int with GetPackedPhi
99  float phi_loc_rad; // ? - ?. Filled in emulator, calculated from phi_loc_int with GetPackedPhi
100  float phi_glob_deg; // +/-180. Filled in emulator, calculated from phi_loc_int with GetPackedPhi
101  float phi_glob_rad; // +/- pi. Filled in emulator, calculated from phi_loc_int with GetPackedPhi
102  float phi_geom_rad; // The global phi value returned by L1Trigger/L1TMuon/interface/deprecate/GeometryTranslator.h. Not yet filled - AWB 06.04.16
103  int theta_int; // ? - ?. Filled in emulator from ConvertedHit.Theta()
104  float theta_loc; // Some bizzare local definition of theta. Not yet filled - AWB 06.04.16
105  float theta_deg; // 10 - 45. Filled in emulator from calc_theta_deg above
106  float theta_rad; // .2 - .8. Filled in emulator from calc_theta_rad above
107  float eta; // +/- 2.5. Filled in emulator from calc_eta above
108 
109  }; // End of class EMTFHitExtra
110 
111  // Define a vector of EMTFHitExtra
112  typedef std::vector<EMTFHitExtra> EMTFHitExtraCollection;
113 
114 } // End of namespace l1t
115 
116 #endif /* define __l1t_EMTFHitExtra_h__ */
std::vector< EMTFHitExtra > EMTFHitExtraCollection
Definition: EMTFHitExtra.h:112
RPCDetId RPC_DetId() const
Definition: EMTFHit.h:55
int Strip_hi() const
Definition: EMTFHit.h:105
int Quality() const
Definition: EMTFHit.h:108
void set_neighbor(int bits)
Definition: EMTFHit.h:73
void set_eta(float val)
Definition: EMTFHitExtra.h:68
int Sector_index() const
Definition: EMTFHit.h:95
void set_phi_zone(int bits)
Definition: EMTFHitExtra.h:57
void SetCSCLCTDigi(CSCCorrelatedLCTDigi digi)
Definition: EMTFHit.h:51
int Bend() const
Definition: EMTFHit.h:110
int RPC_layer() const
Definition: EMTFHit.h:100
int Strip() const
Definition: EMTFHit.h:104
void set_sector_index(int bits)
Definition: EMTFHit.h:67
void SetRPCDetId(RPCDetId id)
Definition: EMTFHit.h:50
void set_theta_loc(float val)
Definition: EMTFHitExtra.h:65
std::vector< int > Zone_contribution() const
Definition: EMTFHitExtra.h:51
void set_stub_num(int bits)
Definition: EMTFHit.h:87
void set_station(int bits)
Definition: EMTFHit.h:64
void set_phi_hit(int bits)
Definition: EMTFHitExtra.h:56
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
float Phi_geom_rad() const
Definition: EMTFHitExtra.h:80
int MPC_link() const
Definition: EMTFHit.h:102
void set_bc0(int bits)
Definition: EMTFHit.h:85
int Theta_int() const
Definition: EMTFHitExtra.h:81
RPCDigi RPC_Digi() const
Definition: EMTFHit.h:57
float Phi_glob_rad() const
Definition: EMTFHitExtra.h:79
CSCCorrelatedLCTDigi CSC_LCTDigi() const
Definition: EMTFHit.h:56
int Roll() const
Definition: EMTFHit.h:99
void set_sync_err(int bits)
Definition: EMTFHit.h:84
void set_phi_geom_rad(float val)
Definition: EMTFHitExtra.h:63
void set_bx0(int bits)
Definition: EMTFHitExtra.h:53
void set_phi_loc_deg(float val)
Definition: EMTFHitExtra.h:59
float Theta_rad() const
Definition: EMTFHitExtra.h:84
void set_endcap(int bits)
Definition: EMTFHit.h:63
void set_ring(int bits)
Definition: EMTFHit.h:65
int Chamber() const
Definition: EMTFHit.h:97
int Wire() const
Definition: EMTFHit.h:103
void set_phi_loc_rad(float val)
Definition: EMTFHitExtra.h:60
void set_phi_glob_deg(float val)
Definition: EMTFHitExtra.h:61
int Subsector() const
Definition: EMTFHit.h:96
int Is_RPC_hit() const
Definition: EMTFHit.h:117
int Sector() const
Definition: EMTFHit.h:94
void set_strip_low(int bits)
Definition: EMTFHit.h:78
int Strip_low() const
Definition: EMTFHit.h:106
EMTFHitExtra Clone()
Definition: EMTFHitExtra.h:31
int Valid() const
Definition: EMTFHit.h:111
int Sync_err() const
Definition: EMTFHit.h:112
void SetZoneContribution(std::vector< int > vect_ints)
Definition: EMTFHitExtra.h:50
int Track_num() const
Definition: EMTFHit.h:107
EMTFHit CreateEMTFHit()
int BX() const
Definition: EMTFHit.h:114
void set_pattern(int bits)
Definition: EMTFHit.h:81
virtual ~EMTFHitExtra()
Definition: EMTFHitExtra.h:27
void set_csc_ID(int bits)
Definition: EMTFHit.h:70
void set_theta_int(int bits)
Definition: EMTFHitExtra.h:64
void set_strip_hi(int bits)
Definition: EMTFHit.h:77
int BX0() const
Definition: EMTFHitExtra.h:70
void set_wire(int bits)
Definition: EMTFHit.h:75
std::vector< int > zone_contribution
Definition: EMTFHitExtra.h:90
void set_layer(int bits)
Definition: EMTFHitExtra.h:54
float Phi_glob_deg() const
Definition: EMTFHitExtra.h:78
float Phi_loc_rad() const
Definition: EMTFHitExtra.h:77
CSCDetId CSC_DetId() const
Definition: EMTFHit.h:54
int Ring() const
Definition: EMTFHit.h:93
void set_phi_glob_rad(float val)
Definition: EMTFHitExtra.h:62
void set_sector(int bits)
Definition: EMTFHit.h:66
float Phi_loc_deg() const
Definition: EMTFHitExtra.h:76
void set_is_CSC_hit(int bits)
Definition: EMTFHit.h:88
void set_theta_deg(float val)
Definition: EMTFHitExtra.h:66
int Station() const
Definition: EMTFHit.h:92
void set_valid(int bits)
Definition: EMTFHit.h:83
void SetCSCDetId(CSCDetId id)
Definition: EMTFHit.h:49
void SetRPCDigi(RPCDigi digi)
Definition: EMTFHit.h:52
void set_phi_loc_int(int bits)
Definition: EMTFHitExtra.h:58
void set_strip(int bits)
Definition: EMTFHit.h:76
void set_rpc_layer(int bits)
Definition: EMTFHit.h:72
void set_track_num(int bits)
Definition: EMTFHit.h:79
void set_is_RPC_hit(int bits)
Definition: EMTFHit.h:89
float Theta_deg() const
Definition: EMTFHitExtra.h:83
int Is_CSC_hit() const
Definition: EMTFHit.h:116
int Pattern() const
Definition: EMTFHit.h:109
void set_bx(int bits)
Definition: EMTFHit.h:86
int Layer() const
Definition: EMTFHitExtra.h:71
int Phi_zone() const
Definition: EMTFHitExtra.h:74
float Eta() const
Definition: EMTFHitExtra.h:85
int Endcap() const
Definition: EMTFHit.h:91
void ImportCSCCorrelatedLCTDigi(const CSCCorrelatedLCTDigi &_digi)
Definition: EMTFHitTools.cc:91
void set_theta_rad(float val)
Definition: EMTFHitExtra.h:67
int Stub_num() const
Definition: EMTFHit.h:115
int Phi_hit() const
Definition: EMTFHitExtra.h:73
constexpr double pi()
Definition: Pi.h:31
int Zone() const
Definition: EMTFHitExtra.h:72
int Phi_loc_int() const
Definition: EMTFHitExtra.h:75
int BC0() const
Definition: EMTFHit.h:113
void set_quality(int bits)
Definition: EMTFHit.h:80
void set_mpc_link(int bits)
Definition: EMTFHit.h:74
void set_chamber(int bits)
Definition: EMTFHit.h:69
int Neighbor() const
Definition: EMTFHit.h:101
void set_zone(int bits)
Definition: EMTFHitExtra.h:55
void set_subsector(int bits)
Definition: EMTFHit.h:68
float Theta_loc() const
Definition: EMTFHitExtra.h:82
void set_bend(int bits)
Definition: EMTFHit.h:82
int CSC_ID() const
Definition: EMTFHit.h:98
void set_roll(int bits)
Definition: EMTFHit.h:71