FairRoot/PandaRoot
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
PndLmdPixelClusterTask Class Reference

#include <PndLmdPixelClusterTask.h>

Inheritance diagram for PndLmdPixelClusterTask:
PndSdsPixelClusterTask PndSdsTask PndPersistencyTask

Public Member Functions

 PndLmdPixelClusterTask ()
 
virtual ~PndLmdPixelClusterTask ()
 
virtual void SetParContainers ()
 
virtual void SetBranchNames ()
 
virtual void SetClusterFinder ()
 
virtual void SetBackMapping ()
 
virtual void SetBranchNames (TString inBranchname, TString outHitBranchname, TString outClustBranchname, TString folderName)
 
void Exec (Option_t *opt)
 
void FinishEvent ()
 
InitStatus Init ()
 
 ClassDef (PndLmdPixelClusterTask, 3)
 
void SetNoiseSuppression (Bool_t val)
 
Bool_t GetNoiseSuppression () const
 
virtual void SetInBranchId ()
 
virtual InitStatus ReInit ()
 
virtual void SetClusterFinderMQ (TList *)
 
virtual void SetBackMappingMQ (TList *)
 
virtual void InitMQ (TList *tempList)
 
virtual void GetParList (TList *tempList)
 
virtual void ExecMQ (TList *inputList, TList *outputList)
 
void SetPersistency (Bool_t val=kTRUE)
 
Bool_t GetPersistency ()
 

Protected Member Functions

void Register ()
 
void Reset ()
 
void ProduceHits ()
 
virtual std::vector
< PndSdsDigiPixel
ConvertAndFilter (TClonesArray *digidata)
 convert TClonesArray into std::vector and remove corrupted data (for test beam analysis) More...
 
 ClassDef (PndSdsPixelClusterTask, 4)
 
 ClassDef (PndSdsTask, 1)
 

Protected Attributes

Bool_t fUseNoiseSuppression
 
PndSdsFEfFEModel
 
TClonesArray * fDigiArray
 
PndSdsPixelDigiParfDigiPar
 
PndSdsChargeConversionfChargeConverter
 
PndGeoHandlingfGeoH
 
TString fClustBranchName
 
TClonesArray * fClusterArray
 
TClonesArray * fHitArray
 
FairEventHeader * fEventHeader
 
BinaryFunctor * fFunctor
 
BinaryFunctor * fStartFunctor
 
Int_t fClusterType
 
Int_t fEventNr
 
PndSdsPixelClusterFinderfClusterFinder
 
PndSdsPixelBackMappingfBackMapping
 
TString fInBranchName
 
TString fOutBranchName
 
TString fFolderName
 
Int_t fInBranchId
 
Int_t fOutBranchId
 

Private Attributes

FairRun * ana
 
FairRuntimeDb * rtdb
 

Detailed Description

Definition at line 13 of file PndLmdPixelClusterTask.h.

Constructor & Destructor Documentation

PndLmdPixelClusterTask::PndLmdPixelClusterTask ( )

Default constructor

Definition at line 21 of file PndLmdPixelClusterTask.cxx.

References PndPersistencyTask::SetPersistency().

22  : PndSdsPixelClusterTask("LMD Clustertisation Task") {
23  SetPersistency(kTRUE);
24  // flagMS = true;
25 }
void SetPersistency(Bool_t val=kTRUE)
PndLmdPixelClusterTask::~PndLmdPixelClusterTask ( )
virtual

Destructor

Definition at line 29 of file PndLmdPixelClusterTask.cxx.

References PndSdsPixelClusterTask::fBackMapping, PndSdsPixelClusterTask::fClusterFinder, PndSdsPixelClusterTask::fFunctor, PndSdsPixelClusterTask::fGeoH, and PndSdsPixelClusterTask::fStartFunctor.

29  {
30  if (fBackMapping != 0)
31  delete fBackMapping;
32  if (fClusterFinder != 0)
33  delete fClusterFinder;
34  if (fFunctor != 0)
35  delete fFunctor;
36 
37  if (fStartFunctor != 0)
38  delete fStartFunctor;
39  if (fGeoH != 0)
40  delete fGeoH;
41 }
PndSdsPixelBackMapping * fBackMapping
PndSdsPixelClusterFinder * fClusterFinder

Member Function Documentation

PndLmdPixelClusterTask::ClassDef ( PndLmdPixelClusterTask  ,
 
)
PndSdsTask::ClassDef ( PndSdsTask  ,
 
)
protectedinherited
PndSdsPixelClusterTask::ClassDef ( PndSdsPixelClusterTask  ,
 
)
protectedinherited
std::vector< PndSdsDigiPixel > PndSdsPixelClusterTask::ConvertAndFilter ( TClonesArray *  digidata)
protectedvirtualinherited

convert TClonesArray into std::vector and remove corrupted data (for test beam analysis)

Reimplemented in PndMvdToPix4ClusterTask.

Definition at line 319 of file PndSdsPixelClusterTask.cxx.

Referenced by PndSdsPixelClusterTask::Exec().

320 {
321  std::vector<PndSdsDigiPixel> result;
322  for (Int_t iPoint = 0; iPoint < digidata->GetEntriesFast(); iPoint++){ // Just conversion
323  PndSdsDigiPixel myDigi = *(PndSdsDigiPixel*)(digidata->At(iPoint));
324  result.push_back(myDigi);
325  }
326  return result;
327 }
Data class to store the digi output of a pixel module.
void PndLmdPixelClusterTask::Exec ( Option_t *  opt)

