FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairTestDetectorDigiSorterTask.cxx
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 /*
9  * FairTestDetectorDigiSorterTask.cxx
10  *
11  * Created on: Sep 9, 2011
12  * Author: stockman
13  */
14 
16 
17 #include "FairLogger.h"
18 #include "FairRootManager.h" // for FairRootManager
19 #include "FairTestDetectorDigi.h" // for FairTestDetectorDigi, etc
21 
22 #include <TClonesArray.h> // for TClonesArray
23 
24 class FairRingSorter;
25 class FairTimeStamp;
26 
28 
30 {
31  // TODO Auto-generated constructor stub
32 }
33 
35 {
36  // TODO Auto-generated destructor stub
37 }
38 
40 {
42  TClonesArray* myArray = ioman->GetTClonesArray(fOutputBranch);
43  if (fVerbose > 1) {
44  LOG(info) << "AddNewDataToTClonesArray Data: ";
45  LOG(info) << static_cast<FairTestDetectorDigi*>(data)->ToString();
46  }
47  new ((*myArray)[myArray->GetEntries()]) FairTestDetectorDigi(*static_cast<FairTestDetectorDigi*>(data));
48 }
49 
50 FairRingSorter* FairTestDetectorDigiSorterTask::InitSorter(Int_t numberOfCells, Double_t widthOfCells) const
51 {
52  return new FairTestDetectorDigiRingSorter(numberOfCells, widthOfCells);
53 }
static FairRootManager * Instance()
ClassImp(FairEventBuilder)
TClonesArray * GetTClonesArray(TString branchName)
Int_t fVerbose
Definition: FairTask.h:100
virtual void AddNewDataToTClonesArray(FairTimeStamp *data)
virtual FairRingSorter * InitSorter(Int_t numberOfCells, Double_t widthOfCells) const