PndSdsChargedWeightedPixelMapping: Gets a vector of DigiHits and calculates the cluster center weighted with the charge params: Number of columns in FE, Number of rows in FE, Pixel dimension in x, Pixel dimension in y params are taken from parameter database.
More...
#include <PndMvdTopixHitProducer.h>
PndSdsChargedWeightedPixelMapping: Gets a vector of DigiHits and calculates the cluster center weighted with the charge params: Number of columns in FE, Number of rows in FE, Pixel dimension in x, Pixel dimension in y params are taken from parameter database.
PndMvdTopixHitProducer.h
- Author
- T.Stockmanns t.sto.nosp@m.ckma.nosp@m.nns@f.nosp@m.z-ju.nosp@m.elich.nosp@m..de
Definition at line 17 of file PndMvdTopixHitProducer.h.
PndMvdTopixHitProducer::PndMvdTopixHitProducer |
( |
| ) |
|
PndMvdTopixHitProducer::PndMvdTopixHitProducer |
( |
double |
dimX, |
|
|
double |
dimY, |
|
|
int |
maxcol, |
|
|
int |
maxrow |
|
) |
| |
virtual PndMvdTopixHitProducer::~PndMvdTopixHitProducer |
( |
| ) |
|
|
inlinevirtual |
Main function of class to calculate the PndSdsHit out of the given PndSdsDigis.
Definition at line 18 of file PndMvdTopixHitProducer.cxx.
References col, count, Double_t, fVerbose, hit(), i, row, and t.
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;
Data class to store the digi output of a pixel module.
int hit(Int_t nEvents=0, TString inFile="sim.root", TString parFile="par.root", TString inDigi="digi.root", TString outFile="hit.root", Int_t timeBased=0)
TVector3 PndMvdTopixHitProducer::GetSensorDimensions |
( |
Int_t |
sensorID | ) |
|
|
privatevirtual |
TGeoHMatrix PndMvdTopixHitProducer::GetTransformation |
( |
Int_t |
sensorID | ) |
|
|
privatevirtual |
Int_t PndMvdTopixHitProducer::fcols |
|
protected |
Int_t PndMvdTopixHitProducer::frows |
|
protected |
Int_t PndMvdTopixHitProducer::fVerbose |
|
protected |
The documentation for this class was generated from the following files: