FairRoot/PandaRoot
PndDrcDigiSorterTask.cxx
Go to the documentation of this file.
1 /*
2  * Author: stockman
3  * PndDrcDigiSorterTask.cxx
4  *
5  */
6 // -------------------------------------------------------------------------
7 // ----- PndDrcDigiSorterTask source file -----
8 // ----- HARPHOOL KUMAWAT h.kumawat@gsi.de -----
9 // ----- -----
10 // -------------------------------------------------------------------------
11 
12 #include <PndDrcDigiSorterTask.h>
13 
14 #include "PndDrcDigi.h"
15 #include "PndDrcDigiRingSorter.h"
16 
18 
20  // TODO Auto-generated constructor stub
21 
22 }
23 
25  // TODO Auto-generated destructor stub
26 }
27 
28 
30 {
31  FairRootManager* ioman = FairRootManager::Instance();
32  TClonesArray* myArray = ioman->GetTClonesArray(fOutputBranch);
33  if (fVerbose > 1){
34  std::cout << "-I- PndDrcDigiSorterTask::AddNewDataToTClonesArray Data: " ;
35  std::cout << *(PndDrcDigi*)(data) << std::endl;
36  }
37  new ((*myArray)[myArray->GetEntries()]) PndDrcDigi(*(PndDrcDigi*)(data));
38 }
39 
40 FairRingSorter* PndDrcDigiSorterTask::InitSorter(Int_t numberOfCells, Double_t widthOfCells) const{
41  return new PndDrcDigiRingSorter(numberOfCells, widthOfCells);
42 }
int fVerbose
Definition: poormantracks.C:24
ClassImp(PndDrcDigiSorterTask)
Double_t
virtual FairRingSorter * InitSorter(Int_t numberOfCells, Double_t widthOfCells) const
virtual void AddNewDataToTClonesArray(FairTimeStamp *data)