Virtual method Exec

Definition at line 143 of file PndLmdPixelClusterTask.cxx.

References Double_t, PndSdsPixelClusterTask::fBackMapping, PndSdsPixelClusterTask::fClustBranchName, PndSdsPixelClusterTask::fClusterArray, PndSdsPixelClusterTask::fClusterFinder, PndSdsPixelClusterTask::fClusterType, PndSdsPixelClusterTask::fDigiArray, PndSdsPixelClusterTask::fEventNr, PndSdsPixelClusterTask::fHitArray, PndSdsTask::fInBranchId, PndSdsTask::fInBranchName, PndSdsTask::fOutBranchName, PndSdsPixelClusterTask::fStartFunctor, fVerbose, PndSdsPixelBackMapping::GetCluster(), PndSdsPixelClusterFinder::GetClusters(), PndSdsHit::GetCov(), PndSdsHit::GetPosition(), i, PndSdsHit::Print(), Print(), PndSdsHit::SetClusterIndex(), PndSdsHit::SetCov(), and sqrt().

143  {
144  // std::cout<<" fEventNr = "<< fEventNr<<std::endl;
145  // Reset output array
146  fClusterArray = FairRootManager::Instance()->GetTClonesArray(fClustBranchName);
147  if (!fClusterArray)
148  Fatal("Exec", "No ClusterArray");
149  fClusterArray->Delete();
150 
151  fHitArray = FairRootManager::Instance()->GetTClonesArray(fOutBranchName);
152  if (!fHitArray)
153  Fatal("Exec", "No HitArray");
154  fHitArray->Delete();
155 
156  std::vector<PndSdsDigiPixel> DigiPixelArray;
157  DigiPixelArray.clear();
158 
159  Double_t EventTime = FairRootManager::Instance()->GetEventTime();
160 
161  if (fVerbose > 0)
162  std::cout << "-I- PndSdsPixelClusterTask::Exec EventTime: " << EventTime << std::endl;
163 
164  // Get input array
165  if (FairRunAna::Instance()->IsTimeStamp()) {
166  fDigiArray->Clear();
167  fDigiArray = FairRootManager::Instance()->GetData(fInBranchName, fStartFunctor, EventTime + 10);
168  } else
169  fDigiArray = (TClonesArray*) FairRootManager::Instance()->GetObject(fInBranchName);
170 
171  Int_t nPoints = fDigiArray->GetEntriesFast();
172 
173  // convert from TClonesArray to a std::vector
174  for (Int_t iPoint = 0; iPoint < nPoints; iPoint++) {
175  PndSdsDigiPixel myDigi = *(PndSdsDigiPixel*) (fDigiArray->At(iPoint));
176  DigiPixelArray.push_back(myDigi);
177  myDigi.Clear();
178  }
179  // Retrieve the calculated clusters with the chosen clusterfinder
180  std::vector<std::vector<Int_t> > clusters = fClusterFinder->GetClusters(DigiPixelArray);
181  if (fVerbose > 1)
182  std::cout << " -I- PndSdsPixelClusterTask::Exec(): We have " << clusters.size()
183  << " pixel clusters" << std::endl;
184  // store the list
185  for (UInt_t i = 0; i < clusters.size(); i++) {
186  PndSdsClusterPixel* tempCluster = new ((*fClusterArray)[i]) PndSdsClusterPixel(fInBranchId,
187  clusters[i]);
188  if (FairRunAna::Instance()->IsTimeStamp()) {
189  tempCluster->ResetLinks();
190  for (UInt_t j = 0; j < clusters[i].size(); j++) {
191  PndSdsDigiPixel* tempDigi = (PndSdsDigiPixel*) fDigiArray->At(clusters[i][j]);
192  tempCluster->AddLink(FairLink(tempDigi->GetEntryNr()));
193  tempDigi->Clear();
194  }
195  }
196  }
197 
198  // do the backmapping with charge-weight
199  for (UInt_t i = 0; i < clusters.size(); i++) {
200  // if(fVerbose>2) std::cout << clusters[i].size() << " " << std::endl;
201  std::vector<PndSdsDigiPixel> clusterArray;
202  for (UInt_t j = 0; j < clusters[i].size(); j++) { // convert
203  clusterArray.push_back(DigiPixelArray[clusters[i][j]]);
204  }
205 
206  // mapping with the choosen back mapping
207  // Int_t iHits = fHitArray->GetEntriesFast(); //[R.K. 01/2017] unused
208  // variable
209  // PndSdsHit *myHit = new((*fHitArray)[iHits])
210  // PndSdsHit(fBackMapping->GetCluster(clusterArray));
211  PndSdsHit myHit = fBackMapping->GetCluster(clusterArray);
212  clusterArray.clear();
213  myHit.SetClusterIndex(fClusterType, i, 0, fEventNr);
214  TVector3 hitPos = myHit.GetPosition();
215  TMatrixD hitCov = myHit.GetCov();
216  // hitCov(0,0) = 5.29e-06; //assuming hit resolution for x-y 23 mkm
217  // hitCov(1,1) = 5.29e-06; //assuming hit resolution for x-y 23 mkm
218  hitCov(0, 0) = 2.25e-06; // assuming hit resolution for x-y 15 mkm
219  hitCov(1, 1) = 2.25e-06; // assuming hit resolution for x-y 15 mkm
220  hitCov(2, 2) = 4.28489999999999954e-08; // assuming hit resolution for z
221  // 2.07 mkm NB: isn't used in Trk
222  // rec.
223 
224  // //Add multiple scattering error ---------------
225  // if(flagMS){
226  // // TVector3 hitPos = myHit.GetPosition();
227  // TVector3
228  // hitErr(sqrt(hitCov[0][0]),sqrt(hitCov[1][1]),sqrt(hitCov[2][2]));
229  // TVector3 hitErrMSadd = AddMSErr(hitPos, hitErr);
230  // hitCov[0][0] = TMath::Power(hitErrMSadd.X(),2);
231  // hitCov[1][1] = TMath::Power(hitErrMSadd.Y(),2);
232  // hitCov[2][2] = TMath::Power(hitErrMSadd.Z(),2);
233  // }
234  // cout<<"!!!!!!!!!"<<endl;
235  // hitCov.Print();
236  // cout<<"!!!!!!!!!"<<endl;
237  myHit.SetCov(hitCov); // save value
238  myHit.SetDx(sqrt(hitCov[0][0]));
239  myHit.SetDy(sqrt(hitCov[1][1]));
240  myHit.SetDz(sqrt(hitCov[2][2]));
241 
242  if (fVerbose > 0) {
243  std::cout << " -I- PndSdsPixelClusterTask::Exec(): Calculated Hit(LUMI "
244  "frame): " << std::endl;
245  myHit.Print();
246 #if (ROOT_VERSION_CODE >= ROOT_VERSION(5, 34, 10))
247  ((FairMultiLinkedData_Interface) (myHit)).Print();
248 #else
249  ((FairMultiLinkedData)(myHit)).Print();
250 #endif
251  }
252  TClonesArray& clref = *fHitArray;
253  Int_t size = clref.GetEntriesFast();
254  new (clref[size]) PndSdsHit(myHit); // PndSdsHit *freshHit = //[R.K.03/2017] unused variable
255  // myHit.Delete();
256  // myHit.Clear();
257  // std::cout<<"fHitArray.size() = "<<sizeof(*fHitArray)<<std::endl;
258  }
259  clusters.clear();
260  DigiPixelArray.clear();
261  if (fVerbose > 1)
262  std::cout << std::endl;
263 
264  if (fVerbose > 1) {
265  std::cout << "-I- PndLmdPixelClusterTask: " << fClusterArray->GetEntriesFast()
266  << " Sds Clusters and " << fHitArray->GetEntriesFast() << " Hits calculated."
267  << std::endl;
268  }
269  fEventNr++;
270  fHitArray->Sort();
271 
272  // fDigiArray->Delete();
273 
274  // std::cout<<"lmddim.size() = "<<sizeof(*lmddim)<<std::endl;
275 
276  // std::cout<<"DigiPixelArray.size() = "<<DigiPixelArray.size()<< std::endl;
277  // FinishEvent();
278  // std::cout<<"size() = "<<sizeof(*this)<<std::endl;
279  return;
280 }
MechFsc Print()
int fVerbose
Definition: poormantracks.C:24
virtual void Print(const Option_t *opt=0) const
Definition: PndSdsHit.cxx:66
Int_t fInBranchId
Definition: PndSdsTask.h:43
PndSdsPixelBackMapping * fBackMapping
TString fOutBranchName
Definition: PndSdsTask.h:40
Int_t i
Definition: run_full.C:25
TVector3 GetPosition() const
Definition: PndSdsHit.h:93
void SetClusterIndex(Int_t datasource, Int_t id, Int_t fileId=-1, Int_t evtId=-1)
Definition: PndSdsHit.h:82
friend F32vec4 sqrt(const F32vec4 &a)
Definition: P4_F32vec4.h:29
TMatrixD GetCov() const
Definition: PndSdsHit.h:98
Double_t
TString fInBranchName
Definition: PndSdsTask.h:39
PndSdsPixelClusterFinder * fClusterFinder
Data class to store the digi output of a pixel module.
void SetCov(TMatrixD cov)
Definition: PndSdsHit.cxx:70
virtual PndSdsHit GetCluster(std::vector< PndSdsDigiPixel > pixelArray)=0
TMatrixT< double > TMatrixD
Definition: PndLmdDim.h:52
virtual std::vector< std::vector< Int_t > > GetClusters(std::vector< PndSdsDigiPixel > hits)=0
void PndSdsPixelClusterTask::ExecMQ ( TList *  inputList,
TList *  outputList 
)
virtualinherited

