Commit 8416fd34 authored by J.Dudouet [IPNL/CSNSM]'s avatar J.Dudouet [IPNL/CSNSM]
Browse files

add core timestamp in ADHitTree


git-svn-id: svn+ssh://anonsvn.in2p3.fr/agata/gammaware/trunk@2259 c3abf467-7ff2-0310-b516-c5fb849bdde0
parent 19886d85
......@@ -158,9 +158,6 @@ void ADTrackTree::Exec(Option_t * /*option*/)
for (UShort_t i = 0u; i < nbTrack; i++) {
const TrackedHit *gamma1 = data->GetGamma(i);
if(gamma1->GetNbHits()==0)
continue;
const Hit *hit1 = gamma1->GetHit();
Double_t x = gamma1->GetX() - px;
......@@ -337,6 +334,7 @@ void ADHitTree::SetBranches()
GetTree()->Branch("coreDE1",coreDE1,"coreDE1[nbCores]/F");
GetTree()->Branch("velDop",velDop,"velDop[nbCores]/F");
GetTree()->Branch("hit_per_cryst",hit_per_cryst,"hit_per_cryst[nbCores]/I");
GetTree()->Branch("coreTS",coreTS,"coreTS[nbCores]/l");
GetTree()->Branch("TSHit", &fTimestamp, "TSHit/l");
}
......@@ -401,6 +399,7 @@ void ADHitTree::Exec(Option_t * /*option*/)
coreT1[nbCores] = data->GetT(1u);
hit_per_cryst[nbCores] = nb_hits;
velDop[nbCores] = beta0;
coreTS[nbCores] = ((AgataKey *)fPSAFrame->GetKey())->GetTimeStamp();
// Loop on the hit to get over the hits with the max of the energy
max_e0 = 0.0;
......@@ -415,7 +414,7 @@ void ADHitTree::Exec(Option_t * /*option*/)
hitZ[nbHits] = pHit->GetZ();
hitId[nbHits] = data->GetUID() ;
hitSg[nbHits] = pHit->GetID();
//Get hit position
pHit->GetXYZ(xLocal, yLocal, zLocal);
//To the AGATA global ref
......
......@@ -154,6 +154,7 @@ private:
Float_t hitGZ[MaxHits]; // Position z of hit with , in global frame
Int_t hitId[MaxHits]; // Segment ID in which a hit occurs
Int_t hitSg[MaxHits]; // Crystal ID in which a hit occurs
//
Int_t nbCores; // for more than 1 frame (built event)
Int_t coreId[MaxCore]; // for each crystal fired its ID
......@@ -166,7 +167,8 @@ private:
//
Float_t velDop[MaxCore]; // Beta for the doppler correction
Int_t hit_per_cryst[MaxCore]; // Number of hits for each cryst ID i.e. dans each data:psa frames
ULong64_t coreTS[MaxCore]; // timestamp of core
private:
// Spectra on the Hit tree. Used here since no tracking yet.
TH1 *fIdSpectra;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment