FairRoot/PandaRoot
|
Convert meassured data into PndSdsDigiStrip. More...
#include <PndMvdConvertApv.h>
Public Member Functions | |
PndMvdConvertApv () | |
PndMvdConvertApv (const TString &CalibFileName, const TString &HitFileName) | |
virtual | ~PndMvdConvertApv () |
PndMvdConvertApv (const PndMvdConvertApv &)=delete | |
PndMvdConvertApv & | operator= (const PndMvdConvertApv &)=delete |
long int | GetNofEvents () |
std::vector< PndSdsDigiStrip > | ReadAll () |
std::vector< PndSdsDigiStrip > | ReadNext () |
Bool_t | Init () |
void | SetFakePair (Int_t TopModuleID, Int_t BottomModuleID) |
Private Member Functions | |
void | LoadCalibration (TString CalibFileName) |
std::vector< PndSdsDigiStrip > | Calc (std::vector< PndMvdApvHit > hitlist) |
ClassDef (PndMvdConvertApv, 1) | |
Gives Access to the Path info of a hit. More... | |
Private Attributes | |
std::map< Int_t, std::map < Int_t, double > > | fCalibPars |
Calib Parameters: <moduleID<FE<channel> > > More... | |
long int | fNofEvents |
stored last eventID of the hitfile More... | |
long int | fEvent |
stored current eventID More... | |
long int | fLastEvent |
last eventID More... | |
bool | fNoCalib |
true if calib was succesfull loaded More... | |
TString | fHitFileName |
name of hitfile More... | |
std::ifstream | fDataFile |
fstream of hitfile More... | |
std::vector< PndMvdApvHit > | fhitlist |
stored readed events More... | |
Int_t | fTopModuleID |
stored fake module top side More... | |
Int_t | fBottomModuleID |
stored fake module bottom side More... | |
Bool_t | fFake |
knows if fake is allowed More... | |
TFile * | f |
TTree * | t |
PndMvdTsEvent * | tsEv |
TClonesArray * | arr |
PndGeoHandling * | fGeoH |
Convert meassured data into PndSdsDigiStrip.
PndMvdConvertApv.h
Load calibration parameter and keeps strean to meassured data. Event wise read in and converting to PndSdsDigiStrip
Definition at line 39 of file PndMvdConvertApv.h.
|
inline |
default constructor
Definition at line 43 of file PndMvdConvertApv.h.
main constructor, call all function to be ready for converting hits from hitfile
CalibFileName | name of file where the calibration is stored |
HitFileName | name of hitfile |
Definition at line 20 of file PndMvdConvertApv.cxx.
References arr, f, fGeoH, fNofEvents, PndGeoHandling::Instance(), LoadCalibration(), t, and tsEv.
|
inlinevirtual |
Destructor
Definition at line 70 of file PndMvdConvertApv.h.
References fDataFile.
|
delete |
|
private |
Convert the readed hit and store them in the PndSdsDigiStrip
hitlist | vector of PndMvdApvHit hits of one event from hitfile |
Definition at line 114 of file PndMvdConvertApv.cxx.
References Double_t, fCalibPars, fFake, fNoCalib, and kMVDHitsStrip.
Referenced by ReadNext().
|
private |
Gives Access to the Path info of a hit.
long int PndMvdConvertApv::GetNofEvents | ( | ) |
Definition at line 204 of file PndMvdConvertApv.cxx.
References fNofEvents.
Bool_t PndMvdConvertApv::Init | ( | ) |
Initialize global geometry
Definition at line 60 of file PndMvdConvertApv.cxx.
Referenced by PndMvdConvertApvTask::Init().
|
private |
Read the calibration of the modules
CalibFileName | Filename where the calibration of the modules are listed |
modules | vector of moduleIDs of modules in the hitfile |
Definition at line 69 of file PndMvdConvertApv.cxx.
References c, fCalibPars, and fNoCalib.
Referenced by PndMvdConvertApv().
|
delete |
std::vector< PndSdsDigiStrip > PndMvdConvertApv::ReadAll | ( | ) |
read all events from hitfile
Definition at line 279 of file PndMvdConvertApv.cxx.
References fEvent, fNofEvents, i, and ReadNext().
std::vector< PndSdsDigiStrip > PndMvdConvertApv::ReadNext | ( | ) |
read the next event from hitfile
Definition at line 211 of file PndMvdConvertApv.cxx.
References arr, Calc(), ev, PndMvdSiHit::fAdc, PndMvdSiHit::fBox, PndMvdSiHit::fChannel, fe, fEvent, fhitlist, fLastEvent, fNofEvents, PndMvdSiHit::fNumFrames, PndMvdTsEvent::GetEventId(), PndMvdTsEvent::GetExtClockTimeStamp(), PndMvdTsEvent::GetSiHitList(), hit, t, and tsEv.
Referenced by PndMvdConvertApvTask::Exec(), for(), and ReadAll().
void PndMvdConvertApv::SetFakePair | ( | Int_t | TopModuleID, |
Int_t | BottomModuleID | ||
) |
Set two moduleIDs to merge them as one double sided sensor
TopModuleID | moduleID for top side of fake sensor |
BottomModuleID | moduleID for bottom side of fake sensor |
Definition at line 290 of file PndMvdConvertApv.cxx.
References fBottomModuleID, fFake, and fTopModuleID.
|
private |
Definition at line 184 of file PndMvdConvertApv.h.
Referenced by PndMvdConvertApv(), and ReadNext().
|
private |
Definition at line 180 of file PndMvdConvertApv.h.
Referenced by PndMvdConvertApv().
|
private |
stored fake module bottom side
Definition at line 175 of file PndMvdConvertApv.h.
Referenced by SetFakePair().
Calib Parameters: <moduleID<FE<channel> > >
Definition at line 148 of file PndMvdConvertApv.h.
Referenced by Calc(), and LoadCalibration().
|
private |
fstream of hitfile
Definition at line 166 of file PndMvdConvertApv.h.
Referenced by ~PndMvdConvertApv().
|
private |
stored current eventID
Definition at line 154 of file PndMvdConvertApv.h.
Referenced by ReadAll(), and ReadNext().
|
private |
knows if fake is allowed
Definition at line 178 of file PndMvdConvertApv.h.
Referenced by Calc(), and SetFakePair().
|
private |
Definition at line 186 of file PndMvdConvertApv.h.
Referenced by PndMvdConvertApv().
|
private |
name of hitfile
Definition at line 163 of file PndMvdConvertApv.h.
|
private |
|
private |
|
private |
true if calib was succesfull loaded
Definition at line 160 of file PndMvdConvertApv.h.
Referenced by Calc(), and LoadCalibration().
|
private |
stored last eventID of the hitfile
Definition at line 151 of file PndMvdConvertApv.h.
Referenced by GetNofEvents(), PndMvdConvertApv(), ReadAll(), and ReadNext().
|
private |
stored fake module top side
Definition at line 172 of file PndMvdConvertApv.h.
Referenced by SetFakePair().
|
private |
Definition at line 181 of file PndMvdConvertApv.h.
Referenced by PndMvdConvertApv(), and ReadNext().
|
private |
Definition at line 182 of file PndMvdConvertApv.h.
Referenced by PndMvdConvertApv(), and ReadNext().