Definition at line 111 of file PndSdsPixelClusterTask.cxx.

References PndSdsPixelClusterTask::Exec(), PndSdsPixelClusterTask::fClusterArray, PndSdsPixelClusterTask::fDigiArray, PndSdsPixelClusterTask::fEventHeader, and PndSdsPixelClusterTask::fHitArray.

111  {
112  // LOG(INFO) << "********************************************** PixelFindHits::ExecMQ(" << inputList->GetName() << "," << outputList->GetName() << "), Event " << fTNofEvents << FairLogger::endl;
113  // LOG(INFO) << "********************************************** PixelFindHits::ExecMQ(), Event " << fTNofEvents << FairLogger::endl;
114 // inputList->Print();
115  fDigiArray = (TClonesArray*) inputList->FindObject("PndSdsDigiPixels");
116  fEventHeader = (FairEventHeader*) inputList->FindObject("EventHeader.");
117  LOG(INFO) << "DigiArray: " << fDigiArray->GetEntriesFast() << FairLogger::endl;
118 
119 
120  outputList->Add(fClusterArray);
121  outputList->Add(fHitArray);
122  Exec("");
123  return;
124 }
void PndLmdPixelClusterTask::FinishEvent ( )
virtual

Reimplemented from PndSdsPixelClusterTask.

