Skip to content

Commit

Permalink
number the layer
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincenzo Innocente committed Feb 21, 2013
1 parent 96b967d commit fc6a0c2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion interface/DetLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,18 @@ class DetLayer : public virtual GeometricSearchDet {
typedef GeomDetEnumerators::SubDetector SubDetector;
typedef GeomDetEnumerators::Location Location;

DetLayer(bool ibar) : theNavigableLayer(0), iAmBarrel(ibar) {}
DetLayer(bool ibar) : theNavigableLayer(0), theSeqNum(-1), iAmBarrel(ibar) {}

virtual ~DetLayer();

// a detLayer can be either barrel or forward
bool isBarrel() const { return iAmBarrel;}
bool isForward() const { return !isBarrel();}

// sequential number to be used in "maps"
int seqNum() const { return theSeqNum;}
void setSeqNum(int sq) { theSeqNum=sq;}

// Extension of the interface

/// The type of detector (PixelBarrel, PixelEndcap, TIB, TOB, TID, TEC, CSC, DT, RPCBarrel, RPCEndcap)
Expand Down Expand Up @@ -71,6 +75,7 @@ class DetLayer : public virtual GeometricSearchDet {

private:
NavigableLayer* theNavigableLayer;
int theSeqNum;
bool iAmBarrel;
};

Expand Down

0 comments on commit fc6a0c2

Please sign in to comment.