Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions DataFormats/Detectors/TPC/include/DataFormatsTPC/Defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,23 +97,6 @@ enum class StatisticsType {
MeanStdDev ///< Use mean and standard deviation
};

enum class PadFlags : unsigned short {
flagGoodPad = 1 << 0, ///< flag for a good pad binary 0001
flagDeadPad = 1 << 1, ///< flag for a dead pad binary 0010
flagUnknownPad = 1 << 2, ///< flag for unknown status binary 0100
flagSaturatedPad = 1 << 3, ///< flag for saturated status binary 0100
flagHighPad = 1 << 4, ///< flag for pad with extremly high IDC value
flagLowPad = 1 << 5, ///< flag for pad with extremly low IDC value
flagSkip = 1 << 6, ///< flag for defining a pad which is just ignored during the calculation of I1 and IDCDelta
flagFEC = 1 << 7, ///< flag for a whole masked FEC
flagNeighbour = 1 << 8, ///< flag if n neighbouring pads are outlier
flagAllNoneGood = flagDeadPad | flagUnknownPad | flagSaturatedPad | flagHighPad | flagLowPad | flagSkip | flagFEC | flagNeighbour,
};

inline PadFlags operator&(PadFlags a, PadFlags b) { return static_cast<PadFlags>(static_cast<int>(a) & static_cast<int>(b)); }
inline PadFlags operator~(PadFlags a) { return static_cast<PadFlags>(~static_cast<int>(a)); }
inline PadFlags operator|(PadFlags a, PadFlags b) { return static_cast<PadFlags>(static_cast<int>(a) | static_cast<int>(b)); }

// default point definitions for PointND, PointNDlocal, PointNDglobal are in
// MathUtils/CartesianND.h

Expand Down
2 changes: 0 additions & 2 deletions DataFormats/Detectors/TPC/src/DataFormatsTPCLinkDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,13 @@
#pragma link C++ class o2::tpc::ClusterHardwareContainerFixedSize < 8192> + ;
#pragma link C++ class o2::tpc::ClusterNativeContainer + ;
#pragma link C++ class o2::tpc::Digit + ;
#pragma link C++ enum o2::tpc::PadFlags + ; // enum itself
#pragma link C++ class o2::tpc::ZeroSuppressedContainer8kb + ;
#pragma link C++ class std::vector < o2::tpc::ClusterNative> + ;
#pragma link C++ class std::vector < o2::tpc::ClusterNativeContainer> + ;
#pragma link C++ class std::vector < o2::tpc::ClusterHardware> + ;
#pragma link C++ class std::vector < o2::tpc::ClusterHardwareContainerFixedSize < 8192>> + ;
#pragma link C++ class std::vector < o2::tpc::ClusterHardwareContainer8kb> + ;
#pragma link C++ class std::vector < o2::tpc::Digit> + ;
#pragma link C++ class std::vector < o2::tpc::PadFlags> + ;
#pragma link C++ class std::vector < o2::tpc::ZeroSuppressedContainer8kb> + ;
#pragma link C++ class o2::tpc::TrackTPC + ;
#pragma link C++ class o2::tpc::LaserTrack + ;
Expand Down
1 change: 1 addition & 0 deletions Detectors/TPC/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# or submit itself to any jurisdiction.

