Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2053 from bsunanda/Phase2HE_3
Geometry fixes -- Phase2 he 3
- Loading branch information
Showing
317 changed files
with
38,269 additions
and
4,262 deletions.
There are no files selected for viewing
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
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
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
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
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,6 @@ | ||
<use name="FWCore/Utilities"/> | ||
<use name="boost"/> | ||
<use name="rootrflx"/> | ||
<export> | ||
<lib name="1"/> | ||
</export> |
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,43 @@ | ||
#ifndef DataFormats_ForwardDetId_CFCDetId_H | ||
#define DataFormats_ForwardDetId_CFCDetId_H 1 | ||
|
||
#include <iosfwd> | ||
#include "DataFormats/DetId/interface/DetId.h" | ||
#include "DataFormats/ForwardDetId/interface/ForwardSubdetector.h" | ||
|
||
|
||
class CFCDetId : public DetId { | ||
public: | ||
/** Create a null cellid*/ | ||
CFCDetId(); | ||
/** Create cellid from raw id (0=invalid tower id) */ | ||
CFCDetId(uint32_t rawid); | ||
/** Constructor from subdetector, signed ieta,iphi, depth and type */ | ||
CFCDetId(ForwardSubdetector subdet, int ieta, int iphi, int depth, int type); | ||
/** Constructor from a generic cell id */ | ||
CFCDetId(const DetId& id); | ||
/** Assignment from a generic cell id */ | ||
CFCDetId& operator=(const DetId& id); | ||
|
||
/// get the subdetector | ||
ForwardSubdetector subdet() const { return (ForwardSubdetector)(subdetId()); } | ||
/// get the z-side of the cell (1/-1) | ||
int zside() const { return (id_&0x1000000)?(1):(-1); } | ||
/// get the absolute value of the cell ieta | ||
int ietaAbs() const { return (id_>>10)&0x3FF; } | ||
/// get the cell ieta | ||
int ieta() const { return zside()*ietaAbs(); } | ||
/// get the cell iphi | ||
int iphi() const { return id_&0x3FF; } | ||
/// get the tower depth | ||
int depth() const { return (id_>>21)&0x7; } | ||
/// get the fibre type | ||
int type() const { return (id_>>20)&0x1; } | ||
|
||
static const CFCDetId Undefined; | ||
|
||
}; | ||
|
||
std::ostream& operator<<(std::ostream&,const CFCDetId& id); | ||
|
||
#endif |
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,6 @@ | ||
#ifndef DataFormats_ForwardDetId_ForwardSubDetector_H | ||
#define DataFormats_ForwardDetId_ForwardSubDetector_H 1 | ||
|
||
enum ForwardSubdetector { ForwardEmpty=0, ForwardCFC=1, ForwardBHM=2, HGCEE=3, HGCHE=4}; | ||
|
||
#endif |
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,42 @@ | ||
#ifndef DataFormats_ForwardDetId_HGCEEDetId_H | ||
#define DataFormats_ForwardDetId_HGCEEDetId_H 1 | ||
|
||
#include <iosfwd> | ||
#include "DataFormats/DetId/interface/DetId.h" | ||
#include "DataFormats/ForwardDetId/interface/ForwardSubdetector.h" | ||
|
||
|
||
class HGCEEDetId : public DetId { | ||
public: | ||
enum { Subdet=HGCEE}; | ||
/** Create a null cellid*/ | ||
HGCEEDetId(); | ||
/** Create cellid from raw id (0=invalid tower id) */ | ||
HGCEEDetId(uint32_t rawid); | ||
/** Constructor from subdetector, zplus, layer, module, cell numbers */ | ||
HGCEEDetId(ForwardSubdetector subdet, int zp, int lay, int mod, | ||
int cellx, int celly); | ||
/** Constructor from a generic cell id */ | ||
HGCEEDetId(const DetId& id); | ||
/** Assignment from a generic cell id */ | ||
HGCEEDetId& operator=(const DetId& id); | ||
|
||
/// get the subdetector | ||
ForwardSubdetector subdet() const { return HGCEE; } | ||
/// get the z-side of the cell (1/-1) | ||
int zside() const { return (id_&0x1000000)?(1):(-1); } | ||
/// get the absolute value of the cell #'s in x and y | ||
int cellX() const { return (id_>>6)&0x3F; } | ||
int cellY() const { return id_&0x3F; } | ||
/// get the module # | ||
int module() const { return (id_>>12)&0x3F; } | ||
/// get the layer # | ||
int layer() const { return (id_>>18)&0x3F; } | ||
|
||
static const HGCEEDetId Undefined; | ||
|
||
}; | ||
|
||
std::ostream& operator<<(std::ostream&,const HGCEEDetId& id); | ||
|
||
#endif |
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,43 @@ | ||
#ifndef DataFormats_ForwardDetId_HGCHEDetId_H | ||
#define DataFormats_ForwardDetId_HGCHEDetId_H 1 | ||
|
||
#include <iosfwd> | ||
#include "DataFormats/DetId/interface/DetId.h" | ||
#include "DataFormats/ForwardDetId/interface/ForwardSubdetector.h" | ||
|
||
|
||
class HGCHEDetId : public DetId { | ||
public: | ||
enum { Subdet=HGCHE}; | ||
/** Create a null cellid*/ | ||
HGCHEDetId(); | ||
/** Create cellid from raw id (0=invalid tower id) */ | ||
HGCHEDetId(uint32_t rawid); | ||
/** Constructor from subdetector, zplus, layer, module, cell numbers */ | ||
HGCHEDetId(ForwardSubdetector subdet, int zp, int lay, int mod, | ||
int cellx, int celly); | ||
/** Constructor from a generic cell id */ | ||
HGCHEDetId(const DetId& id); | ||
/** Assignment from a generic cell id */ | ||
HGCHEDetId& operator=(const DetId& id); | ||
|
||
/// get the subdetector | ||
ForwardSubdetector subdet() const { return HGCHE; } | ||
/// get the z-side of the cell (1/-1) | ||
int zside() const { return (id_&0x1000000)?(1):(-1); } | ||
/// get the absolute value of the cell #'s in x and y | ||
int cellX() const { return (id_>>6)&0x3F; } | ||
int cellY() const { return id_&0x3F; } | ||
/// get the module # | ||
int module() const { return (id_>>12)&0x3F; } | ||
/// get the layer # | ||
int layer() const { return (id_>>18)&0x3F; } | ||
|
||
static const HGCHEDetId Undefined; | ||
|
||
}; | ||
|
||
std::ostream& operator<<(std::ostream&,const HGCHEDetId& id); | ||
|
||
#endif | ||
|
Oops, something went wrong.