Definition at line 282 of file PndLmdPixelClusterTask.cxx.

References PndSdsPixelClusterTask::fClusterArray, PndSdsPixelClusterTask::fDigiArray, and PndSdsPixelClusterTask::fHitArray.

282  {
283  if (fDigiArray != NULL)
284  fDigiArray->Delete();
285  if (fHitArray != NULL)
286  fHitArray->Delete();
287  if (fClusterArray != NULL)
288  fClusterArray->Delete();
289  FinishEvents();
290  // std::cout << "-I- PndLmdPixelClusterTask: FinishEvent()" << std::endl;
291 }
Bool_t PndSdsPixelClusterTask::GetNoiseSuppression ( ) const
inlineinherited
void PndSdsPixelClusterTask::GetParList ( TList *  tempList)
virtualinherited

Reimplemented in PndMvdPixelClusterTask.

Definition at line 127 of file PndSdsPixelClusterTask.cxx.

127  { //tempList //[R.K.03/2017] unused variable(s)
128 }
Bool_t PndPersistencyTask::GetPersistency ( )
inlineinherited

Definition at line 32 of file PndPersistencyTask.h.

References PndPersistencyTask::fPersistency.

Referenced by PndLmdPixelHitProducerFast::GetPersistance(), PndMdtDigitization::Init(), PndMdtHitProducerIdeal::Init(), PndMdtClusterTask::Init(), PndFtsHitProducerRealFast::Init(), PndRichHitProducer::Init(), PndSttHitProducerRealFast::Init(), PndDiscTaskReconstruction::Init(), PndSttHelixHitProducer::Init(), PndDiscTaskPID::Init(), PndIdealTrackFinder::Init(), PndSttMvdGemTracking::Init(), PndMdtTrkProducer::Init(), PndFtsHitProducerRealFull::Init(), Init(), PndSttHitProducerRealFull::Init(), PndLmdStripClusterTask::Init(), PndEmcApdHitProducer::Init(), PndMissingPzCleanerTask::Init(), PndEmcMakeRecoHit::Init(), PndEmcMakeClusterOnline::Init(), PndTrackSmearTask::Init(), PndEmcFWEndcapTimebasedWaveforms::Init(), PndSttHitProducerIdeal::Init(), PndEmcFWEndcapDigi::Init(), PndFtsHitProducerIdeal::Init(), PndEmcMakeCluster::Init(), PndMdtPointsToWaveform::Init(), PndDiscTaskDigitization::Init(), PndEmcMakeDigi::Init(), PndSdsTimeWalkCorrTask::Init(), PndLmdPixelHitProducerFast::Init(), PndDrcHitFinder::Init(), PndRichHitFinder::Init(), PndEmcMakeCorr::Init(), PndFtofHitProducerIdeal::Init(), PndEmcHitsToWaveform::Init(), PndSciTDigiTask::Init(), PndDrcHitProducerIdeal::Init(), PndSdsHitProducerIdeal::Init(), PndSciTHitProducerIdeal::Init(), PndRecoMultiKalmanTask2::Init(), PndEmcHitProducer::Init(), PndDrcHitProducerReal::Init(), PndDskFLGHitProducerIdeal::Init(), PndEmcTmpWaveformToDigi::Init(), PndDrcDigiTask::Init(), PndEmcWaveformToDigi::Init(), PndSttMatchTracks::Init(), PndEmcWaveformToCalibratedDigi::Init(), PndTrkTracking2::Init(), PndSttFindTracks::Init(), PndEmcMultiWaveformToCalibratedDigi::Init(), PndRecoKalmanTask2::Init(), PndDrcTimeDigiTask::Init(), PndEmcExpClusterSplitter::Init(), PndFtsHoughTrackerTask::Init(), PndSdsNoiseProducer::Init(), PndEmcPhiBumpSplitter::Init(), PndSdsIdealRecoTask::Init(), PndSdsHybridHitProducer::Init(), PndRecoMultiKalmanTask::Init(), PndSdsIdealClusterTask::Init(), PndRecoKalmanTask::Init(), PndSdsStripHitProducerDif::Init(), PndGemDigitize::Init(), PndSdsStripHitProducer::Init(), PndGemFindHits::Init(), PndSdsPixelClusterTask::Init(), PndSdsStripClusterTask::Init(), PndMvdGemTrackFinderOnHits::Init(), PndBarrelTrackFinder::Init(), PndEmcFullDigiTask::PndEmcFullDigiTask(), PndEmcMakeBump::PndEmcMakeBump(), PndUnassignedHitsTask::RegisterBranches(), PndMvdClusterTask::SetPersistance(), PndMvdDigiTask::SetPersistance(), PndEmcMakeBump::SetStorageOfData(), and PndEmcFullDigiTask::StoreDigi().

