-
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.
- Loading branch information
Sunanda
committed
Dec 23, 2020
1 parent
3dd5257
commit a845c48
Showing
7 changed files
with
71 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,32 @@ | ||
#include "Geometry/HGCalCommonData/interface/HGCalProperty.h" | ||
|
||
int32_t HGCalProperty::waferProperty(const int32_t thick, const int32_t part, const int32_t orient) { | ||
return (((thick % HGCalProperty::kHGCalFactor) * HGCalProperty::kHGCalOffsetThick) + ((part % HGCalProperty::kHGCalFactor) * HGCalProperty::kHGCalOffsetPartial) + | ||
return (((thick % HGCalProperty::kHGCalFactor) * HGCalProperty::kHGCalOffsetThick) + | ||
((part % HGCalProperty::kHGCalFactor) * HGCalProperty::kHGCalOffsetPartial) + | ||
((orient % HGCalProperty::kHGCalFactor) * HGCalProperty::kHGCalOffsetOrient)); | ||
} | ||
|
||
int32_t HGCalProperty::waferThick(const int32_t property) { return ((property / HGCalProperty::kHGCalOffsetThick) % HGCalProperty::kHGCalFactor); } | ||
int32_t HGCalProperty::waferThick(const int32_t property) { | ||
return ((property / HGCalProperty::kHGCalOffsetThick) % HGCalProperty::kHGCalFactor); | ||
} | ||
|
||
int32_t HGCalProperty::waferPartial(const int32_t property) { | ||
return ((property / HGCalProperty::kHGCalOffsetPartial) % HGCalProperty::kHGCalFactor); | ||
} | ||
|
||
int32_t HGCalProperty::waferOrient(const int32_t property) { return ((property / HGCalProperty::kHGCalOffsetOrient) % HGCalProperty::kHGCalFactor); } | ||
int32_t HGCalProperty::waferOrient(const int32_t property) { | ||
return ((property / HGCalProperty::kHGCalOffsetOrient) % HGCalProperty::kHGCalFactor); | ||
} | ||
|
||
int32_t HGCalProperty::tileProperty(const int32_t type, const int32_t sipm) { | ||
return (((type % HGCalProperty::kHGCalFactor) * HGCalProperty::kHGCalOffsetType) + ((sipm % HGCalProperty::kHGCalFactor) * HGCalProperty::kHGCalOffsetSiPM)); | ||
return (((type % HGCalProperty::kHGCalFactor) * HGCalProperty::kHGCalOffsetType) + | ||
((sipm % HGCalProperty::kHGCalFactor) * HGCalProperty::kHGCalOffsetSiPM)); | ||
} | ||
|
||
int32_t HGCalProperty::tileType(const int32_t property) { return ((property / HGCalProperty::kHGCalOffsetType) % HGCalProperty::kHGCalFactor); } | ||
int32_t HGCalProperty::tileType(const int32_t property) { | ||
return ((property / HGCalProperty::kHGCalOffsetType) % HGCalProperty::kHGCalFactor); | ||
} | ||
|
||
int32_t HGCalProperty::tileSiPM(const int32_t property) { return ((property / HGCalProperty::kHGCalOffsetSiPM) % HGCalProperty::kHGCalFactor); } | ||
int32_t HGCalProperty::tileSiPM(const int32_t property) { | ||
return ((property / HGCalProperty::kHGCalOffsetSiPM) % HGCalProperty::kHGCalFactor); | ||
} |
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