5#ifndef SRC_INDETRAWDATAFAKECREATOR_H
6# define SRC_INDETRAWDATAFAKECREATOR_H
35#include "GaudiKernel/MsgStream.h"
87 log << MSG::VERBOSE <<
"hash, id1, id2: "
88 << MSG::hex << (
unsigned int)hashId << MSG::dec <<
" "
89 << MSG::hex << waferId << MSG::dec <<
" "
90 << MSG::hex << pixelId->
wafer_id(hashId) << MSG::dec <<
" "
97 log << MSG::VERBOSE <<
"phi max, eta max, dphi, deta: "
108 for (
int k = 0; k < 4; ++k,
eta += deltaEta) {
111 const unsigned int mo = (1 & 0x1F) << 27;
112 const unsigned int fe2 =(1 & 0xF) << 21;
113 const unsigned int row2=(1 & 0xFF) << 13;
114 const unsigned int col2=(1 & 0x1F) << 8;
115 const unsigned int tot =(5 & 0xFF);
116 unsigned int pixelWord = (mo|fe2|row2|col2|tot);
123 log << MSG::ERROR <<
"Could not create Pixel1RawData object !"
127 log << MSG::VERBOSE <<
"Created RDO: "
146 rdocoll->setIdentifier(waferId);
147 const int maxPossibleStrip = sctId->
strip_max(waferId);
148 if (maxPossibleStrip<0) {
150 log << MSG::WARNING <<
"waferId unknown in InDetRawDataFakeCreator::createSCT_RawDataColl"<<
endmsg;
153 int deltaStrip = maxPossibleStrip/6;
154 log << MSG::VERBOSE <<
"strip max, dstrip: "
159 int strip = deltaStrip;
161 for (
int j = 0; j < 4; ++j,
strip += deltaStrip) {
164 const unsigned int str =(
strip) << 16;
165 const unsigned int group = 4;
166 unsigned int word= (group|
str);
170 rdocoll->push_back(rdo);
173 log << MSG::ERROR <<
"Could not create SCT1_RawData object !"
177 log << MSG::VERBOSE <<
"Created RDO: "
201 int deltaStraw = trtId->
straw_max(strLayId)/6;
202 log << MSG::VERBOSE <<
"straw max, dstraw: "
207 int straw = deltaStraw;
209 for (
int j = 0; j < 4; ++j, straw += deltaStraw) {
212 unsigned int trtWord= (0xFFFFFFFF);
219 log << MSG::ERROR <<
"Could not create TRT_LoLumRawData object !"
223 log << MSG::VERBOSE <<
"Created RDO: "
Scalar eta() const
pseudorapidity method
Scalar deltaPhi(const MatrixBase< Derived > &vec) const
Scalar phi() const
phi method
This is an Identifier helper class for the Pixel subdetector.
This is an Identifier helper class for the SCT subdetector.
This is an Identifier helper class for the TRT subdetector.
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
value_type push_back(value_type pElem)
Add an element to the end of the collection.
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
This is a "hash" representation of an Identifier.
void setIdentifier(Identifier id)
const InDetRawDataCollection< PixelRDORawData > * createPixelRawDataColl(IdentifierHash hashId, const PixelID *pixelId, MsgStream &log)
Create PixelRawDataCollection.
const InDetRawDataCollection< SCT_RDORawData > * createSCT_RawDataColl(IdentifierHash hashId, const SCT_ID *sctId, MsgStream &log)
Create SCT_RawDataCollection.
InDetRawDataFakeCreator()
Default constructor.
const InDetRawDataCollection< TRT_RDORawData > * createTRT_RawDataColl(IdentifierHash hashId, const TRT_ID *trtId, MsgStream &log)
Create TRT_RawDataCollection.
virtual Identifier identify() const override final
unsigned int getWord() const
This is an Identifier helper class for the Pixel subdetector.
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
Identifier pixel_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int phi_index, int eta_index) const
For an individual pixel.
int eta_index_max(const Identifier &id) const
int phi_index_max(const Identifier &id) const
IdContext wafer_context() const
This is an Identifier helper class for the SCT subdetector.
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side) const
For a single side of module.
int strip_max(const Identifier &id) const
IdContext wafer_context() const
Identifier strip_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side, int strip) const
For an individual strip.
This is an Identifier helper class for the TRT subdetector.
Identifier layer_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer) const
For an individual straw layer.
int straw_max(const Identifier &id) const
Identifier straw_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer, int straw) const
Three ways of getting id for a single straw:
IdContext straw_layer_context() const
straw_layer id