DetSimAna: optimize the creation of collections
Merge request reports
Activity
Filter activity
It looks like the TPC sensitive detector create multiple collections, which are not defined in DD4hep.
TimeProjectionChamberSensitiveDetector::TimeProjectionChamberSensitiveDetector(const std::string& name, dd4hep::Detector& description) : DDG4SensitiveDetector(name, description){ G4String CollName1=name+"Collection"; collectionName.insert(CollName1); G4String CollName2=name+"SpacePointCollection"; collectionName.insert(CollName2); G4String CollName3=name+"LowPtCollection"; collectionName.insert(CollName3); }
added 1 commit
- 571606e4 - Add the collection names which are defined in Geant4 only.
The current output:
$ podio-dump sim00.root /cvmfs/cepcsw.ihep.ac.cn/prototype/releases/externals/103.0.2/podio/python/podio/EventStore.py:4: FutureWarning: The EventStore based I/O model is deprecated and will be removed. Switch to the Frame based model. warnings.warn("The EventStore based I/O model is deprecated and will be removed. Switch to the Frame based model.", input file: sim00.root datamodel model definitions stored in this file: edm4hep Frame categories in this file: Name Entries ------------------------------- metadata 1 events 50 configuration_metadata 1 ################################### events: 0 #################################### Collections: Name ValueType Size ID ------------------------------------ ---------------------------- ------ -------- COILCollection edm4hep::SimTrackerHit 0 147020d7 EcalBarrelCollection edm4hep::SimCalorimeterHit 343 62f19310 EcalBarrelContributionCollection edm4hep::CaloHitContribution 1021 1d62bb3c EcalEndcapRingCollection edm4hep::SimCalorimeterHit 0 cdf19862 EcalEndcapRingContributionCollection edm4hep::CaloHitContribution 0 9787df21 EcalEndcapsCollection edm4hep::SimCalorimeterHit 3 d6d26d20 EcalEndcapsContributionCollection edm4hep::CaloHitContribution 4 76f42533 FTDCollection edm4hep::SimTrackerHit 0 70ad1764 HcalBarrelCollection edm4hep::SimCalorimeterHit 119 79de5c59 HcalBarrelContributionCollection edm4hep::CaloHitContribution 423 72aae123 HcalEndcapRingCollection edm4hep::SimCalorimeterHit 0 2cf7e1be HcalEndcapRingContributionCollection edm4hep::CaloHitContribution 0 f1b1248c HcalEndcapsCollection edm4hep::SimCalorimeterHit 0 4cc49016 HcalEndcapsContributionCollection edm4hep::CaloHitContribution 0 7b5051d9 LumicalCollection edm4hep::SimCalorimeterHit 0 0c3f838d LumicalContributionCollection edm4hep::CaloHitContribution 0 67fa7bb2 MCParticle edm4hep::MCParticle 1 0620d570 MCParticleGen edm4hep::MCParticle 1 c68708c1 MuonBarrelCollection edm4hep::SimTrackerHit 9 04a280b6 MuonEndcapCollection edm4hep::SimTrackerHit 0 2ab15148 OTKBarrelCollection edm4hep::SimTrackerHit 2 fb202d5d OTKEndcapCollection edm4hep::SimTrackerHit 0 b96b0de9 SETCollection edm4hep::SimTrackerHit 0 0426d8e5 SITCollection edm4hep::SimTrackerHit 3 3d720f34 TPCCollection edm4hep::SimTrackerHit 223 1649dae6 TPCLowPtCollection edm4hep::SimTrackerHit 0 ea1366dc TPCSpacePointCollection edm4hep::SimTrackerHit 0 18f61713 VXDCollection edm4hep::SimTrackerHit 6 67202e26 Parameters: Name Type Elements ------ ------ ----------
mentioned in commit fe933a0b
Please register or sign in to reply