Skip to content

Commit

Permalink
Add int to handle superlayer information
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlo Battilana committed May 9, 2019
1 parent 8b338c5 commit 14c8585
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
5 changes: 4 additions & 1 deletion DataFormats/L1DTTrackFinder/interface/L1Phase2MuDTPhDigi.h
Expand Up @@ -40,7 +40,7 @@ class L1Phase2MuDTPhDigi
// Constructors
L1Phase2MuDTPhDigi();

L1Phase2MuDTPhDigi( int bx, int wh, int sc, int st, int phi, int phib,
L1Phase2MuDTPhDigi( int bx, int wh, int sc, int st, int sl, int phi, int phib,
int qual, int idx, int t0, int chi2, int rpc=-10);

// Operations
Expand All @@ -49,6 +49,7 @@ class L1Phase2MuDTPhDigi
int whNum() const;
int scNum() const;
int stNum() const;
int slNum() const;

int phi() const;
int phiBend() const;
Expand All @@ -68,6 +69,8 @@ class L1Phase2MuDTPhDigi
int m_wheel;
int m_sector;
int m_station;
int m_superlayer;

int m_phiAngle;
int m_phiBending;

Expand Down
15 changes: 10 additions & 5 deletions DataFormats/L1DTTrackFinder/src/L1Phase2MuDTPhDigi.cc
Expand Up @@ -34,17 +34,17 @@
// 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)
m_bx(-100), m_wheel(0), m_sector(0), m_station(0), m_superlayer(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,
L1Phase2MuDTPhDigi::L1Phase2MuDTPhDigi( int bx, int wh, int sc, int st, int sl, 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)
m_bx(bx), m_wheel(wh), m_sector(sc), m_station(st), m_superlayer(sl), m_phiAngle(phi),
m_phiBending(phib), m_qualityCode(qual), m_index(idx), m_t0(t0), m_chi2(chi2), m_rpcFlag(rpc)
{

}
Expand Down Expand Up @@ -73,6 +73,11 @@ int L1Phase2MuDTPhDigi::stNum() const
return m_station;
}

int L1Phase2MuDTPhDigi::slNum() const
{
return m_superlayer;
}

int L1Phase2MuDTPhDigi::phi() const
{
return m_phiAngle;
Expand Down
2 changes: 1 addition & 1 deletion DataFormats/L1DTTrackFinder/src/classes_def.xml
Expand Up @@ -14,7 +14,7 @@
</class>

<class name="L1Phase2MuDTPhDigi" ClassVersion="3">
<version ClassVersion="3" checksum="851692670"/>
<version ClassVersion="3" checksum="1236020577"/>
</class>

<class name="std::vector<L1MuDTChambPhDigi>"/>
Expand Down

0 comments on commit 14c8585

Please sign in to comment.