Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-11-10 02:38:12

0001 // Build a working release including the desired class versions in the
0002 // class definitions and classes_def.xml files. You might need to add or
0003 // remove lines below to get the StreamerInfo objects for the desired classes.
0004 // Then run the following to execute this script:
0005 //
0006 //   root -l -b -q makeFileContainingStreamerInfos.C
0007 //
0008 // Then rename the output file as appropriate. If it is of general use
0009 // you might want to reposit the file in the IOPool/Input data repository.
0010 // This output file can be used by the service named FixMissingStreamerInfos.
0011 
0012 #include <iostream>
0013 
0014 void makeFileContainingStreamerInfos() {
0015   std::cout << "Executing makeFileContainingStreamerInfos()" << std::endl;
0016   auto f = TFile::Open("fileContainingStreamerInfos.root", "NEW");
0017 
0018   TClass::GetClass("BeamSpotOnline")->GetStreamerInfo()->ForceWriteInfo(f);
0019   TClass::GetClass("CTPPSLocalTrackLite")->GetStreamerInfo()->ForceWriteInfo(f);
0020   TClass::GetClass("CTPPSPixelDataError")->GetStreamerInfo()->ForceWriteInfo(f);
0021   TClass::GetClass("CTPPSPixelDigi")->GetStreamerInfo()->ForceWriteInfo(f);
0022   TClass::GetClass("CorrMETData")->GetStreamerInfo()->ForceWriteInfo(f);
0023   TClass::GetClass("DcsStatus")->GetStreamerInfo()->ForceWriteInfo(f);
0024   TClass::GetClass("EcalTriggerPrimitiveSample")->GetStreamerInfo()->ForceWriteInfo(f);
0025   TClass::GetClass("HaloTowerStrip")->GetStreamerInfo()->ForceWriteInfo(f);
0026   TClass::GetClass("HcalElectronicsId")->GetStreamerInfo()->ForceWriteInfo(f);
0027   TClass::GetClass("L1AcceptBunchCrossing")->GetStreamerInfo()->ForceWriteInfo(f);
0028   TClass::GetClass("L1GctEmCand")->GetStreamerInfo()->ForceWriteInfo(f);
0029   TClass::GetClass("L1GctEtHad")->GetStreamerInfo()->ForceWriteInfo(f);
0030   TClass::GetClass("L1GctEtMiss")->GetStreamerInfo()->ForceWriteInfo(f);
0031   TClass::GetClass("L1GctEtTotal")->GetStreamerInfo()->ForceWriteInfo(f);
0032   TClass::GetClass("L1GctHFBitCounts")->GetStreamerInfo()->ForceWriteInfo(f);
0033   TClass::GetClass("L1GctHFRingEtSums")->GetStreamerInfo()->ForceWriteInfo(f);
0034   TClass::GetClass("L1GctHtMiss")->GetStreamerInfo()->ForceWriteInfo(f);
0035   TClass::GetClass("L1GctJetCand")->GetStreamerInfo()->ForceWriteInfo(f);
0036   TClass::GetClass("L1GctJetCounts")->GetStreamerInfo()->ForceWriteInfo(f);
0037   TClass::GetClass("L1GtFdlWord")->GetStreamerInfo()->ForceWriteInfo(f);
0038   TClass::GetClass("L1GtPsbWord")->GetStreamerInfo()->ForceWriteInfo(f);
0039   TClass::GetClass("L1MuGMTReadoutRecord")->GetStreamerInfo()->ForceWriteInfo(f);
0040   TClass::GetClass("L1TriggerScalers")->GetStreamerInfo()->ForceWriteInfo(f);
0041   TClass::GetClass("Level1TriggerScalers")->GetStreamerInfo()->ForceWriteInfo(f);
0042   TClass::GetClass("LumiScalers")->GetStreamerInfo()->ForceWriteInfo(f);
0043   TClass::GetClass("Measurement1DFloat")->GetStreamerInfo()->ForceWriteInfo(f);
0044   TClass::GetClass("PixelFEDChannel")->GetStreamerInfo()->ForceWriteInfo(f);
0045   TClass::GetClass("Run3ScoutingParticle")->GetStreamerInfo()->ForceWriteInfo(f);
0046   TClass::GetClass("Run3ScoutingTrack")->GetStreamerInfo()->ForceWriteInfo(f);
0047   TClass::GetClass("Run3ScoutingVertex")->GetStreamerInfo()->ForceWriteInfo(f);
0048   TClass::GetClass("TotemFEDInfo")->GetStreamerInfo()->ForceWriteInfo(f);
0049   TClass::GetClass("ZDCDataFrame")->GetStreamerInfo()->ForceWriteInfo(f);
0050   TClass::GetClass("ZDCRecHit")->GetStreamerInfo()->ForceWriteInfo(f);
0051   TClass::GetClass("edm::DetSet<CTPPSDiamondDigi>")->GetStreamerInfo()->ForceWriteInfo(f);
0052   TClass::GetClass("edm::DetSet<CTPPSDiamondLocalTrack>")->GetStreamerInfo()->ForceWriteInfo(f);
0053   TClass::GetClass("edm::DetSet<CTPPSDiamondRecHit>")->GetStreamerInfo()->ForceWriteInfo(f);
0054   TClass::GetClass("edm::DetSet<CTPPSPixelLocalTrack>")->GetStreamerInfo()->ForceWriteInfo(f);
0055   TClass::GetClass("edm::DetSet<TotemRPCluster>")->GetStreamerInfo()->ForceWriteInfo(f);
0056   TClass::GetClass("edm::DetSet<TotemRPDigi>")->GetStreamerInfo()->ForceWriteInfo(f);
0057   TClass::GetClass("edm::DetSet<TotemRPLocalTrack>")->GetStreamerInfo()->ForceWriteInfo(f);
0058   TClass::GetClass("edm::DetSet<TotemRPRecHit>")->GetStreamerInfo()->ForceWriteInfo(f);
0059   TClass::GetClass("edm::DetSet<TotemRPUVPattern>")->GetStreamerInfo()->ForceWriteInfo(f);
0060   TClass::GetClass("edm::DetSet<TotemTimingDigi>")->GetStreamerInfo()->ForceWriteInfo(f);
0061   TClass::GetClass("edm::DetSet<TotemTimingLocalTrack>")->GetStreamerInfo()->ForceWriteInfo(f);
0062   TClass::GetClass("edm::DetSet<TotemTimingRecHit>")->GetStreamerInfo()->ForceWriteInfo(f);
0063   TClass::GetClass("edm::HLTPathStatus")->GetStreamerInfo()->ForceWriteInfo(f);
0064   TClass::GetClass("edm::IndexIntoFile::RunOrLumiEntry")->GetStreamerInfo()->ForceWriteInfo(f);
0065   TClass::GetClass("edm::RefCoreWithIndex")->GetStreamerInfo()->ForceWriteInfo(f);
0066   TClass::GetClass("edm::StoredMergeableRunProductMetadata::SingleRunEntry")->GetStreamerInfo()->ForceWriteInfo(f);
0067   TClass::GetClass("edm::StoredMergeableRunProductMetadata::SingleRunEntryAndProcess")
0068       ->GetStreamerInfo()
0069       ->ForceWriteInfo(f);
0070   TClass::GetClass("edm::StoredProductProvenance")->GetStreamerInfo()->ForceWriteInfo(f);
0071   TClass::GetClass("edm::ThinnedAssociationBranches")->GetStreamerInfo()->ForceWriteInfo(f);
0072   TClass::GetClass("l1t::CaloTower")->GetStreamerInfo()->ForceWriteInfo(f);
0073   TClass::GetClass("l1t::RegionalMuonShower")->GetStreamerInfo()->ForceWriteInfo(f);
0074   TClass::GetClass("reco::DeDxData")->GetStreamerInfo()->ForceWriteInfo(f);
0075   TClass::GetClass("reco::ElectronSeed::PMVars")->GetStreamerInfo()->ForceWriteInfo(f);
0076   TClass::GetClass("reco::ForwardProton")->GetStreamerInfo()->ForceWriteInfo(f);
0077   TClass::GetClass("reco::JetID")->GetStreamerInfo()->ForceWriteInfo(f);
0078   TClass::GetClass("reco::MuonCosmicCompatibility")->GetStreamerInfo()->ForceWriteInfo(f);
0079   TClass::GetClass("reco::MuonGEMHitMatch")->GetStreamerInfo()->ForceWriteInfo(f);
0080   TClass::GetClass("reco::MuonMETCorrectionData")->GetStreamerInfo()->ForceWriteInfo(f);
0081   TClass::GetClass("reco::MuonRPCHitMatch")->GetStreamerInfo()->ForceWriteInfo(f);
0082   TClass::GetClass("reco::MuonTimeExtra")->GetStreamerInfo()->ForceWriteInfo(f);
0083   TClass::GetClass("reco::PhiWedge")->GetStreamerInfo()->ForceWriteInfo(f);
0084   TClass::GetClass("reco::RecoEcalCandidate")->GetStreamerInfo()->ForceWriteInfo(f);
0085   TClass::GetClass("trigger::TriggerObject")->GetStreamerInfo()->ForceWriteInfo(f);
0086 
0087   TClass::GetClass("l1t::MuonShower")->GetStreamerInfo()->ForceWriteInfo(f);
0088 
0089   delete f;
0090 }