28.10.2011 Kamil Sedlak
1) musrSimAna significantly rewritten, but still needs to be checked. 2) changed way how some optical photon properties are simulated, + added cross-talk effects (if requested).
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#ifndef musrCounter_h
|
||||
#define musrCounter_h 1
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <TApplication.h>
|
||||
#include <TSystem.h>
|
||||
#include <TH1.h>
|
||||
@@ -55,17 +57,21 @@ class musrCounter {
|
||||
void SetTDChistogram(char hName[200],int t0,int t1,int t2,int hNr,char hNameAdd[200]);
|
||||
void FillTDChistogram(Double_t variable, Double_t vaha);
|
||||
void DrawTDChistogram();
|
||||
void FillHitInCounter(Double_t edep, Long64_t timeBin, Long64_t timeBin2, Int_t kEntry, Int_t eveID, Int_t iDet, Int_t detectorID);
|
||||
void FillHitInCounter(Double_t edep, Long64_t timeBin, Long64_t timeBin2, Int_t kEntry, Int_t eveID, Int_t iDet, Int_t detectorID, Int_t eventNum);
|
||||
void RemoveHitsInCounter(Long64_t timeBinLimit);
|
||||
void RewindHitsInCounter(Long64_t timeBinsToRewind);
|
||||
Bool_t IsInCoincidence(Long64_t timeBin, char motherCounter, Bool_t ignoreHitsAtBinZero=false, Long64_t timeBinMinimum=-123456789, Long64_t timeBinMaximum=-123456789);
|
||||
// void RewindHitsInCounter(Long64_t timeBinsToRewind);
|
||||
void RewindHitsInCounter();
|
||||
Bool_t IsInCoincidence(Long64_t timeBin, char motherCounter);
|
||||
Bool_t GetNextGoodMuon(Int_t evtID, Long64_t timeBinMin, Long64_t& timeBinOfNextHit, Int_t& kEntry, Int_t& idet, Int_t& idetID, Double_t& idetEdep);
|
||||
Bool_t CheckForPileupMuons(Long64_t timeBin0, Int_t kEntry_NN);
|
||||
Bool_t CheckForPileupMuons(Long64_t timeBin0);
|
||||
Int_t GetNextGoodPositron(Int_t evtID, Long64_t timeBinMin, Long64_t timeBinMax, Long64_t& timeBinOfNextGoodHit, Long64_t& timeBinOfNextGoodHit_phaseShifted, Int_t& kEntry, Int_t& idet, Int_t& idetID, Double_t& idetEdep);
|
||||
void myPrintThisCounter(Int_t evtID, Int_t detail=2);
|
||||
// void CheckClockInfo(Long64_t timeBin);
|
||||
Long64_t GetNumberOfMuonCandidates(){return numberOfMuonCandidates;}
|
||||
Long64_t GetNumberOfMuonCandidatesAfterVK(){return numberOfMuonCandidatesAfterVK;}
|
||||
Long64_t GetNumberOfMuonCandidatesAfterVKandDoubleHitRemoval(){return numberOfMuonCandidatesAfterVKandDoubleHitRemoval;}
|
||||
void DumpInfoToDumpFile(Int_t eventNr, Int_t detID, Long64_t tdcBin);
|
||||
void WriteRewindIntoDumpFile();
|
||||
|
||||
private:
|
||||
// static musrCounter* pointerToAnalysis;
|
||||
@@ -93,10 +99,14 @@ class musrCounter {
|
||||
Long64_t numberOfMuonCandidates;
|
||||
Long64_t numberOfMuonCandidatesAfterVK;
|
||||
Long64_t numberOfMuonCandidatesAfterVKandDoubleHitRemoval;
|
||||
|
||||
|
||||
public:
|
||||
static Bool_t bool_ignoreUnperfectMuons;
|
||||
static Bool_t bool_ignoreUnperfectPositrons;
|
||||
static Bool_t bool_WriteDataToDumpFile;
|
||||
static ofstream dumpFile;
|
||||
// static Long64_t previousClock;
|
||||
// static Long64_t CLOCK_INTERVAL;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user