12 #include "StMuDSTMaker/COMMON/StMuEmcUtil.h"
15 #include "StEEmcShowerShape.h"
21 assert(util.getEndcapBin(7, hit.
getId(), module, eta, sub) == 0);
22 out <<
"sector = " << module-1 <<
", strip = " << eta-1
29 out <<
"run = " << shape.runNumber()
30 <<
", event = " << shape.eventNumber()
31 <<
", energy = " << shape.energy()
32 <<
", sector = " << shape.sector()
34 out <<
"U-plane: nStrips = " << shape.numberOfUstrips() <<
'\n'
35 <<
"high strip id: " << shape.highUstripId() <<
'\n';
36 for (
int i = 0; i < shape.numberOfUstrips(); ++i) {
40 out <<
"V-plane: nStrips = " << shape.numberOfVstrips() <<
'\n'
41 <<
"high strip id: " << shape.highVstripId() <<
'\n';
42 for (
int i = 0; i < shape.numberOfVstrips(); ++i) {
51 StEEmcShowerShape::StEEmcShowerShape()
53 mUstrips =
new TClonesArray(
"StMuEmcHit");
54 mVstrips =
new TClonesArray(
"StMuEmcHit");
59 if (
this == &shape)
return;
61 setRunNumber(shape.runNumber());
62 setEventNumber(shape.eventNumber());
63 setEnergy(shape.energy());
64 setSector(shape.sector());
65 setHighUstripId(shape.highUstripId());
66 setHighVstripId(shape.highVstripId());
67 setPosition(shape.position());
69 mUstrips =
new TClonesArray(
"StMuEmcHit");
70 mVstrips =
new TClonesArray(
"StMuEmcHit");
72 for (
int i = 0; i < shape.numberOfUstrips(); ++i) addUstrip(shape.uStrip(i));
73 for (
int i = 0; i < shape.numberOfVstrips(); ++i) addVstrip(shape.vStrip(i));
76 StEEmcShowerShape::~StEEmcShowerShape()
int getId() const
Return Module number.
float getEnergy() const
Return Hit energy.
int getAdc() const
Return ADC value.