ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
|
Go to the documentation of this file.
6 #include <FairLogger.h>
7 #include <FairRunAna.h>
8 #include <FairRuntimeDb.h>
10 #include <TClonesArray.h>
20 FairRootManager *ioman = FairRootManager::Instance();
24 LOG(fatal) <<
"Cannot find fMCPointArray array!";
38 LOG(debug) <<
"SetParContainers of AtClusterizeTask";
40 FairRunAna *ana = FairRunAna::Instance();
41 FairRuntimeDb *rtdb = ana->GetRuntimeDb();
42 fPar =
dynamic_cast<AtDigiPar *
>(rtdb->getContainer(
"AtDigiPar"));
44 LOG(fatal) <<
"Could not get the parameter container "
53 std::cout <<
" Drift velocity: " <<
fVelDrift << std::endl;
54 std::cout <<
" Position of the pad plane (Z): " <<
fDetPadPlane << std::endl;
63 if (mcPoint->GetVolName() ==
"drift_volume")
66 LOG(info) <<
"Skipping point " << i <<
". Not in drift volume.";
TClonesArray * fSpaceChargePointArray
space charge corrected MC Points (output)
Double_t GetZPadPlane() const
virtual void SetParContainers() override
Load the parameter container from the runtime database.
AtDigiPar * fPar
Base parameter container.
virtual void Exec(Option_t *opt) override
Executed for each event.
TString fOutputBranchName
TClonesArray * fMCPointArray
All AtMCpoints (input)
Double_t fVelDrift
Drift velocity of electron in gas. [mm/ns].
Double_t fDetPadPlane
Position of the pad plane with respect to the entrance [mm].
Bool_t fIsPersistent
If true, save container.
Double_t GetDriftVelocity() const
void processPoint(AtMCPoint *point)
virtual InitStatus Init() override
Initiliazation of task at the beginning of a run.