Skip to content

Commit

Permalink
Merge e83336c into sapling-pr-archive-ktf
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf authored Jan 9, 2024
2 parents 682aba9 + e83336c commit 2893781
Show file tree
Hide file tree
Showing 16 changed files with 55 additions and 38 deletions.
12 changes: 12 additions & 0 deletions Detectors/ITSMFT/ITS/macros/test/CheckClusters.C
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
/// \file CheckClusters.C
/// \brief Simple macro to check ITSU clusters

#include <TCanvas.h>
#include <TFile.h>
#include <TH2F.h>
#include <TNtuple.h>
#include <TString.h>
#include <TTree.h>

#include "ITSMFTBase/SegmentationAlpide.h"
#include "ITSBase/GeometryTGeo.h"
#include "DataFormatsITSMFT/CompCluster.h"
#include "DataFormatsITSMFT/TopologyDictionary.h"
#include "ITSMFTSimulation/Hit.h"
#if !defined(__CLING__) || defined(__ROOTCLING__)
#include <TCanvas.h>
#include <TFile.h>
Expand Down
5 changes: 2 additions & 3 deletions Detectors/ITSMFT/ITS/macros/test/CheckDuplicates.C
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@
#include <TStyle.h>
#include <TGaxis.h>

#include "DataFormatsITSMFT/ROFRecord.h"
#include "DataFormatsITS/TrackITS.h"
#include "Framework/Logger.h"

#include "DataFormatsITS/TrackITS.h"
#endif
#include "DataFormatsITSMFT/ROFRecord.h"

void CheckDuplicates(TString tracfile = "./o2trac_its.root", TString output = ".", TString rootSave = "", int rofStart = 0, int rofEnd = -1, int windowSize = 2, bool includeSame = 1)
{
Expand Down
10 changes: 5 additions & 5 deletions Detectors/ITSMFT/ITS/macros/test/CheckTracks.C
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@

#include "TGeoGlobalMagField.h"
#include "Field/MagneticField.h"
#include "DetectorsBase/Propagator.h"
#include "ITSBase/GeometryTGeo.h"
#include "SimulationDataFormat/TrackReference.h"
#include "DataFormatsITS/TrackITS.h"
#include "SimulationDataFormat/MCTrack.h"
#include "SimulationDataFormat/MCCompLabel.h"
#include "SimulationDataFormat/MCTruthContainer.h"
#include "DataFormatsITSMFT/CompCluster.h"
#include "DataFormatsITS/TrackITS.h"
#include "SimulationDataFormat/TrackReference.h"
#include "DetectorsBase/Propagator.h"

#endif
#include "DataFormatsITSMFT/CompCluster.h"
#include "SimulationDataFormat/MCTruthContainer.h"

using namespace std;

Expand Down
2 changes: 1 addition & 1 deletion Detectors/ITSMFT/ITS/macros/test/CheckTracksCA.C
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
#include "SimulationDataFormat/MCTrack.h"
#include "SimulationDataFormat/MCCompLabel.h"
#include "SimulationDataFormat/MCTruthContainer.h"
#include "DataFormatsITSMFT/CompCluster.h"
#include "DataFormatsITS/TrackITS.h"

#endif
#include "DataFormatsITSMFT/CompCluster.h"

using namespace std;

Expand Down
3 changes: 2 additions & 1 deletion Detectors/ITSMFT/ITS/macros/test/CheckVertices.C
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "DataFormatsITSMFT/ROFRecord.h"
#include "DataFormatsITS/TrackITS.h"
#endif
#include "DataFormatsITSMFT/CompCluster.h"

o2::MCCompLabel getMainLabel(std::vector<o2::MCCompLabel>& labs);

Expand Down Expand Up @@ -335,4 +336,4 @@ void CheckVertices(const int dumprof = -1, std::string path = "tf1/", std::strin
LOGP(info, "Summary:");
LOGP(info, "Found {} vertices in {} usable out of {} simulated", nvt, nevts, simVerts.size());
LOGP(info, "Average good vertexing efficiency: {}%", (addeff / (float)nroffilled) * 100);
}
}
2 changes: 1 addition & 1 deletion Detectors/ITSMFT/ITS/macros/test/run_digi2rawVarPage_its.C
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
#include "DataFormatsITSMFT/ROFRecord.h"
#include "DataFormatsParameters/GRPObject.h"
#include "DataFormatsITSMFT/Digit.h"
#include "ITSMFTSimulation/MC2RawEncoder.h"
#endif

