CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DTTSTheta.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
9 //
10 //--------------------------------------------------
11 #ifndef DT_TS_THETA_H
12 #define DT_TS_THETA_H
13 
14 //------------------------------------
15 // Collaborating Class Declarations --
16 //------------------------------------
17 class DTBtiCard;
18 class DTBtiTrigData;
19 class DTTrigGeom;
20 
21 //----------------------
22 // Base Class Headers --
23 //----------------------
31 
32 //---------------
33 // C++ Headers --
34 //---------------
35 #include <vector>
36 
37 // ---------------------
38 // -- Class Interface --
39 // ---------------------
40 
41 typedef std::vector<DTChambThSegm> DTChambThVector;
43 
44 class DTTSTheta : public DTTSThetaManager, public DTGeomSupplier {
45 public:
47  //DTTSTheta(DTTrigGeom*, DTBtiCard*, edm::ParameterSet&);
49 
51  ~DTTSTheta() override;
52 
54  inline const DTConfigTSTheta* config() const { return _config; }
55 
57  void setConfig(const DTConfigManager* conf);
58 
60  int nSegm(int step);
61 
63  const DTChambThSegm* segment(int step, unsigned n);
64 
66  int nTrig(int step);
67 
69  int nHTrig(int step);
70 
72  LocalPoint localPosition(const DTTrigData*) const override;
73 
75  LocalVector localDirection(const DTTrigData*) const override;
76 
78  void print(const DTTrigData* trig) const override;
79 
81  void reconstruct() override {
82  loadDTTSTheta();
83  runDTTSTheta();
84  }
85 
86 private:
88  void loadDTTSTheta();
89 
91  void runDTTSTheta();
92 
94  void add_btiT(int step, const DTBtiTrigData* btitrig);
95 
97  void localClear();
98 
101 
104 
105 private:
107 
109 
110  // Input data
115 };
116 
117 #endif
void reconstruct() override
Load BTIs triggers and run TSTheta algoritm.
Definition: DTTSTheta.h:81
int nHTrig(int step)
Return number of DTBtiChip fired with a HTRIG (used by DTTracoChip)
Definition: DTTSTheta.cc:229
BitArray< DTConfigTSTheta::NCELLTH > _trig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:111
void add_btiT(int step, const DTBtiTrigData *btitrig)
Add a DTBtiChip L1Trigger to the DTTSTheta.
Definition: DTTSTheta.cc:96
std::vector< DTChambThSegm > DTChambThVector
Definition: DTTSTheta.h:19
int _ntrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:113
void runDTTSTheta()
run DTTSTheta algorithm (build the mask)
Definition: DTTSTheta.cc:136
static const int NSTEPF
Definition: DTConfig.h:35
~DTTSTheta() override
Destructor.
Definition: DTTSTheta.cc:49
const DTChambThSegm * segment(int step, unsigned n)
Return the requested DTTSTheta segment (only the first)
Definition: DTTSTheta.cc:209
BitArray< DTConfigTSTheta::NCELLTH > * btiMask(int step) const
Return the BitArray of DTBtiChip fired.
Definition: DTTSTheta.cc:240
const DTConfigTSTheta * config() const
Return configuration.
Definition: DTTSTheta.h:54
int _nHtrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:114
BitArray< DTConfigTSTheta::NCELLTH > * btiQual(int step) const
Return the BitArray of DTBtiChip fired with a HTRIG.
Definition: DTTSTheta.cc:249
void localClear()
Clear.
Definition: DTTSTheta.cc:57
int nSegm(int step)
Return number of TStheta segments (just 1)
Definition: DTTSTheta.cc:199
LocalVector localDirection(const DTTrigData *) const override
Local direction in chamber of a L1Trigger-data object.
Definition: DTTSTheta.cc:264
static const int NSTEPL
Constants: first and last step to start trigger finding.
Definition: DTConfig.h:35
DTBtiCard * _bticard
Definition: DTTSTheta.h:106
void print(const DTTrigData *trig) const override
Print a L1Trigger-data object with also local and global position/direction.
Definition: DTTSTheta.cc:270
DTCache< DTChambThSegm, DTChambThVector > DTTSThetaManager
Definition: DTTSTheta.h:42
LocalPoint localPosition(const DTTrigData *) const override
Local position in chamber of a L1Trigger-data object.
Definition: DTTSTheta.cc:258
BitArray< DTConfigTSTheta::NCELLTH > _Htrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
Definition: DTTSTheta.h:112
step
Definition: StallMonitor.cc:94
void setConfig(const DTConfigManager *conf)
Set configuration.
Definition: DTTSTheta.cc:67
void loadDTTSTheta()
store DTBtiChip L1Triggers in the TST
Definition: DTTSTheta.cc:72
const DTConfigTSTheta * _config
Definition: DTTSTheta.h:108
int nTrig(int step)
Return number of DTBtiChip fired (used by DTTracoChip)
Definition: DTTSTheta.cc:218
DTTSTheta(DTTrigGeom *, DTBtiCard *)
Constructor.
Definition: DTTSTheta.cc:37