-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DataFormat for the Phase2 version of DT trigger primitives in the…
… phi view
- Loading branch information
Carlo Battilana
committed
Apr 29, 2019
1 parent
1fef057
commit 8b338c5
Showing
6 changed files
with
311 additions
and
0 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
DataFormats/L1DTTrackFinder/interface/L1Phase2MuDTPhContainer.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
//------------------------------------------------- | ||
// | ||
// Class L1Phase2MuDTPhContainer | ||
// | ||
// Description: trigger primtive data for the | ||
// muon barrel Phase2 trigger | ||
// | ||
// | ||
// Author List: Federica Primavera Bologna INFN | ||
// | ||
// | ||
//-------------------------------------------------- | ||
#ifndef L1Phase2MuDTPhContainer_H | ||
#define L1Phase2MuDTPhContainer_H | ||
|
||
//------------------------------------ | ||
// Collaborating Class Declarations -- | ||
//------------------------------------ | ||
#include "DataFormats/L1DTTrackFinder/interface/L1Phase2MuDTPhDigi.h" | ||
|
||
//---------------------- | ||
// Base Class Headers -- | ||
//---------------------- | ||
#include <vector> | ||
|
||
//--------------- | ||
// C++ Headers -- | ||
//--------------- | ||
|
||
// --------------------- | ||
// -- Class Interface -- | ||
// --------------------- | ||
|
||
|
||
class L1Phase2MuDTPhContainer { | ||
|
||
public: | ||
|
||
typedef std::vector<L1Phase2MuDTPhDigi> Segment_Container; | ||
typedef Segment_Container::const_iterator Segment_iterator; | ||
|
||
// Constructor | ||
L1Phase2MuDTPhContainer(); | ||
|
||
void setContainer(const Segment_Container& inputSegments); | ||
|
||
Segment_Container const* getContainer() const; | ||
|
||
|
||
private: | ||
|
||
Segment_Container m_segments; | ||
|
||
}; | ||
|
||
#endif | ||
|
83 changes: 83 additions & 0 deletions
83
DataFormats/L1DTTrackFinder/interface/L1Phase2MuDTPhDigi.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
//------------------------------------------------- | ||
// | ||
// Class L1Phase2MuDTPhDigi | ||
// | ||
// Description: trigger primtive data for the | ||
// muon barrel Phase2 trigger | ||
// | ||
// | ||
// Author List: Federica Primavera Bologna INFN | ||
// | ||
// | ||
//-------------------------------------------------- | ||
#ifndef L1Phase2MuDTPhDigi_H | ||
#define L1Phase2MuDTPhDigi_H | ||
|
||
//------------------------------------ | ||
// Collaborating Class Declarations -- | ||
//------------------------------------ | ||
|
||
|
||
//---------------------- | ||
// Base Class Headers -- | ||
//---------------------- | ||
|
||
|
||
//--------------- | ||
// C++ Headers -- | ||
//--------------- | ||
|
||
|
||
// --------------------- | ||
// -- Class Interface -- | ||
// --------------------- | ||
|
||
class L1Phase2MuDTPhDigi | ||
{ | ||
|
||
public: | ||
|
||
// Constructors | ||
L1Phase2MuDTPhDigi(); | ||
|
||
L1Phase2MuDTPhDigi( int bx, int wh, int sc, int st, int phi, int phib, | ||
int qual, int idx, int t0, int chi2, int rpc=-10); | ||
|
||
// Operations | ||
int bxNum() const; | ||
|
||
int whNum() const; | ||
int scNum() const; | ||
int stNum() const; | ||
|
||
int phi() const; | ||
int phiBend() const; | ||
|
||
int quality() const; | ||
int index() const; | ||
|
||
int t0() const; | ||
int chi2() const; | ||
|
||
int rpcFlag() const; | ||
|
||
|
||
private: | ||
|
||
int m_bx; | ||
int m_wheel; | ||
int m_sector; | ||
int m_station; | ||
int m_phiAngle; | ||
int m_phiBending; | ||
|
||
int m_qualityCode; | ||
int m_index; | ||
|
||
int m_t0; | ||
int m_chi2; | ||
|
||
int m_rpcFlag; | ||
}; | ||
|
||
#endif |
48 changes: 48 additions & 0 deletions
48
DataFormats/L1DTTrackFinder/src/L1Phase2MuDTPhContainer.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
//------------------------------------------------- | ||
// | ||
// Class L1MuDTChambContainer | ||
// | ||
// Description: trigger primtive data for the | ||
// muon barrel Phase2 trigger | ||
// | ||
// | ||
// Author List: Federica Primavera Bologna INFN | ||
// | ||
// | ||
//-------------------------------------------------- | ||
|
||
//----------------------- | ||
// This Class's Header -- | ||
//----------------------- | ||
#include "DataFormats/L1DTTrackFinder/interface/L1Phase2MuDTPhContainer.h" | ||
|
||
//------------------------------- | ||
// Collaborating Class Headers -- | ||
//------------------------------- | ||
|
||
|
||
//--------------- | ||
// C++ Headers -- | ||
//--------------- | ||
|
||
//------------------- | ||
// Initializations -- | ||
//------------------- | ||
|
||
|
||
//---------------- | ||
// Constructors -- | ||
//---------------- | ||
L1Phase2MuDTPhContainer::L1Phase2MuDTPhContainer() {} | ||
|
||
//-------------- | ||
// Operations -- | ||
//-------------- | ||
void L1Phase2MuDTPhContainer::setContainer(const Segment_Container& inputSegments) { | ||
|
||
m_segments = inputSegments; | ||
} | ||
|
||
L1Phase2MuDTPhContainer::Segment_Container const* L1Phase2MuDTPhContainer::getContainer() const { | ||
return &m_segments; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
//------------------------------------------------- | ||
// | ||
// Class L1MuDTChambPhDigi | ||
// | ||
// Description: trigger primtive data for the | ||
// muon barrel Phase2 trigger | ||
// | ||
// | ||
// Author List: Federica Primavera Bologna INFN | ||
// | ||
// | ||
//-------------------------------------------------- | ||
|
||
//----------------------- | ||
// This Class's Header -- | ||
//----------------------- | ||
#include "DataFormats/L1DTTrackFinder/interface/L1Phase2MuDTPhDigi.h" | ||
|
||
//------------------------------- | ||
// Collaborating Class Headers -- | ||
//------------------------------- | ||
|
||
|
||
//--------------- | ||
// C++ Headers -- | ||
//--------------- | ||
|
||
//------------------- | ||
// Initializations -- | ||
//------------------- | ||
|
||
|
||
//---------------- | ||
// Constructors -- | ||
//---------------- | ||
L1Phase2MuDTPhDigi::L1Phase2MuDTPhDigi() : | ||
m_bx(-100), m_wheel(0), m_sector(0), m_station(0), m_phiAngle(0), m_phiBending(0), | ||
m_qualityCode(-1), m_index(0), m_t0(0), m_chi2(0), m_rpcFlag(-10) | ||
{ | ||
|
||
} | ||
|
||
|
||
L1Phase2MuDTPhDigi::L1Phase2MuDTPhDigi( int bx, int wh, int sc, int st, int phi, int phib, | ||
int qual, int idx, int t0, int chi2, int rpc) : | ||
m_bx(bx), m_wheel(wh), m_sector(sc), m_station(st), m_phiAngle(phi), m_phiBending(phib), | ||
m_qualityCode(qual), m_index(idx), m_t0(t0), m_chi2(chi2), m_rpcFlag(rpc) | ||
{ | ||
|
||
} | ||
|
||
|
||
//-------------- | ||
// Operations -- | ||
//-------------- | ||
int L1Phase2MuDTPhDigi::bxNum() const | ||
{ | ||
return m_bx; | ||
} | ||
|
||
int L1Phase2MuDTPhDigi::whNum() const | ||
{ | ||
return m_wheel; | ||
} | ||
|
||
int L1Phase2MuDTPhDigi::scNum() const | ||
{ | ||
return m_sector; | ||
} | ||
|
||
int L1Phase2MuDTPhDigi::stNum() const | ||
{ | ||
return m_station; | ||
} | ||
|
||
int L1Phase2MuDTPhDigi::phi() const | ||
{ | ||
return m_phiAngle; | ||
} | ||
|
||
int L1Phase2MuDTPhDigi::phiBend() const | ||
{ | ||
return m_phiBending; | ||
} | ||
|
||
int L1Phase2MuDTPhDigi::quality() const | ||
{ | ||
return m_qualityCode; | ||
} | ||
|
||
int L1Phase2MuDTPhDigi::index() const | ||
{ | ||
return m_index; | ||
} | ||
|
||
int L1Phase2MuDTPhDigi::t0() const | ||
{ | ||
return m_t0; | ||
} | ||
|
||
int L1Phase2MuDTPhDigi::chi2() const | ||
{ | ||
return m_chi2; | ||
} | ||
|
||
int L1Phase2MuDTPhDigi::rpcFlag() const | ||
{ | ||
return m_rpcFlag; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters