Commit 67fad29d authored by Marcin's avatar Marcin

mNedaDeltaTSTime 2d histogram

name of an respective Diamant histogram consistently changed
parent 68846b07
......@@ -300,10 +300,12 @@ void PlotResultsSelector::SlaveBegin(TTree * /*tree*/)
}
///TH2
mNedaDeltaTSTime_h = BuildHist2D("mNedaDeltaTSTime",
Id_NEDA,NEDA_DeltaTSTime,fNedaHistList);
Neda_BoardvsChannel_h = BuildHist2D("Neda_BoardvsChannel",Board_NEDA,Channel,fNedaHistList);
mAgataNedaTimeDiff=BuildHist2D("mAgataNedaTimeDiff", Id_NEDA,NEDA_DeltaTSTime, fNedaHistList);
// mAgataNedaTimeDiff=BuildHist2D("mAgataNedaTimeDiff", Id_NEDA,NEDA_DeltaTSTime, fNedaHistList);
NEDACcTof_tot_h = BuildHist2D("NEDACcTof_tot",Slow_over_Fast,NEDA_Tof_b,fNedaHistList);
......@@ -390,10 +392,10 @@ void PlotResultsSelector::SlaveBegin(TTree * /*tree*/)
mDiamantPID = BuildHist2D("mDiamantPID",Id_Diamant,Diamant_PID,fDiamantHistList);
mDiamantTimeDiff = BuildHist2D("mDiamantTimeDiff",Id_Diamant, Diamant_DeltaTSTime, fDiamantHistList);
mDiamantDeltaTSTime_h = BuildHist2D("mDiamantDeltaTSTime",Id_Diamant, Diamant_DeltaTSTime, fDiamantHistList);
mDiamantEnergy = BuildHist2D("mDiamantEnergy",Id_Diamant, Diamant_Energy, fDiamantHistList);
mDiamantTop = BuildHist2D("mDiamantTop",Id_Diamant, Diamant_Top, fDiamantHistList);
mAgataDiamantTimeDiff=BuildHist2D("mAgataDiamantTimeDiff",Id_Diamant, binDIAMANT_TimeDiff, fDiamantHistList);
// mAgataDiamantTimeDiff=BuildHist2D("mAgataDiamantTimeDiff",Id_Diamant, binDIAMANT_TimeDiff, fDiamantHistList);
/// ******************************* ///
/// *** Define AGATA Histograms *** ///
......@@ -406,7 +408,7 @@ void PlotResultsSelector::SlaveBegin(TTree * /*tree*/)
hAgataCoreID = BuildHist1D("mAgataCoreID",AGATA_CoreID,fAgataHistList);
mAgata0AgataTimeDiff = BuildHist2D("mAgata0AgataTimeDiff",AGATA_CoreID, AGATA_TimeDiff,fAgataHistList);
// mAgata0AgataTimeDiff = BuildHist2D("mAgata0AgataTimeDiff",AGATA_CoreID, AGATA_TimeDiff,fAgataHistList);
......@@ -881,6 +883,7 @@ void PlotResultsSelector::FillHistos()
NEDACc_h[id]->Fill(NEDACc[i]);
NEDAToF_h[id]->Fill(NEDATof[i]);
NEDADeltaTSTime_h[id]->Fill(NEDA_DeltaTSTime[i]);
mNedaDeltaTSTime_h->Fill(id,NEDA_DeltaTSTime[i]);
Neda_BoardvsChannel_h->Fill(Neda_BoardId[i],Neda_ChannelId[i]);
......@@ -916,7 +919,7 @@ void PlotResultsSelector::FillHistos()
mDiamantEnergy->Fill(id,Diamant_Energy[i]);
mDiamantTop->Fill(id, Diamant_Top[i]);
mDiamantPID->Fill(id, Diamant_PID[i]);
mDiamantTimeDiff->Fill(id,Diamant_DeltaTSTime[i]);
mDiamantDeltaTSTime_h->Fill(id,Diamant_DeltaTSTime[i]);
}
......@@ -1016,36 +1019,36 @@ Bool_t PlotResultsSelector::Process(Long64_t entry)
//Checking time det allignement
for (int g1=0;g1<=nbCores;g1++){
hAgataCoreID->Fill(coreId[g1]);
for (int g2=0;g2<=nbCores;g2++){
if (g1==g2) continue;
Long64_t time_diff_gg = (coreTS[g2]-coreTS[g1]);
// mAgata0AgataTimeDiff->Fill(coreId[g1],time_diff_gg);
if (coreId[g1]==0) {mAgata0AgataTimeDiff->Fill(coreId[g2],time_diff_gg);}
else if (coreId[g2]==0) {mAgata0AgataTimeDiff->Fill(coreId[g1],-time_diff_gg);};
// if ((nbCores == 2)&&(coreId[g1]==0)) {mAgata0AgataTimeDiff->Fill(coreId[g2],time_diff);}
// else if ((nbCores == 2)&&(coreId[g1]==0)) {mAgata0AgataTimeDiff->Fill(coreId[g2],time_diff);};
};
};
// for (int g1=0;g1<=nbCores;g1++){
// hAgataCoreID->Fill(coreId[g1]);
// for (int g2=0;g2<=nbCores;g2++){
// if (g1==g2) continue;
// Long64_t time_diff_gg = (coreTS[g2]-coreTS[g1]);
// // mAgata0AgataTimeDiff->Fill(coreId[g1],time_diff_gg);
// if (coreId[g1]==0) {mAgata0AgataTimeDiff->Fill(coreId[g2],time_diff_gg);}
// else if (coreId[g2]==0) {mAgata0AgataTimeDiff->Fill(coreId[g1],-time_diff_gg);};
//// if ((nbCores == 2)&&(coreId[g1]==0)) {mAgata0AgataTimeDiff->Fill(coreId[g2],time_diff);}
//// else if ((nbCores == 2)&&(coreId[g1]==0)) {mAgata0AgataTimeDiff->Fill(coreId[g2],time_diff);};
// };
// };
for (int g1=0;g1<=nbCores;g1++){
if(coreId[g1]!=0) continue;
//if(nbCores>1) continue;
for (int p1=0;p1<=nbDIAMANT;p1++)
{
Long64_t time_diff = (Diamant_TSHit[p1]-coreTS[g1]);
mAgataDiamantTimeDiff->Fill(Diamant_Id[p1],time_diff);
// for (int g1=0;g1<=nbCores;g1++){
//
// if(coreId[g1]!=0) continue;
// //if(nbCores>1) continue;
//
// for (int p1=0;p1<=nbDIAMANT;p1++)
// {
// Long64_t time_diff = (Diamant_TSHit[p1]-coreTS[g1]);
// mAgataDiamantTimeDiff->Fill(Diamant_Id[p1],time_diff);
// TH2F *mAgataNedaTimeDiff;//
};
// };
for (int n1=0;n1<=nbNEDA;n1++) {
Long64_t time_diff = (Neda_TSHit[n1]-coreTS[g1]);
mAgataNedaTimeDiff->Fill(Neda_Id[n1],time_diff);
};
};
// for (int n1=0;n1<=nbNEDA;n1++) {
// Long64_t time_diff = (Neda_TSHit[n1]-coreTS[g1]);
// mAgataNedaTimeDiff->Fill(Neda_Id[n1],time_diff);
// };
// };
......
......@@ -267,13 +267,14 @@ public :
//Dmitry
TH2F *mNedaDeltaTSTime_h;
TH2F *mDiamantPID;
TH2F *mDiamantTimeDiff;
TH2F *mDiamantDeltaTSTime_h;
TH2F *mDiamantEnergy;
TH2F *mDiamantTop;
TH2F *mAgata0AgataTimeDiff;
TH2F *mAgataDiamantTimeDiff;
TH2F *mAgataNedaTimeDiff;
// TH2F *mAgata0AgataTimeDiff;
// TH2F *mAgataDiamantDeltaTSTime;
// TH2F *mAgataNedaTimeDiff;
TH1F *hAgataCoreID;
......
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