Skip to content
Snippets Groups Projects
  • Adrien Matta's avatar
    ccb5d86b
    * Fixing issue with MultiThreading · ccb5d86b
    Adrien Matta authored
            - The event rate display was wrong on Linux system when using MT
            - Event rate is now correct
            - Improved Thread Scheduling for slightly faster analysis
            - add Option to switch off MT at compilation
            - Improve CATS performance dramatically (3 time faster)
            - remove a few using namespace std laying around
    ccb5d86b
    History
    * Fixing issue with MultiThreading
    Adrien Matta authored
            - The event rate display was wrong on Linux system when using MT
            - Event rate is now correct
            - Improved Thread Scheduling for slightly faster analysis
            - add Option to switch off MT at compilation
            - Improve CATS performance dramatically (3 time faster)
            - remove a few using namespace std laying around
TCATSData.cxx 2.92 KiB
/*****************************************************************************
 * Copyright (C) 2009-2016   this file is part of the NPTool Project         *
 *                                                                           *
 * For the licensing terms see $NPTOOL/Licence/NPTool_Licence                *
 * For the list of contributors see $NPTOOL/Licence/Contributors             *
 *****************************************************************************/

/*****************************************************************************
 * Original Author: Sandra Giron  contact address: giron@ipno.in2p3.fr       *
 *                                                                           *
 * Creation Date  : febuary 2010                                             *
 * Last update    :                                                          *
 *---------------------------------------------------------------------------*
 * Decription:                                                               *
 *  This class hold CATS raw data                                            *
 *                                                                           *
 *---------------------------------------------------------------------------*
 * Comment:                                                                  *
 *                                                                           *
 *****************************************************************************/

#include <iostream>

#include "TCATSData.h"


ClassImp(TCATSData)
////////////////////////////////////////////////////////////////////////////////
TCATSData::TCATSData(){
}
////////////////////////////////////////////////////////////////////////////////
TCATSData::~TCATSData(){
}
////////////////////////////////////////////////////////////////////////////////
void TCATSData::Clear()
{
   // X
   fCATS_DetX.clear();
   fCATS_StripX.clear();
   fCATS_ChargeX.clear();
   // Y
   fCATS_DetY.clear();
   fCATS_StripY.clear();
   fCATS_ChargeY.clear();
   // (Qfil)
   fCATS_DetQ.clear();
   fCATS_Charge.clear();
}
////////////////////////////////////////////////////////////////////////////////
void TCATSData::Dump() const
{
   cout << "XXXXXXXXXXXXXXXXXXXXXXXX New Event XXXXXXXXXXXXXXXXX" << endl;

   // X
   cout << "CATS_MultX = " << fCATS_DetX.size() << endl;
   for (UShort_t i = 0; i < fCATS_DetX.size(); i++)
      cout << "DetX: " << fCATS_DetX[i] << " StripX: " << fCATS_StripX[i] << " ChargeX: " << fCATS_ChargeX[i] << endl;
   // Y
   cout << "CATS_MultY = " << fCATS_DetY.size() << endl;
   for (UShort_t i = 0; i < fCATS_DetY.size(); i++)
      cout << "DetY: " << fCATS_DetY[i] << " StripY: " << fCATS_StripY[i] << " EnergyY: " << fCATS_ChargeY[i] << endl;
   // (Qfil)
   cout << "CATS_MultQ = " << fCATS_DetQ.size() << endl;
   for (UShort_t i = 0; i < fCATS_DetQ.size(); i++)
      cout << "DetQ: " << fCATS_DetQ[i] << " Charge: " << fCATS_Charge[i] << endl;
}