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

DIAMANTWatchers & EventDIAMANTWatchers ==> Change binning of spectra

KeyWatchers ==> Add a secutity in case of bad frames
SpecViewer ==> Add a security in case of no Data dir found


git-svn-id: svn+ssh://anonsvn.in2p3.fr/agata/gammaware/trunk@2267 c3abf467-7ff2-0310-b516-c5fb849bdde0
parent a19e47b6
......@@ -234,7 +234,7 @@ void DIAMANTSpectra::Exec(Option_t * /*option*/)
if(fMapOfPIDvsE[fBoardID*100+fChannelID] == nullptr)
{
fMapOfPIDvsE[fBoardID*100+fChannelID] = MakeTH2<TH2F>(Form("PIDvsE_B%d_Ch%d",fBoardID,fChannelID),Form("PIDvsE_B%d_Ch%d",fBoardID,fChannelID),500,0,1000.,500,0,1.);
fMapOfPIDvsE[fBoardID*100+fChannelID] = MakeTH2<TH2F>(Form("PIDvsE_B%d_Ch%d",fBoardID,fChannelID),Form("PIDvsE_B%d_Ch%d",fBoardID,fChannelID),1000,0,70000.,1000,0,1.);
}
fMapOfPIDvsE[fBoardID*100+fChannelID]->Fill(fEnergy,fPID);
......
......@@ -282,7 +282,7 @@ void EventDIAMANTSpectra::Exec(Option_t * /*option*/)
if(fMapOfPIDvsE[BoardId[i]*100+ChannelId[i]] == nullptr)
{
fMapOfPIDvsE[BoardId[i]*100+ChannelId[i]] = MakeTH2<TH2F>(Form("PIDvsE_B%d_Ch%d",BoardId[i],ChannelId[i]),Form("PIDvsE_B%d_Ch%d",BoardId[i],ChannelId[i]),500,0,1000.,500,0,1.);
fMapOfPIDvsE[BoardId[i]*100+ChannelId[i]] = MakeTH2<TH2F>(Form("PIDvsE_B%d_Ch%d",BoardId[i],ChannelId[i]),Form("PIDvsE_B%d_Ch%d",BoardId[i],ChannelId[i]),1000,0,70000.,1000,0,1.);
}
fMapOfPIDvsE[BoardId[i]*100+ChannelId[i]]->Fill(Energy[i],PID[i]);
......
......@@ -420,6 +420,13 @@ void KeyWatcher::Exec(Option_t * /*option*/)
(*fBufferToRead) >> sublength >> submessage >> subeventnumber >> subtimestamp ;
if(submessage==0)
{
TotSubLenght = length;
fBufferToRead->SetOffset( subcurrent + length );
break;
}
SubSubMess = AgataKeyFactory::theFactory()->GetMessage(submessage);
fHistMessageType->Fill(SubSubMess,1);
......
......@@ -125,14 +125,16 @@ void Import(TString Incl, TString Excl, TString DefaultPath)
}
DataPath = Path + "/Out/";
TString DataPathtemp = Path + "/Out/";
if(gSystem->AccessPathName(DataPath))
if(gSystem->AccessPathName(DataPathtemp))
{
cout<<DataPath<<"Out dir no readable"<<endl;
}
else
{
DataPath = Path + "/Out/";
Dir.SetDirectory(DataPath);
TList *ListOfSubFolders = Dir.GetListOfFiles();
......
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