6 #include "FairMQLogger.h"
23 std::vector<Double_t> timeValues;
24 std::vector<Double_t> timeValueErrors;
26 Int_t
count = 0, mcindex=-1;
29 LOG(INFO) <<
"GetHit:";
30 if (pixelArray.size() == 1){
49 LOG(INFO) <<
"SingleDigi: " << pixelArray[0];
50 LOG(INFO) <<
"TimeStamp: " << pixelArray[0].GetCharge() <<
" " << pixelArray[0].GetTimeStamp();
51 LOG(INFO) <<
"TimeStamp: " << hit.GetTimeStamp();
52 LOG(INFO) <<
"SingleDigi: " << pixelArray[0];
53 timeValues.push_back(pixelArray[0].GetTimeStamp());
54 timeValueErrors.push_back(pixelArray[0].GetTimeStampError());
58 LOG(INFO) <<
"Multiple Hits!";
59 for (UInt_t
i = 0;
i < pixelArray.size();
i++){
62 LOG(INFO) <<
i <<
" : Digi : " << pixelArray[
i];
63 LOG(INFO) <<
i <<
" : Digi : " << pixelArray[
i].GetTimeStamp();
64 LOG(INFO) <<
i <<
" : Digi : " << hit.GetTimeStamp();
85 LOG(INFO) <<
"Col: " << col <<
" Row: " <<
row << std::endl;
108 LOG(INFO) <<
"TimeCalculation:";
109 for (UInt_t
t = 0;
t < timeValues.size();
t++){
110 LOG(INFO) <<
t <<
" : " << timeValues[
t];
111 meanTime += timeValues[
t] / (timeValueErrors[
t] * timeValueErrors[
t]);
112 sumVar += 1/(timeValueErrors[
t] * timeValueErrors[
t]);
118 LOG(INFO) <<
"MeanTime: " << meanTime;
132 TGeoHMatrix transMat;
136 vec[2] = sensorID * 6 + 10;
142 TVector3 result(0.2/2, 0.32/2,0.1/2);
PndSdsHit GetHit(std::vector< PndSdsDigiTopix4 > pixelArray)
Main function of class to calculate the PndSdsHit out of the given PndSdsDigis.
Data class to store the digi output of a pixel module.
virtual TGeoHMatrix GetTransformation(Int_t sensorID)
virtual TVector3 GetSensorDimensions(Int_t sensorID)