#include "ITSMFTSimulation/MC2RawEncoder.h"
// demo macro the MC->raw conversion with new (variable page size) format
void setupLinks(o2::itsmft::MC2RawEncoder<o2::itsmft::ChipMappingITS>& m2r, const std::string& outPrefix);

Expand Down
17 changes: 8 additions & 9 deletions Detectors/MUON/MCH/Geometry/Test/misAlign.C
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
#include "DetectorsBase/MaterialManager.h"
#include "DetectorsCommonDataFormats/AlignParam.h"
#if !defined(__CLING__) || defined(__ROOTCLING__)

//#include "MCHGeometryTest/Helpers.h"
#include "DetectorsBase/GeometryManager.h"
#include "DetectorsBase/MaterialManager.h"
#include "DetectorsCommonDataFormats/AlignParam.h"
#include "DetectorsCommonDataFormats/DetID.h"
#include "DetectorsCommonDataFormats/DetectorNameConf.h"

#include "MCHGeometryMisAligner/MisAligner.h"
#include "MCHGeometryTransformer/Transformations.h"

#include "MCHGeometryTest/Helpers.h"
#include "MCHGeometryCreator/Geometry.h"
#include "CCDB/CcdbApi.h"

#include "MathUtils/Cartesian.h"
#include "Math/GenVector/Cartesian3D.h"
#include "TGLRnrCtx.h"
#include "TGLViewer.h"
#include "TGeoManager.h"
Expand All @@ -26,7 +19,13 @@

#include <iostream>
#include <fmt/format.h>
#include "MCHGeometryTest/Helpers.h"
#include "MCHGeometryCreator/Geometry.h"
#include "CCDB/CcdbApi.h"

#include "MathUtils/Cartesian.h"
#include "Math/GenVector/Cartesian3D.h"
#include "DetectorsBase/GeometryManager.h"
#endif

// void misAlign()
Expand Down
2 changes: 1 addition & 1 deletion Detectors/TOF/prototyping/convertTreeTo02object.C
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#include "TTree.h"
#include "TLeaf.h"
#include <stdio.h>
#include "DataFormatsTOF/CalibInfoTOF.h"
#endif
#include "DataFormatsTOF/CalibInfoTOF.h"