add_subdirectory(base)
add_subdirectory(core)
add_subdirectory(reconstruction)
add_subdirectory(calibration)
add_subdirectory(simulation)
Expand Down
21 changes: 1 addition & 20 deletions Detectors/TPC/base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
o2_add_library(TPCBase
SOURCES src/CalArray.cxx
src/CalDet.cxx
src/CDBInterface.cxx
src/ContainerFactory.cxx
src/CRU.cxx
src/DigitPos.cxx
Expand All @@ -24,7 +23,6 @@ o2_add_library(TPCBase
src/PadRegionInfo.cxx
src/PadROCPos.cxx
src/PadSecPos.cxx
src/Painter.cxx
src/ParameterDetector.cxx
src/ParameterElectronics.cxx
src/ParameterGas.cxx
Expand All @@ -37,16 +35,13 @@ o2_add_library(TPCBase
src/CRUCalibHelpers.cxx
src/IonTailSettings.cxx
src/FEEConfig.cxx
src/DeadChannelMapCreator.cxx
src/CommonModeCorrection.cxx
PUBLIC_LINK_LIBRARIES Vc::Vc Boost::boost O2::DataFormatsTPC
O2::DetectorsRaw O2::CCDB FairRoot::Base)

o2_target_root_dictionary(TPCBase
EXTRA_PATCH src/TPCFlagsMemberCustomStreamer.cxx
HEADERS include/TPCBase/CalArray.h
include/TPCBase/CalDet.h
include/TPCBase/CDBInterface.h
include/TPCBase/ContainerFactory.h
include/TPCBase/CRU.h
include/TPCBase/DigitPos.h
Expand All @@ -58,7 +53,6 @@ o2_target_root_dictionary(TPCBase
include/TPCBase/PadRegionInfo.h
include/TPCBase/PadROCPos.h
include/TPCBase/PadSecPos.h
include/TPCBase/Painter.h
include/TPCBase/ParameterDetector.h
include/TPCBase/ParameterElectronics.h
include/TPCBase/ParameterGas.h
Expand All @@ -71,26 +65,13 @@ o2_target_root_dictionary(TPCBase
include/TPCBase/CRUCalibHelpers.h
include/TPCBase/IonTailSettings.h
include/TPCBase/FEEConfig.h
include/TPCBase/DeadChannelMapCreator.h
include/TPCBase/CommonModeCorrection.h
include/TPCBase/CDBTypes.h)
include/TPCBase/CommonModeCorrection.h)
o2_add_test(Base
COMPONENT_NAME tpc
PUBLIC_LINK_LIBRARIES O2::TPCBase
SOURCES test/testTPCBase.cxx
LABELS tpc)

if(BUILD_SIMULATION)
# this test needs CCDB/XROOTD which is for sure
# available in the default-o2 software stack
o2_add_test(CalDet
COMPONENT_NAME tpc
PUBLIC_LINK_LIBRARIES O2::TPCBase
SOURCES test/testTPCCalDet.cxx
ENVIRONMENT O2_ROOT=${CMAKE_BINARY_DIR}/stage
LABELS tpc)
endif()

o2_add_test(Mapper
COMPONENT_NAME tpc
PUBLIC_LINK_LIBRARIES O2::TPCBase
Expand Down
8 changes: 0 additions & 8 deletions Detectors/TPC/base/src/TPCBaseLinkDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,15 @@
#pragma link C++ class o2::tpc::CalArray < unsigned> + ;
#pragma link C++ class o2::tpc::CalArray < short> + ;
#pragma link C++ class o2::tpc::CalArray < bool> + ;
#pragma link C++ class o2::tpc::CalArray < o2::tpc::PadFlags> + ;
#pragma link C++ class o2::tpc::CalDet < float> + ;
#pragma link C++ class o2::tpc::CalDet < double> + ;
#pragma link C++ class o2::tpc::CalDet < int> + ;
#pragma link C++ class o2::tpc::CalDet < unsigned> + ;
#pragma link C++ class o2::tpc::CalDet < short> + ;
#pragma link C++ class o2::tpc::CalDet < bool> + ;
#pragma link C++ class o2::tpc::CalDet < o2::tpc::PadFlags> + ;
#pragma link C++ class std::vector < o2::tpc::CalDet < float>> + ;
#pragma link C++ class std::vector < o2::tpc::CalDet < float>*> + ;
#pragma link C++ class std::unordered_map < std::string, o2::tpc::CalDet < float>> + ;
#pragma link C++ enum o2::tpc::CDBType;
#pragma link C++ class o2::tpc::CDBInterface;
#pragma link C++ class o2::tpc::CDBStorage;
#pragma link C++ class o2::tpc::ContainerFactory;
#pragma link C++ class o2::tpc::CRU;
#pragma link C++ class o2::tpc::DigitPos;
Expand All @@ -50,8 +45,6 @@
#pragma link C++ class o2::tpc::ROC;
#pragma link C++ class o2::tpc::Sector;

#pragma link C++ class o2::tpc::painter + ;

// #pragma link C++ class std::vector <TCanvas*> + ;
#pragma link C++ class o2::tpc::ParameterDetector;
#pragma link C++ class o2::conf::ConfigurableParamHelper < o2::tpc::ParameterDetector> + ;
Expand Down Expand Up @@ -90,5 +83,4 @@
#pragma link C++ function o2::tpc::cru_calib_helpers::getCalPad < 2>(const std::string_view, const std::string_view, std::string_view)
#pragma link C++ function o2::tpc::cru_calib_helpers::getCalPad < 6>(const std::string_view, const std::string_view, std::string_view)

#pragma link C++ class o2::tpc::DeadChannelMapCreator + ;
#endif
2 changes: 1 addition & 1 deletion Detectors/TPC/base/test/testTPCCDBInterface.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "TFile.h"

// o2 includes
#include "TPCBase/CDBInterface.h"
#include "TPCCore/CDBInterface.h"
#include "TPCBase/CalArray.h"
#include "TPCBase/CalDet.h"
#include "TPCBase/Mapper.h"
Expand Down
10 changes: 5 additions & 5 deletions Detectors/TPC/calibration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ o2_add_library(TPCCalibration
src/DigitAdd.cxx
src/CorrectdEdxDistortions.cxx
src/PressureTemperatureHelper.cxx
PUBLIC_LINK_LIBRARIES O2::DataFormatsTPC O2::TPCBase
PUBLIC_LINK_LIBRARIES O2::DataFormatsTPC O2::TPCCore
O2::TPCReconstruction ROOT::Minuit
Microsoft.GSL::GSL
O2::DetectorsCalibration
Expand Down Expand Up @@ -118,16 +118,16 @@ o2_target_root_dictionary(TPCCalibration
include/TPCCalibration/PressureTemperatureHelper.h)

o2_add_test_root_macro(macro/comparePedestalsAndNoise.C
PUBLIC_LINK_LIBRARIES O2::TPCBase
PUBLIC_LINK_LIBRARIES O2::TPCCore
LABELS tpc)
o2_add_test_root_macro(macro/drawNoiseAndPedestal.C
PUBLIC_LINK_LIBRARIES O2::TPCBase
PUBLIC_LINK_LIBRARIES O2::TPCCore
LABELS tpc)
o2_add_test_root_macro(macro/drawPulser.C
PUBLIC_LINK_LIBRARIES O2::TPCBase
PUBLIC_LINK_LIBRARIES O2::TPCCore
LABELS tpc)
o2_add_test_root_macro(macro/mergeNoiseAndPedestal.C
PUBLIC_LINK_LIBRARIES O2::TPCBase
PUBLIC_LINK_LIBRARIES O2::TPCCore
LABELS tpc)
o2_add_test_root_macro(macro/runPedestal.C
PUBLIC_LINK_LIBRARIES O2::TPCCalibration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#define ALICEO2_TPC_IDCCCDBHELPER_H_
#include <Framework/Logger.h>
#include "DataFormatsTPC/Defs.h"
#include "TPCCore/PadFlags.h"
#include "TPCBase/Sector.h"
#include "Rtypes.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "TPCCalibration/IDCContainer.h"
#include "TPCCalibration/IDCGroupHelperSector.h"
#include "DataFormatsTPC/Defs.h"
#include "TPCCore/PadFlags.h"
#include <boost/property_tree/ptree.hpp>

namespace o2::tpc
Expand Down
4 changes: 2 additions & 2 deletions Detectors/TPC/calibration/macro/comparePedestalsAndNoise.C
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
#if !defined(__CLING__) || defined(__ROOTCLING__)
#include "TROOT.h"
#include "TFile.h"
#include "TPCBase/CalDet.h"
#include "TPCCore/CalDet.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TCanvas.h"
#include "TPCBase/Painter.h"
#include "TPCCore/Painter.h"
#endif

std::tuple<TH1*, TH1*, TH1*, TH1*> getNoiseAndPedestalHistogram(const TString pedestalFile, int roc)
Expand Down
4 changes: 2 additions & 2 deletions Detectors/TPC/calibration/macro/drawNoiseAndPedestal.C
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
#include "TH2.h"
#include "TFile.h"
#include "TPCBase/CalDet.h"
#include "TPCBase/Painter.h"
#include "TPCCore/Painter.h"
#include "TPCBase/Utils.h"
#include "TPCBase/CDBInterface.h"
#include "TPCCore/CDBInterface.h"
#include "TPad.h"
#include "TCanvas.h"
#include "TH1F.h"
Expand Down
2 changes: 1 addition & 1 deletion Detectors/TPC/calibration/macro/drawPulser.C
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "TH2.h"
#include "TFile.h"
#include "TPCBase/CalDet.h"
#include "TPCBase/Painter.h"
#include "TPCCore/Painter.h"
#include "TPCBase/Utils.h"
#include "TPCBase/Mapper.h"
#include "TPad.h"
Expand Down
2 changes: 1 addition & 1 deletion Detectors/TPC/calibration/macro/prepareCMFiles.C
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "TFile.h"

#include "Framework/Logger.h"
#include "TPCBase/CDBInterface.h"
#include "TPCCore/CDBInterface.h"
#include "TPCBase/Mapper.h"
#include "TPCBase/CalDet.h"
#include "TPCBase/Utils.h"
Expand Down
2 changes: 1 addition & 1 deletion Detectors/TPC/calibration/macro/prepareITFiles.C
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "TFile.h"

#include "Framework/Logger.h"
#include "TPCBase/CDBInterface.h"
#include "TPCCore/CDBInterface.h"
#include "TPCBase/Mapper.h"
#include "TPCBase/CalDet.h"
#include "TPCBase/Utils.h"
Expand Down
2 changes: 1 addition & 1 deletion Detectors/TPC/calibration/macro/preparePedestalFiles.C
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "TFile.h"
#include "TROOT.h"

#include "TPCBase/CDBInterface.h"
#include "TPCCore/CDBInterface.h"
#include "TPCBase/Mapper.h"
#include "TPCBase/CalDet.h"
#include "TPCBase/Utils.h"
Expand Down
2 changes: 1 addition & 1 deletion Detectors/TPC/calibration/src/CalculatedEdx.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "DataFormatsTPC/ClusterNative.h"
#include "DetectorsBase/Propagator.h"
#include "CCDB/BasicCCDBManager.h"
#include "TPCBase/CDBInterface.h"
#include "TPCCore/CDBInterface.h"
#include "TPCReconstruction/TPCFastTransformHelperO2.h"
#include "CalibdEdxTrackTopologyPol.h"
#include "DataFormatsParameters/GRPMagField.h"
Expand Down
2 changes: 1 addition & 1 deletion Detectors/TPC/calibration/src/CalibPadGainTracksBase.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "TPCCalibration/CalibPadGainTracksBase.h"
#include "TPCCalibration/IDCDrawHelper.h"
#include "TPCBase/ROC.h"
#include "TPCBase/Painter.h"
#include "TPCCore/Painter.h"
#include "TPCCalibration/CalibTreeDump.h"
#include "TPCBase/Mapper.h"

Expand Down
2 changes: 1 addition & 1 deletion Detectors/TPC/calibration/src/CorrectionMapsLoader.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "TPCCalibration/CorrectionMapsLoader.h"
#include "TPCCalibration/CorrMapParam.h"
#include "TPCReconstruction/TPCFastTransformHelperO2.h"
#include "TPCBase/CDBInterface.h"
#include "TPCCore/CDBInterface.h"
#include "Framework/Logger.h"
#include "Framework/ProcessingContext.h"
#include "Framework/CCDBParamSpec.h"
Expand Down
3 changes: 2 additions & 1 deletion Detectors/TPC/calibration/src/IDCAverageGroup.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
#include "TPCCalibration/IDCDrawHelper.h"
#include "CommonUtils/TreeStreamRedirector.h"
#include "TPCBase/Mapper.h"
#include "TPCCore/PadFlags.h"
#include "CommonConstants/MathConstants.h"

// root includes
#include "TFile.h"
#include "TKey.h"
#include "TPCBase/Painter.h"
#include "TPCCore/Painter.h"
#include "TH2Poly.h"
#include "TCanvas.h"
#include "TLatex.h"
Expand Down
2 changes: 1 addition & 1 deletion Detectors/TPC/calibration/src/IDCCCDBHelper.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "TPCBase/CalDet.h"
#include "TPCBase/Mapper.h"
#include "CommonUtils/TreeStreamRedirector.h"
#include "TPCBase/Painter.h"
#include "TPCCore/Painter.h"

#include "TStyle.h"
#include "TLine.h"
Expand Down
2 changes: 1 addition & 1 deletion Detectors/TPC/calibration/src/IDCDrawHelper.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// or submit itself to any jurisdiction.

#include "TPCCalibration/IDCDrawHelper.h"
#include "TPCBase/Painter.h"
#include "TPCCore/Painter.h"
#include "TPCBase/Mapper.h"
#include "TH2Poly.h"
#include "TCanvas.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/// \author Matthias Kleiner <mkleiner@ikf.uni-frankfurt.de>

#include "TPCCalibration/PressureTemperatureHelper.h"
#include "TPCBase/CDBTypes.h"
#include "TPCCore/CDBTypes.h"
#include "Framework/ProcessingContext.h"
#include "DataFormatsTPC/DCS.h"
#include "Framework/InputRecord.h"
Expand Down
2 changes: 1 addition & 1 deletion Detectors/TPC/calibration/src/SACDrawHelper.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// or submit itself to any jurisdiction.

#include "TPCCalibration/SACDrawHelper.h"
#include "TPCBase/Painter.h"
#include "TPCCore/Painter.h"
#include "TH2Poly.h"
#include "TCanvas.h"
#include "TLatex.h"
Expand Down
2 changes: 1 addition & 1 deletion Detectors/TPC/calibration/src/VDriftHelper.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.

#include "TPCBase/CDBInterface.h"
#include "TPCCore/CDBInterface.h"
#include "TPCCalibration/VDriftHelper.h"
#include "DataFormatsTPC/LtrCalibData.h"
#include "TPCBase/ParameterGas.h"
Expand Down
35 changes: 35 additions & 0 deletions Detectors/TPC/core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Copyright 2019-2025 CERN and copyright holders of ALICE O2.
# See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
# All rights not expressly granted are reserved.
#
# This software is distributed under the terms of the GNU General Public
# License v3 (GPL Version 3), copied verbatim in the file "COPYING".
#
# In applying this license CERN does not waive the privileges and immunities
# granted to it by virtue of its status as an Intergovernmental Organization
# or submit itself to any jurisdiction.

o2_add_library(TPCCore
SOURCES src/DeadChannelMapCreator.cxx
src/Painter.cxx
src/CDBInterface.cxx
PUBLIC_LINK_LIBRARIES O2::TPCBase)

o2_target_root_dictionary(TPCCore
EXTRA_PATCH src/TPCFlagsMemberCustomStreamer.cxx
HEADERS include/TPCCore/Painter.h
include/TPCCore/PadFlags.h
include/TPCCore/DeadChannelMapCreator.h
include/TPCCore/CDBTypes.h
include/TPCCore/CDBInterface.h)

if(BUILD_SIMULATION)
# this test needs CCDB/XROOTD which is for sure
# available in the default-o2 software stack
o2_add_test(CalDet
COMPONENT_NAME tpc
PUBLIC_LINK_LIBRARIES O2::TPCCore
SOURCES test/testTPCCalDet.cxx
ENVIRONMENT O2_ROOT=${CMAKE_BINARY_DIR}/stage
LABELS tpc)
endif()
Loading