|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef SRC_INDETRAWDATAFAKECREATOR_H
6 # define SRC_INDETRAWDATAFAKECREATOR_H
36 #include "GaudiKernel/MsgStream.h"
92 << MSG::hex << (
unsigned int)hashId << MSG::dec <<
" "
93 << MSG::hex << waferId << MSG::dec <<
" "
94 << MSG::hex << pixelId->
wafer_id(hashId) << MSG::dec <<
" "
115 const unsigned int mo = (1 & 0x1F) << 27;
116 const unsigned int fe2 =(1 & 0xF) << 21;
117 const unsigned int row2=(1 & 0xFF) << 13;
118 const unsigned int col2=(1 & 0x1F) << 8;
119 const unsigned int tot =(5 & 0xFF);
120 unsigned int pixelWord = (mo|fe2|row2|col2|tot);
127 log << MSG::ERROR <<
"Could not create Pixel1RawData object !"
155 int deltaStrip = sctId->
strip_max(waferId)/6;
161 int strip = deltaStrip;
163 for (
int j = 0; j < 4; ++j,
strip += deltaStrip) {
166 const unsigned int str =(
strip) << 16;
167 const unsigned int group = 4;
175 log << MSG::ERROR <<
"Could not create SCT1_RawData object !"
203 int deltaStraw = trtId->
straw_max(strLayId)/6;
209 int straw = deltaStraw;
211 for (
int j = 0; j < 4; ++j,
straw += deltaStraw) {
214 unsigned int trtWord= (0xFFFFFFFF);
221 log << MSG::ERROR <<
"Could not create TRT_LoLumRawData object !"
234 #endif // SRC_INDETRAWDATAFAKECREATOR_H
This is an Identifier helper class for the Pixel subdetector. This class is a factory for creating co...
Class which encapsulates the creation of an InDetRawDataCollection.
Identifier layer_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer) const
For an individual straw layer.
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
int straw_max(const Identifier &id) const
void setIdentifier(Identifier id)
Scalar phi() const
phi method
Scalar eta() const
pseudorapidity method
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap setEtaBin setIsTgcFailure setDeltaPt deltaPhi
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
InDetRawDataFakeCreator()
Default constructor.
int phi_index_max(const Identifier &id) const
double deltaEta(const I4Momentum &p1, const I4Momentum &p2)
Computes efficiently .
int eta_index_max(const Identifier &id) const
IdContext straw_layer_context(void) const
straw_layer id
const InDetRawDataCollection< SCT_RDORawData > * createSCT_RawDataColl(IdentifierHash hashId, const SCT_ID *sctId, MsgStream &log)
Create SCT_RawDataCollection.
const InDetRawDataCollection< TRT_RDORawData > * createTRT_RawDataColl(IdentifierHash hashId, const TRT_ID *trtId, MsgStream &log)
Create TRT_RawDataCollection.
IdContext wafer_context(void) const
value_type push_back(value_type pElem)
Add an element to the end of the collection.
unsigned int getWord() const
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
IdContext wafer_context(void) const
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 strip_max(const Identifier &id) const
virtual Identifier identify() const override final
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side) const
For a single side of module.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
const InDetRawDataCollection< PixelRDORawData > * createPixelRawDataColl(IdentifierHash hashId, const PixelID *pixelId, MsgStream &log)
Create PixelRawDataCollection.
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:
Identifier strip_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side, int strip) const
For an individual strip.