void convertTreeTo02object()
{
Expand Down
6 changes: 3 additions & 3 deletions Detectors/TOF/prototyping/findTOFclusterFromLabel.C
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#if !defined(__CLING__) || defined(__ROOTCLING__)
#include "TFile.h"
#include "TTree.h"
#include "DataFormatsTOF/Cluster.h"
#include "SimulationDataFormat/MCTruthContainer.h"
#include "SimulationDataFormat/MCCompLabel.h"
#include "SimulationDataFormat/MCTrack.h"
#include "DataFormatsTPC/TrackTPC.h"
#include "ReconstructionDataFormats/TrackTPCITS.h"
#include "CommonDataFormat/EvIndex.h"
#include "TOFBase/Geo.h"
#include "DataFormatsTPC/TrackTPC.h"
#include "TOFBase/Digit.h"
#endif
#include "SimulationDataFormat/MCTruthContainer.h"
#include "DataFormatsTOF/Cluster.h"

void findTOFclusterFromLabel(int trackID, int eventID = 0, int sourceID = 0)
{
Expand Down
1 change: 1 addition & 0 deletions Detectors/TPC/simulation/macro/toyCluster.C
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
#include "TPCSimulation/GEMAmplification.h"
#endif
#include <boost/property_tree/ptree.hpp>
#include "DataFormatsTPC/Helpers.h"

using namespace o2::tpc;
void fillTPCHits(const float theta, const float phi, const float dedx, std::vector<HitGroup>& hitGroupSector, std::pair<GlobalPosition3D, GlobalPosition3D>& trackInfo);
Expand Down
3 changes: 2 additions & 1 deletion Detectors/Upgrades/ITS3/macros/test/CheckClusterSize.C
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@
#include "SimulationDataFormat/MCCompLabel.h"
#include "SimulationDataFormat/MCEventHeader.h"
#include "SimulationDataFormat/MCTrack.h"
#include "SimulationDataFormat/MCTruthContainer.h"
#endif
#define ENABLE_UPGRADES
#include "SimulationDataFormat/MCTruthContainer.h"

static constexpr int nLayers = 4; // 3 Layers + 1 combined outer layer

Expand Down
2 changes: 1 addition & 1 deletion Detectors/Upgrades/ITS3/macros/test/CheckHits.C
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
#include <utility>
#include <vector>

#endif
#define ENABLE_UPGRADES
#include "CommonConstants/MathConstants.h"
#include "ITS3Base/SegmentationSuperAlpide.h"
#include "ITSMFTSimulation/Hit.h"
#include "SimulationDataFormat/MCTrack.h"
#endif

using o2::itsmft::Hit;

Expand Down
20 changes: 10 additions & 10 deletions Detectors/Upgrades/ITS3/macros/test/CheckTracksITS3.C
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,17 @@
/// \file CheckTracksITS3.C
/// \brief Simple macro to check ITS3 tracks

#include <iostream>
#if !defined(__CLING__) || defined(__ROOTCLING__)
#include <TROOT.h>

#include "DataFormatsITS/TrackITS.h"
#include "TGeoGlobalMagField.h"
#include "Field/MagneticField.h"
#include "DetectorsBase/Propagator.h"
#include "ITSBase/GeometryTGeo.h"
#include "DataFormatsITS3/CompCluster.h"
#endif
#include <array>
#include <cmath>
#include <iostream>
Expand All @@ -26,23 +36,13 @@
#include <THStack.h>
#include <TLegend.h>
#include <TPad.h>
#include <TROOT.h>

#include "TGeoGlobalMagField.h"
#include "Field/MagneticField.h"
#include "DataFormatsITS3/CompCluster.h"
#include "DataFormatsITSMFT/CompCluster.h"
#include "DataFormatsITS/TrackITS.h"
#include "DetectorsBase/Propagator.h"
#include "ITSBase/GeometryTGeo.h"
#include "SimulationDataFormat/TrackReference.h"
#include "SimulationDataFormat/MCTrack.h"
#include "SimulationDataFormat/MCCompLabel.h"
#include "SimulationDataFormat/MCTruthContainer.h"
#include "SimulationDataFormat/MCEventHeader.h"

#endif

using namespace std;

struct ParticleInfo {
Expand Down
2 changes: 1 addition & 1 deletion Detectors/ZDC/macro/readZDCDigits.C
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
#include <TStopwatch.h>
#include <memory>
#include <iostream>
#include "DataFormatsZDC/BCData.h"
#include "DataFormatsZDC/ChannelData.h"
#include "SimulationDataFormat/MCTruthContainer.h"
#include "SimulationDataFormat/MCCompLabel.h"

#endif

#include "DataFormatsZDC/BCData.h"
#include "DataFormatsZDC/MCLabel.h"
#include "Framework/Logger.h"

Expand Down
4 changes: 4 additions & 0 deletions Framework/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* Improved C++20 support. Most of the macros which were failing when C++20
support is enabled now seem to work fine. The issue seems to be related to
some forward declaration logic which seems to be not working correctly in
ROOT 6.30.01. The issue is discussed in <https://github.com/root-project/root/issues/14230> and it seems to be not trivial to fix with the current ROOT version.
2 changes: 1 addition & 1 deletion macro/run_clus_tpc.C
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#include "FairParRootFileIo.h"
#include <FairRootFileSink.h>

#include "TPCReconstruction/ClustererTask.h"
#endif
#include "TPCReconstruction/ClustererTask.h"

void run_clus_tpc(std::string outputfile = "o2clus_tpc.root", std::string inputfile = "o2dig.root",
std::string paramfile = "o2sim_par.root", bool isContinuous = true, unsigned threads = 0);
Expand Down

0 comments on commit 2893781

Please sign in to comment.