Commit 88e2344a authored by Javier Galan's avatar Javier Galan
Browse files

TRestReadoutPixel::Print() now does not receive an index

parent 8abf046c
......@@ -111,7 +111,7 @@ class TRestReadoutPixel : public TObject {
TVector2 TransformToPixelCoordinates(TVector2 p);
void Print(int index = -1);
void Print();
// Construtor
TRestReadoutPixel();
......
......@@ -99,7 +99,7 @@ void TRestReadoutChannel::Print(int DetailLevel) {
if (DetailLevel - 1 >= 0)
for (int n = 0; n < GetNumberOfPixels(); n++) {
fReadoutPixel[n].Print(n);
fReadoutPixel[n].Print();
}
}
}
......@@ -153,9 +153,9 @@ TVector2 TRestReadoutPixel::TransformToPixelCoordinates(TVector2 p) {
///////////////////////////////////////////////
/// \brief Prints on screen the pixel details, origin, size, rotation
///
void TRestReadoutPixel::Print(int index) {
metadata << " ## Pixel : " << index << " position : (" << GetOriginX() << "," << GetOriginY()
<< ") mm size : (" << GetSizeX() << "," << GetSizeY() << ") mm" << endl;
void TRestReadoutPixel::Print() {
metadata << " ## Pixel position : (" << GetOriginX() << "," << GetOriginY() << ") mm size : ("
<< GetSizeX() << "," << GetSizeY() << ") mm" << endl;
metadata << " rotation : " << fRotation << " degrees"
<< " type : ";
if (fTriangle)
......
......@@ -245,7 +245,7 @@ Bool_t TRestBrowser::LoadEventId(Int_t id, Int_t subid) {
if (r->GetAnalysisTree() != NULL && r->GetAnalysisTree()->GetEntries() > 0) {
TRestEvent* ev = r->GetEventWithID(id, subid);
if (!ev) {
warning << "Event ID : " << id << " with sub ID : "<< subid <<" not found!" << endl;
warning << "Event ID : " << id << " with sub ID : " << subid << " not found!" << endl;
return kFALSE;
} else {
fEventRow = r->GetCurrentEntry();
......@@ -300,6 +300,7 @@ Bool_t TRestBrowser::OpenFile(TString filename) {
fEventSubIdNumberBox->SetIntNumber(ev->GetSubID());
}
}
return true;
}
void TRestBrowser::NextPlotOptionAction() {
......
Supports Markdown
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