15#ifndef CBMTOFTESTBEAMCLUSTERIZER_H
16#define CBMTOFTESTBEAMCLUSTERIZER_H 1
47#include "TTimeStamp.h"
78 virtual InitStatus
Init();
88 virtual void Exec(Option_t* option);
94 virtual void Finish(Double_t calMode);
103 Int_t iSign = iCalRpc / TMath::Abs(iCalRpc);
105 Int_t iRpc = iCalRpc % 10;
106 iCalRpc = (iCalRpc - iRpc) / 10;
107 Int_t iSm = iCalRpc % 10;
108 iCalRpc = (iCalRpc - iSm) / 10;
153 virtual void fit_ybox(
const char* hname);
154 virtual void fit_ybox(TH1*
h, Double_t dy);
155 virtual void fit_ybox(TH1*
h, Double_t dy, Double_t* fpar);
158 virtual Bool_t
AddNextChan(Int_t iSmType, Int_t iSm, Int_t iRpc, Int_t iLastChan, Double_t dLastPosX,
159 Double_t dLastPosY, Double_t dLastTime,
161 virtual void LH_store(Int_t iSmType, Int_t iSm, Int_t iRpc, Int_t iChm,
CbmTofHit* pHit);
245 std::vector<std::vector<std::vector<std::vector<CbmTofDigi*>>>>
fStorDigiExp;
246 std::vector<std::vector<std::vector<std::vector<Int_t>>>>
fStorDigiInd;
256 std::vector<std::vector<std::vector<Double_t>>>
fvdX;
257 std::vector<std::vector<std::vector<Double_t>>>
fvdY;
258 std::vector<std::vector<std::vector<Double_t>>>
fvdDifX;
259 std::vector<std::vector<std::vector<Double_t>>>
fvdDifY;
260 std::vector<std::vector<std::vector<Double_t>>>
fvdDifCh;
329 std::vector<std::vector<std::vector<std::vector<Double_t>>>>
fvCPDelTof;
330 std::vector<std::vector<std::vector<std::vector<Double_t>>>>
fvCPTOff;
331 std::vector<std::vector<std::vector<std::vector<Double_t>>>>
fvCPTotGain;
332 std::vector<std::vector<std::vector<std::vector<Double_t>>>>
fvCPTotOff;
333 std::vector<std::vector<std::vector<std::vector<std::vector<Double_t>>>>>
336 std::vector<std::vector<std::vector<std::vector<std::list<CbmTofHit*>>>>>
fvLastHits;
Data class with information on a STS local track.
static uint32_t GetUniqueAddress(uint32_t Sm, uint32_t Rpc, uint32_t Channel, uint32_t Side=0, uint32_t SmType=0, uint32_t RpcType=0)
Parameters class for the CBM ToF digitizer using beam data distributions.
Data class for expanded digital TOF information.
TClonesArray * fTofDigisColl
std::vector< std::vector< std::vector< std::vector< std::vector< Double_t > > > > > fvCPWalk
std::vector< std::vector< std::vector< Int_t > > > fviClusterMul
void SetCalSmType(Int_t iCalSmType)
Bool_t LoadGeometry()
Load the geometry: for now just resizing the Digis temporary vectors.
std::vector< std::vector< TH2 * > > fhTRpcCluTOffDTLastHits
std::vector< TH2 * > fhRpcCluDelMatTOff
std::vector< std::vector< TH2 * > > fhTRpcCluTOff
void SetCalRpc(Int_t iCalRpc)
std::vector< std::vector< TProfile * > > fhSmCluFpar
std::vector< std::vector< TH2 * > > fhTRpcCluAvWalk
static CbmTofTestBeamClusterizer * Instance()
CbmTofTestBeamClusterizer(const CbmTofTestBeamClusterizer &)
Copy constructor.
void SetEnableAvWalk(Bool_t bval)
Bool_t fbAlternativeBranchNames
void SetBeamRefDet(Int_t Id)
std::vector< TProfile * > fhSmCluSvel
std::vector< std::vector< std::vector< Double_t > > > fvdDifCh
void SetMaxTimeDist(Double_t val)
std::vector< std::vector< std::vector< std::vector< CbmTofDigi * > > > > fStorDigiExp
std::vector< TH2 * > fhRpcCluTOff
std::vector< TH1 * > fhRpcDTLastHits_Tot
virtual void fit_ybox(const char *hname)
Bool_t fEnableMatchPosScaling
void SetTotMin(Double_t val)
virtual void LH_store(Int_t iSmType, Int_t iSm, Int_t iRpc, Int_t iChm, CbmTofHit *pHit)
void SetEnableMatchPosScaling(Bool_t bval)
std::vector< TH2 * > fhRpcCluDelPos
Bool_t BuildClusters()
Build clusters out of ToF Digis and store the resulting info in a TofHit.
CbmTofCell * fChannelInfo
std::vector< TH2 * > fhRpcCluAvWalk
void SetTRefDifMax(Double_t val)
void SetTotMax(Double_t val)
void SetOutHstFileName(TString OutHstFileName)
TClonesArray * fTofHitsColl
std::vector< std::vector< TH2 * > > fhTRpcCluDelTof
std::vector< TH2 * > fhSmCluPosition
std::vector< TH1 * > fhRpcDTLastHits_CluSize
std::vector< std::vector< TH2 * > > fhTRpcCluSize
std::vector< TH2 * > fhRpcCluDelTOff
std::vector< std::vector< std::vector< std::vector< Double_t > > > > fvCPTOff
std::vector< TH2 * > fhRpcCluTot
CbmTofTestBeamClusterizer()
Constructor.
std::vector< std::vector< std::vector< std::vector< Double_t > > > > fvCPTotOff
std::vector< TH2 * > fhRpcCluPosition
CbmTofGeoHandler * fGeoHandler
std::vector< TH1 * > fhRpcCluRate
CbmTofDetectorId * fTofId
virtual void Finish()
Inherited from FairTask.
static CbmTofTestBeamClusterizer * fInstance
void SwapChannelSides(Bool_t bSwap)
virtual ~CbmTofTestBeamClusterizer()
Destructor.
TClonesArray * fTofPointsColl
std::vector< Int_t > fviDetId
void SetWriteHitsInOut(Bool_t bHits)
std::vector< std::vector< std::vector< std::vector< Double_t > > > > fvCPTotGain
void SetChannelDeadtime(Double_t val)
Bool_t DeleteGeometry()
Delete the geometry related arrays: for now just clearing the Digis temporary vectors.
void SetYFitMin(Double_t val)
void SetCalCluMulMax(Int_t ival)
void SetBeamRefMulMax(Int_t Id)
void SetBeamRefId(Int_t Id)
void SetFileIndex(Int_t iIndex)
void SetSel2Sm(Int_t ival)
std::vector< TH2 * > fhRpcCluDelMatPos
ClassDef(CbmTofTestBeamClusterizer, 1)
std::vector< std::vector< TH1 * > > fhTRpcCluMul
std::vector< TH2 * > fhSmCluTOff
virtual void CleanLHMemory()
std::vector< std::vector< TH2 * > > fhTRpcCluMemMulDTLastHits
std::vector< std::vector< std::vector< Int_t > > > fviTrkMul
void SetCalMode(Int_t iMode)
void SetSel2Rpc(Int_t ival)
Bool_t InitCalibParameter()
Initialize other parameters not included in parameter classes.
CbmTofDigiBdfPar * fDigiBdfPar
std::vector< TH1 * > fhRpcDTLastHits
void SetDelTofMax(Double_t val)
std::vector< std::vector< TH2 * > > fhTRpcCludXdY
Bool_t fbSwapChannelSides
std::vector< std::vector< std::vector< std::vector< TH2 * > > > > fhTRpcCluWalk
void SetCaldXdYMax(Double_t dCaldXdYMax)
std::vector< std::vector< TH2 * > > fhTRpcCluTotDTLastHits
std::map< UInt_t, UInt_t > fDetIdIndexMap
std::vector< TH2 * > fhRpcCluSize
Bool_t InitParameters()
Initialize other parameters not included in parameter classes.
std::vector< std::vector< std::vector< Double_t > > > fvdDifX
void SetPs2Ns(Bool_t bval)
std::vector< std::vector< TH2 * > > fhTRpcCluPosition
Double_t fdChannelDeadtime
void SetAlternativeBranchNames(Bool_t bNames)
void SetTotPreRange(Double_t val)
Bool_t RegisterOutputs()
Create and register output TClonesArray of Tof Hits.
virtual InitStatus Init()
Inherited from FairTask.
void SetBeamRefSm(Int_t Id)
void SetCalSmAddr(Int_t iCalSmAddr)
virtual Bool_t AddNextChan(Int_t iSmType, Int_t iSm, Int_t iRpc, Int_t iLastChan, Double_t dLastPosX, Double_t dLastPosY, Double_t dLastTime, Double_t dLastTot)
CbmTofTestBeamClusterizer & operator=(const CbmTofTestBeamClusterizer &)
Copy operator.
void SetCalParFileName(TString CalParFileName)
TClonesArray * fTofCalDigisColl
std::vector< std::vector< std::vector< std::vector< Double_t > > > > fvCPDelTof
std::vector< std::vector< std::vector< Double_t > > > fvdX
virtual void CheckLHMemory()
std::vector< TH2 * > fhRpcDigiCor
virtual void SetParContainers()
Inherited from FairTask.
std::vector< std::vector< TH2 * > > fhTSmCluPosition
void SetCalSel(Int_t iSel)
std::vector< std::vector< TH2 * > > fhTRpcCluSizeDTLastHits
Bool_t RegisterInputs()
Recover pointer on input TClonesArray: TofPoints, TofDigis...
void SetMemoryTime(Double_t val)
void SetBeamAddRefMul(Int_t ival)
std::vector< TH2 * > fhRpcCluTrms
std::vector< std::vector< TH2 * > > fhTSmCluTRun
std::vector< TH2 * > fhRpcCluAvLnWalk
TClonesArray * fTofDigiMatchColl
void SetTotMean(Double_t val)
void PosYMaxScal(Double_t val)
void SetSel2Id(Int_t ival)
std::vector< std::vector< std::vector< TH2 * > > > fhRpcCluWalk
void SetWriteDigisInOut(Bool_t bDigis)
std::vector< std::vector< std::vector< Double_t > > > fvdY
std::vector< std::vector< std::vector< std::vector< Int_t > > > > fStorDigiInd
TClonesArray * fMcTracksColl
std::vector< std::vector< TH2 * > > fhTRpcCluTot
std::vector< std::vector< TH2 * > > fhTSmCluTOff
void SetdTRefMax(Double_t val)
std::vector< TH1 * > fhRpcCluMul
std::vector< std::vector< std::vector< Double_t > > > fvdDifY
std::vector< TH1 * > fhSeldT
std::vector< std::vector< std::vector< std::vector< std::list< CbmTofHit * > > > > > fvLastHits
std::vector< std::vector< std::vector< Int_t > > > fviClusterSize
virtual void Exec(Option_t *option)
Inherited from FairTask.