32 { return fPersistency; }
InitStatus PndLmdPixelClusterTask::Init ( )
virtual

Reimplemented from PndSdsPixelClusterTask.

Definition at line 44 of file PndLmdPixelClusterTask.cxx.

References PndSdsPixelClusterTask::fClustBranchName, PndSdsPixelClusterTask::fClusterArray, PndSdsPixelClusterTask::fDigiArray, PndSdsPixelClusterTask::fDigiPar, PndSdsTask::fFolderName, PndSdsPixelClusterTask::fFunctor, PndSdsPixelClusterTask::fGeoH, PndSdsPixelClusterTask::fHitArray, PndSdsTask::fInBranchName, PndSdsTask::fOutBranchName, PndSdsPixelClusterTask::fStartFunctor, fVerbose, PndPersistencyTask::GetPersistency(), PndSdsPixelDigiPar::Print(), SetBackMapping(), SetBranchNames(), SetClusterFinder(), PndSdsPixelClusterTask::SetInBranchId(), and PndGeoHandling::SetVerbose().

Referenced by runLumiPixel2Reco().

44  {
46 
49 
50  FairRootManager* ioman = FairRootManager::Instance();
51 
52  if (!ioman) {
53  std::cout << "-E- PndSdsPixelClusterTask::Init: " << "RootManager not instantiated!"
54  << std::endl;
55  return kFATAL;
56  }
57 
58  // Get input array
59  fDigiArray = (TClonesArray*) ioman->GetObject(fInBranchName);
60  //
61  if (!fDigiArray) {
62  std::cout << "-E- PndSdsPixelClusterTask::Init: " << "No SDSDigi array!" << std::endl;
63  return kERROR;
64  }
65 
66  fClusterArray = ioman->Register(fClustBranchName, "PndSdsClusterPixel",
68 
69  fHitArray =
70  ioman->Register(fOutBranchName, "PndSdsHit", fFolderName, GetPersistency());
71 
72  SetInBranchId();
73 
74  fFunctor = new TimeGap();
75  fStartFunctor = new StopTime();
76 
77  if (fVerbose > 1)
78  fDigiPar->Print();
79 
81 
82  std::cout << "-I- PndSdsPixelClusterTask: Initialisation successfull" << std::endl;
83  return kSUCCESS;
84 }
int fVerbose
Definition: poormantracks.C:24
TString fOutBranchName
Definition: PndSdsTask.h:40
PndSdsPixelDigiPar * fDigiPar
TString fInBranchName
Definition: PndSdsTask.h:39
TString fFolderName
Definition: PndSdsTask.h:41
void SetVerbose(Int_t v)
virtual void Print(std::ostream &out=std::cout) const
void PndSdsPixelClusterTask::InitMQ ( TList *  tempList)
virtualinherited

Definition at line 94 of file PndSdsPixelClusterTask.cxx.

References PndSdsPixelClusterTask::fClusterArray, PndSdsPixelClusterTask::fHitArray, PndSdsPixelClusterTask::SetBackMappingMQ(), and PndSdsPixelClusterTask::SetClusterFinderMQ().

94  {
95  LOG(INFO) << "********************************************** PixelFindHits::InitMQ()" << FairLogger::endl;
96 // fDigiPar = (PndSdsPixelDigiPar*)tempList->FindObject(fParName.Data());
97 
98  fHitArray = new TClonesArray("PndSdsHit",10000);
99  fHitArray->SetName("MVDHitsPixel");
100  fClusterArray = new TClonesArray("PndSdsClusterPixel", 10000);
101  fClusterArray->SetName("MVDPixelCluster");
102 
103  SetClusterFinderMQ(tempList);
104  SetBackMappingMQ(tempList);
105 
106  return;
107 }
virtual void SetClusterFinderMQ(TList *)
virtual void SetBackMappingMQ(TList *)
void PndSdsPixelClusterTask::ProduceHits ( )
protectedinherited
void PndSdsPixelClusterTask::Register ( )
protectedinherited
InitStatus PndSdsPixelClusterTask::ReInit ( )
virtualinherited

Definition at line 145 of file PndSdsPixelClusterTask.cxx.

146 {
147 
148  /*
149  FairRun* ana = FairRun::Instance();
150  FairRuntimeDb* rtdb=ana->GetRuntimeDb();
151  fGeoPar=(PndSdsGeoPar*)(rtdb->getContainer("PndSdsGeoPar"));
152 
153  return kSUCCESS;
154  */
155 
156  return kSUCCESS; // TODO: Fill in sense here...
157 }
void PndSdsPixelClusterTask::Reset ( )
protectedinherited
void PndLmdPixelClusterTask::SetBackMapping ( )
virtual

Implements PndSdsPixelClusterTask.

Definition at line 110 of file PndLmdPixelClusterTask.cxx.

References PndSdsPixelClusterTask::fBackMapping, PndSdsPixelClusterTask::fGeoH, and fVerbose.

Referenced by Init().

110  {
111  // at Init() stage we already have fGeoH filled with the parameters
113 }
PndSdsChargedWeightedPixelMapping: Gets a vector of DigiHits and calculates the cluster center weight...
int fVerbose
Definition: poormantracks.C:24
PndSdsPixelBackMapping * fBackMapping
virtual void PndSdsPixelClusterTask::SetBackMappingMQ ( TList *  )
inlinevirtualinherited

Reimplemented in PndMvdPixelClusterTask.

Definition at line 124 of file PndSdsPixelClusterTask.h.

Referenced by PndSdsPixelClusterTask::InitMQ().

124 {}; // tempList //[R.K.03/2017] unused variable(s)
void PndLmdPixelClusterTask::SetBranchNames ( )
virtual

Implements PndSdsTask.

Definition at line 132 of file PndLmdPixelClusterTask.cxx.

References PndSdsPixelClusterTask::fClustBranchName, PndSdsTask::fFolderName, PndSdsTask::fInBranchName, and PndSdsTask::fOutBranchName.

Referenced by Init().

132  {
133  if (FairRunAna::Instance()->IsTimeStamp())
134  fInBranchName = "LMDSortedPixelDigis";
135  else
136  fInBranchName = "LMDPixelDigis";
137  fOutBranchName = "LMDHitsPixel";
138  fClustBranchName = "LMDPixelClusterCand";
139  fFolderName = "pndsim";
140 }
TString fOutBranchName
Definition: PndSdsTask.h:40
TString fInBranchName
Definition: PndSdsTask.h:39
TString fFolderName
Definition: PndSdsTask.h:41
void PndLmdPixelClusterTask::SetBranchNames ( TString  inBranchname,
TString  outHitBranchname,
TString  outClustBranchname,
TString  folderName 
)
virtual

Definition at line 122 of file PndLmdPixelClusterTask.cxx.

References PndSdsPixelClusterTask::fClustBranchName, PndSdsTask::fFolderName, PndSdsTask::fInBranchName, and PndSdsTask::fOutBranchName.

123  {
124  fInBranchName = inBranchname;
125  fOutBranchName = outHitBranchname;
126  fClustBranchName = outClustBranchname;
127  fFolderName = folderName;
128 }
TString fOutBranchName
Definition: PndSdsTask.h:40
TString fInBranchName
Definition: PndSdsTask.h:39
TString fFolderName
Definition: PndSdsTask.h:41
void PndLmdPixelClusterTask::SetClusterFinder ( )
virtual

Implements PndSdsPixelClusterTask.

Definition at line 115 of file PndLmdPixelClusterTask.cxx.

References PndSdsPixelClusterTask::fClusterFinder, and fVerbose.

Referenced by Init().

115  {
116  std::cout << "PndLmdPixelClusterTask::SetClusterFinder() " << std::endl;
118 }
int fVerbose
Definition: poormantracks.C:24
PndSdsPixelClusterFinder * fClusterFinder
virtual void PndSdsPixelClusterTask::SetClusterFinderMQ ( TList *  )
inlinevirtualinherited

Methods to run with MQ

Reimplemented in PndMvdPixelClusterTask.

Definition at line 123 of file PndSdsPixelClusterTask.h.

Referenced by PndSdsPixelClusterTask::InitMQ().

123 {}; // tempList //[R.K.03/2017] unused variable(s)
virtual void PndSdsPixelClusterTask::SetInBranchId ( )
inlinevirtualinherited

Reimplemented from PndSdsTask.

Definition at line 108 of file PndSdsPixelClusterTask.h.

References PndSdsPixelClusterTask::fClustBranchName, PndSdsPixelClusterTask::fClusterType, PndSdsTask::fInBranchId, and PndSdsTask::fInBranchName.

Referenced by Init(), and PndSdsPixelClusterTask::Init().

108  {
109  FairRootManager *ioman = FairRootManager::Instance();
110  fInBranchId = ioman->GetBranchId(fInBranchName);
111  std::cout << "InBranchId: " << fInBranchId << " for Branch: " << fInBranchName.Data() << std::endl;
112  fClusterType = ioman->GetBranchId(fClustBranchName);
113  std::cout << "fClusterType: " << fClusterType << " for Branch: " << fClustBranchName.Data() << std::endl;
114  }
Int_t fInBranchId
Definition: PndSdsTask.h:43
TString fInBranchName
Definition: PndSdsTask.h:39
void PndSdsPixelClusterTask::SetNoiseSuppression ( Bool_t  val)
inlineinherited

Definition at line 105 of file PndSdsPixelClusterTask.h.

References PndSdsPixelClusterTask::fUseNoiseSuppression, and val.

Double_t val[nBoxes][nFEBox]
Definition: createCalib.C:11
void PndLmdPixelClusterTask::SetParContainers ( )
virtual

Virtual method Init

Reimplemented from PndSdsPixelClusterTask.

Definition at line 88 of file PndLmdPixelClusterTask.cxx.

References ana, PndSdsPixelClusterTask::fDigiPar, PndLmdContFact::GetAlignParNames(), rtdb, PndSdsPixelClusterTask::SetParContainers(), and TString.

88  {
89  std::cout << "PndLmdPixelClusterTask::SetParContainers() " << std::endl;
90  // Get Base Container
91  ana = FairRun::Instance();
92  rtdb = ana->GetRuntimeDb();
93  fDigiPar = (PndSdsPixelDigiPar*) (rtdb->getContainer("LMDPixelDigiPar"));
94  // rtdb->getContainer("LMDPixelTotDigiPar");
95 
96  PndLmdContFact* themvdcontfact = (PndLmdContFact*) rtdb->getContFactory("PndLmdContFact");
97  // read params for lumi alignment
98  TList* theAlignLMDContNames = themvdcontfact->GetAlignParNames();
99  Info("SetParContainers()", "AlignLMD The container names list contains %i entries",
100  theAlignLMDContNames->GetEntries());
101  TIter cfAlIter(theAlignLMDContNames);
102  while (TObjString* contname = (TObjString*) cfAlIter()) {
103  TString parsetname = contname->String();
104  Info("SetParContainers()", "%s", parsetname.Data());
105  }
106  // //
108 }
TList * GetAlignParNames()
PndSdsPixelDigiPar * fDigiPar
Digitization Parameter Class for SDS-Pixel part.
void PndPersistencyTask::SetPersistency ( Bool_t  val = kTRUE)
inlineinherited

Definition at line 31 of file PndPersistencyTask.h.

References PndPersistencyTask::fPersistency, and val.

Referenced by barrelTrackFinder(), digi_complete(), digi_complete_newSTT(), digiOnly_complete(), PndBarrelTrackFinder::PndBarrelTrackFinder(), PndCATracking::PndCATracking(), PndDrcHitFinder::PndDrcHitFinder(), PndEmc2DLocMaxFinder::PndEmc2DLocMaxFinder(), PndEmcExpClusterSplitter::PndEmcExpClusterSplitter(), PndEmcFullDigiTask::PndEmcFullDigiTask(), PndEmcFWEndcapDigi::PndEmcFWEndcapDigi(), PndEmcFWEndcapTimebasedWaveforms::PndEmcFWEndcapTimebasedWaveforms(), PndEmcHitProducer::PndEmcHitProducer(), PndEmcHitsToWaveform::PndEmcHitsToWaveform(), PndEmcMakeBump::PndEmcMakeBump(), PndEmcMakeCluster::PndEmcMakeCluster(), PndEmcMakeClusterOnline::PndEmcMakeClusterOnline(), PndEmcMakeDigi::PndEmcMakeDigi(), PndEmcMakeRecoHit::PndEmcMakeRecoHit(), PndEmcMultiWaveformToCalibratedDigi::PndEmcMultiWaveformToCalibratedDigi(), PndEmcPhiBumpSplitter::PndEmcPhiBumpSplitter(), PndEmcTmpWaveformToDigi::PndEmcTmpWaveformToDigi(), PndEmcWaveformToCalibratedDigi::PndEmcWaveformToCalibratedDigi(), PndEmcWaveformToDigi::PndEmcWaveformToDigi(), PndFtofHitProducerIdeal::PndFtofHitProducerIdeal(), PndFtsCATracking::PndFtsCATracking(), PndFtsHitProducerIdeal::PndFtsHitProducerIdeal(), PndFtsHitProducerRealFast::PndFtsHitProducerRealFast(), PndFtsHitProducerRealFull::PndFtsHitProducerRealFull(), PndFtsHoughTrackerTask::PndFtsHoughTrackerTask(), PndGemDigitize::PndGemDigitize(), PndGemFindHits::PndGemFindHits(), PndIdealTrackFinder::PndIdealTrackFinder(), PndLmdPixelClusterTask(), PndLmdPixelHitProducerFast::PndLmdPixelHitProducerFast(), PndMdtClusterTask::PndMdtClusterTask(), PndMdtDigitization::PndMdtDigitization(), PndMdtHitProducerIdeal::PndMdtHitProducerIdeal(), PndMdtPointsToWaveform::PndMdtPointsToWaveform(), PndMdtTrkProducer::PndMdtTrkProducer(), PndMissingPzCleanerTask::PndMissingPzCleanerTask(), PndMvdGemTrackFinderOnHits::PndMvdGemTrackFinderOnHits(), PndMvdHitProducerIdeal::PndMvdHitProducerIdeal(), PndMvdPixelClusterTask::PndMvdPixelClusterTask(), PndMvdTimeWalkCorrTask::PndMvdTimeWalkCorrTask(), PndMvdToPix4ClusterTask::PndMvdToPix4ClusterTask(), PndRecoKalmanTask::PndRecoKalmanTask(), PndRecoKalmanTask2::PndRecoKalmanTask2(), PndRecoMultiKalmanTask::PndRecoMultiKalmanTask(), PndRecoMultiKalmanTask2::PndRecoMultiKalmanTask2(), PndRichHitFinder::PndRichHitFinder(), PndRichHitProducer::PndRichHitProducer(), PndSciTDigiTask::PndSciTDigiTask(), PndSciTHitProducerIdeal::PndSciTHitProducerIdeal(), PndSdsHitProducerIdeal::PndSdsHitProducerIdeal(), PndSdsHybridHitProducer::PndSdsHybridHitProducer(), PndSdsIdealClusterTask::PndSdsIdealClusterTask(), PndSdsIdealRecoTask::PndSdsIdealRecoTask(), PndSdsNoiseProducer::PndSdsNoiseProducer(), PndSdsPixelClusterTask::PndSdsPixelClusterTask(), PndSdsStripClusterTask::PndSdsStripClusterTask(), PndSdsStripHitProducer::PndSdsStripHitProducer(), PndSdsTimeWalkCorrTask::PndSdsTimeWalkCorrTask(), PndSttFindTracks::PndSttFindTracks(), PndSttHelixHitProducer::PndSttHelixHitProducer(), PndSttHitProducerIdeal::PndSttHitProducerIdeal(), PndSttHitProducerRealFast::PndSttHitProducerRealFast(), PndSttHitProducerRealFull::PndSttHitProducerRealFull(), PndSttMatchTracks::PndSttMatchTracks(), PndSttMvdGemTracking::PndSttMvdGemTracking(), PndTrackSmearTask::PndTrackSmearTask(), PndTrkTracking2::PndTrkTracking2(), reco(), reco_complete(), reco_complete_gf2(), reco_complete_newSTT(), reco_complete_sec(), recoideal_complete(), PndMvdClusterTask::SetPersistance(), PndMvdDigiTask::SetPersistance(), PndLmdPixelHitProducerFast::SetPersistance(), PndSdsHitProducerIdeal::SetPersistance(), PndSttMvdGemTracking::SetPersistenc(), PndMdtClusterTask::SetPersistence(), PndSttHelixHitProducer::SetPersistence(), PndMissingPzCleanerTask::SetPersistence(), PndFtsHitProducerRealFast::SetPersistence(), PndFtsHitProducerRealFull::SetPersistence(), PndSttHitProducerRealFull::SetPersistence(), PndSttHitProducerIdeal::SetPersistence(), PndSttHitProducerRealFast::SetPersistence(), PndFtsHitProducerIdeal::SetPersistence(), PndTrackSmearTask::SetPersistence(), PndSciTHitProducerIdeal::SetPersistence(), PndIdealTrackFinder::SetPersistence(), PndSttMatchTracks::SetPersistence(), PndSttFindTracks::SetPersistence(), PndFtsHoughTrackerTask::SetPersistence(), PndTrkTracking2::SetPersistence(), PndEmcMakeRecoHit::SetStorageOfData(), PndEmcFWEndcapDigi::SetStorageOfData(), PndEmcMakeClusterOnline::SetStorageOfData(), PndEmcFWEndcapTimebasedWaveforms::SetStorageOfData(), PndEmcMakeDigi::SetStorageOfData(), PndMdtPointsToWaveform::SetStorageOfData(), PndEmc2DLocMaxFinder::SetStorageOfData(), PndEmcMakeCluster::SetStorageOfData(), PndEmcHitsToWaveform::SetStorageOfData(), PndEmcMakeBump::SetStorageOfData(), PndEmcTmpWaveformToDigi::SetStorageOfData(), PndEmcWaveformToDigi::SetStorageOfData(), PndEmcWaveformToCalibratedDigi::SetStorageOfData(), PndEmcMultiWaveformToCalibratedDigi::SetStorageOfData(), PndEmcExpClusterSplitter::SetStorageOfData(), PndEmcPhiBumpSplitter::SetStorageOfData(), standard_tracking(), and PndEmcFullDigiTask::StoreDigi().

31 { fPersistency = val; }
Double_t val[nBoxes][nFEBox]
Definition: createCalib.C:11

Member Data Documentation

FairRun* PndLmdPixelClusterTask::ana
private

Definition at line 14 of file PndLmdPixelClusterTask.h.

Referenced by SetParContainers().

PndSdsPixelBackMapping* PndSdsPixelClusterTask::fBackMapping
protectedinherited
PndSdsChargeConversion* PndSdsPixelClusterTask::fChargeConverter
protectedinherited

Definition at line 142 of file PndSdsPixelClusterTask.h.

Referenced by PndSdsPixelClusterTask::operator=().

TString PndSdsPixelClusterTask::fClustBranchName
protectedinherited
TClonesArray* PndSdsPixelClusterTask::fClusterArray
protectedinherited
PndSdsPixelClusterFinder* PndSdsPixelClusterTask::fClusterFinder
protectedinherited
Int_t PndSdsPixelClusterTask::fClusterType
protectedinherited
TClonesArray* PndSdsPixelClusterTask::fDigiArray
protectedinherited
PndSdsPixelDigiPar* PndSdsPixelClusterTask::fDigiPar
protectedinherited
FairEventHeader* PndSdsPixelClusterTask::fEventHeader
protectedinherited
Int_t PndSdsPixelClusterTask::fEventNr
protectedinherited
PndSdsFE* PndSdsPixelClusterTask::fFEModel
protectedinherited

Definition at line 137 of file PndSdsPixelClusterTask.h.

Referenced by PndSdsPixelClusterTask::operator=().

TString PndSdsTask::fFolderName
protectedinherited
BinaryFunctor* PndSdsPixelClusterTask::fFunctor
protectedinherited
PndGeoHandling* PndSdsPixelClusterTask::fGeoH
protectedinherited
TClonesArray* PndSdsPixelClusterTask::fHitArray
protectedinherited
Int_t PndSdsTask::fInBranchId
protectedinherited
TString PndSdsTask::fInBranchName
protectedinherited
Int_t PndSdsTask::fOutBranchId
protectedinherited

Definition at line 44 of file PndSdsTask.h.

Referenced by PndSdsTask::SetInBranchId().

TString PndSdsTask::fOutBranchName
protectedinherited
BinaryFunctor* PndSdsPixelClusterTask::fStartFunctor
protectedinherited
Bool_t PndSdsPixelClusterTask::fUseNoiseSuppression
protectedinherited
FairRuntimeDb* PndLmdPixelClusterTask::rtdb
private

Definition at line 15 of file PndLmdPixelClusterTask.h.

Referenced by SetParContainers().


The documentation for this class was generated from the following files: