Skip to content

Commit

Permalink
Merge pull request #409 from macndev/artv30800
Browse files Browse the repository at this point in the history
Art v3_09_00 + geant4 v4_10_7_p01c Upgrade
  • Loading branch information
kutschke committed May 29, 2021
2 parents c2dc425 + 545d1ad commit dcea32f
Show file tree
Hide file tree
Showing 243 changed files with 908 additions and 565 deletions.
2 changes: 1 addition & 1 deletion .muse
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# prefer to build with this environment
ENVSET p005
ENVSET p008
# add these to python path
PYTHONPATH TrackerAlignment/scripts
PYTHONPATH Trigger/python
Expand Down
1 change: 1 addition & 0 deletions Analyses/src/BFieldPlotter_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "art/Framework/Principal/Handle.h"
#include "art/Framework/Core/ModuleMacros.h"
#include "art_root_io/TFileService.h"
#include "art/Framework/Services/Registry/ServiceDefinitionMacros.h"

// ROOT includes
#include "TFile.h"
Expand Down
1 change: 1 addition & 0 deletions Analyses/src/CORSIKAGenPlots_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "art/Framework/Principal/SubRun.h"
#include "art_root_io/TFileService.h"
#include "art/Framework/Services/Registry/ServiceHandle.h"
#include "art/Framework/Services/Registry/ServiceDefinitionMacros.h"

#include "canvas/Utilities/InputTag.h"
#include "fhiclcpp/ParameterSet.h"
Expand Down
1 change: 1 addition & 0 deletions Analyses/src/CRYGenPlots_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "art/Framework/Principal/SubRun.h"
#include "art_root_io/TFileService.h"
#include "art/Framework/Services/Registry/ServiceHandle.h"
#include "art/Framework/Services/Registry/ServiceDefinitionMacros.h"

#include "canvas/Utilities/InputTag.h"
#include "fhiclcpp/ParameterSet.h"
Expand Down
1 change: 1 addition & 0 deletions Analyses/src/CaloCalib_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include "art/Framework/Principal/Handle.h"
#include "art/Framework/Principal/Selector.h"
#include "art/Framework/Principal/Provenance.h"
#include "art/Framework/Services/Registry/ServiceDefinitionMacros.h"
#include "cetlib_except/exception.h"
#include "fhiclcpp/ParameterSet.h"
#include "messagefacility/MessageLogger/MessageLogger.h"
Expand Down
1 change: 1 addition & 0 deletions Analyses/src/CaloDigiAna_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "art_root_io/TFileDirectory.h"
#include "messagefacility/MessageLogger/MessageLogger.h"
#include "art/Framework/Services/Optional/RandomNumberGenerator.h"
#include "art/Framework/Services/Registry/ServiceDefinitionMacros.h"

// Mu2e includes.
#include "CalorimeterGeom/inc/Calorimeter.hh"
Expand Down
1 change: 1 addition & 0 deletions Analyses/src/CaloHitFinderInspect_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "art/Framework/Principal/Handle.h"
#include "art/Framework/Principal/Selector.h"
#include "art/Framework/Principal/Provenance.h"
#include "art/Framework/Services/Registry/ServiceDefinitionMacros.h"
#include "cetlib_except/exception.h"
#include "fhiclcpp/ParameterSet.h"
#include "messagefacility/MessageLogger/MessageLogger.h"
Expand Down
1 change: 1 addition & 0 deletions Analyses/src/CaloTrackMatchExample_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "art/Framework/Principal/Handle.h"
#include "art/Framework/Principal/Selector.h"
#include "art/Framework/Principal/Provenance.h"
#include "art/Framework/Services/Registry/ServiceDefinitionMacros.h"
#include "cetlib_except/exception.h"
#include "fhiclcpp/ParameterSet.h"
#include "messagefacility/MessageLogger/MessageLogger.h"
Expand Down
6 changes: 2 additions & 4 deletions Analyses/src/CollectionSizeAnalyzer_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ namespace mu2e {

//================================================================
void CollectionSizeAnalyzer::doStepPoints(const art::Event& event) {
std::vector<art::Handle<StepPointMCCollection> > stepHandles;
event.getManyByType(stepHandles);
std::vector<art::Handle<StepPointMCCollection> > stepHandles = event.getMany<StepPointMCCollection>();
for(const auto& c: stepHandles) {
const std::string cn = getCollectionName(c);
hStepPointSize_->Fill(cn.c_str(), double(c->size()));
Expand All @@ -126,8 +125,7 @@ namespace mu2e {

//================================================================
void CollectionSizeAnalyzer::doSimParticles(const art::Event& event) {
std::vector<art::Handle<SimParticleCollection> > stepHandles;
event.getManyByType(stepHandles);
std::vector<art::Handle<SimParticleCollection> > stepHandles = event.getMany<SimParticleCollection>();
for(const auto& c: stepHandles) {
const std::string cn = getCollectionName(c);
hSimParticleDistLin_->Fill(cn.c_str(), double(c->size()), 1.);
Expand Down
3 changes: 1 addition & 2 deletions Analyses/src/DiskCal00_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,7 @@ namespace mu2e {

void DiskCal00::simCheck(const art::Event& event) {
typedef std::vector< art::Handle<SimParticleCollection> > HandleVector;
HandleVector allSims;
event.getManyByType(allSims);
HandleVector allSims = event.getMany<SimParticleCollection>();
cout << "Size: " << allSims.size() << endl;

for ( HandleVector::const_iterator i=allSims.begin(), e=allSims.end(); i != e; ++i ){
Expand Down
24 changes: 8 additions & 16 deletions Analyses/src/PointerCheck_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -149,62 +149,55 @@ namespace mu2e {
//================================================================
void PointerCheck::analyze(art::Event const& event) {

std::vector< art::Handle<SimParticleCollection> > vah_sp;
event.getManyByType(vah_sp);
std::vector< art::Handle<SimParticleCollection> > vah_sp = event.getMany<SimParticleCollection>();
for (auto const & ah : vah_sp) {
if(!excludedCollection(*ah.provenance(),_SPtags)) {
printProvenance(*ah.provenance());
checkSimParticle(*ah);
} // endif excluded
} // loop over handles

std::vector< art::Handle<StepPointMCCollection> > vah_st;
event.getManyByType(vah_st);
std::vector< art::Handle<StepPointMCCollection> > vah_st = event.getMany<StepPointMCCollection>();
for (auto const & ah : vah_st) {
if(!excludedCollection(*ah.provenance(),_SPMCtags)) {
printProvenance(*ah.provenance());
checkStepPointMC(*ah);
} // endif excluded
} // loop over handles

std::vector< art::Handle<MCTrajectoryCollection> > vah_tr;
event.getManyByType(vah_tr);
std::vector< art::Handle<MCTrajectoryCollection> > vah_tr = event.getMany<MCTrajectoryCollection>();
for (auto const & ah : vah_tr) {
if(!excludedCollection(*ah.provenance(),_trajtags)) {
printProvenance(*ah.provenance());
checkMCTrajectory(*ah);
} // endif excluded
} // loop over handles

std::vector< art::Handle<SimParticlePtrCollection> > vah_pp;
event.getManyByType(vah_pp);
std::vector< art::Handle<SimParticlePtrCollection> > vah_pp = event.getMany<SimParticlePtrCollection>();
for (auto const & ah : vah_pp) {
if(!excludedCollection(*ah.provenance(),_trajtags)) {
printProvenance(*ah.provenance());
checkSimParticlePtr(*ah);
} // endif excluded
} // loop over handles

std::vector< art::Handle<StrawDigiMCCollection> > vah_sd;
event.getManyByType(vah_sd);
std::vector< art::Handle<StrawDigiMCCollection> > vah_sd = event.getMany<StrawDigiMCCollection>();
for (auto const & ah : vah_sd) {
if(!excludedCollection(*ah.provenance(),_trkDMCtags)) {
printProvenance(*ah.provenance());
checkStrawDigiMC(*ah);
} // endif excluded
} // loop over handles

std::vector< art::Handle<CaloHitMCCollection> > vah_cd;
event.getManyByType(vah_cd);
std::vector< art::Handle<CaloHitMCCollection> > vah_cd = event.getMany<CaloHitMCCollection>();
for (auto const & ah : vah_cd) {
if(!excludedCollection(*ah.provenance(),_calDMCtags)) {
printProvenance(*ah.provenance());
checkCaloHitMC(*ah);
} // endif excluded
} // loop over handles
std::cout << "Startgin shower steps" << std::endl;
std::vector< art::Handle<CaloShowerStepCollection> > vah_cs;
event.getManyByType(vah_cs);
std::vector< art::Handle<CaloShowerStepCollection> > vah_cs = event.getMany<CaloShowerStepCollection>();
for (auto const & ah : vah_cs) {
if(!excludedCollection(*ah.provenance(),_calCSStags)) {
printProvenance(*ah.provenance());
Expand All @@ -213,8 +206,7 @@ namespace mu2e {
} // loop over handles

std::cout << "Starting crvMC" << std::endl;
std::vector< art::Handle<CrvDigiMCCollection> > vah_cm;
event.getManyByType(vah_cm);
std::vector< art::Handle<CrvDigiMCCollection> > vah_cm = event.getMany<CrvDigiMCCollection>();
for (auto const & ah : vah_cm) {
if(!excludedCollection(*ah.provenance(),_crvDMCtags)) {
printProvenance(*ah.provenance());
Expand Down
3 changes: 1 addition & 2 deletions Analyses/src/ReadBack_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,7 @@ namespace mu2e {

// These selectors will select data products with the given instance name, and ignore all other fields of the product ID.
art::ProductInstanceNameSelector getCrystalSteps(_calorimeterStepPoints);
HandleVector crystalStepsHandles;
event.getMany( getCrystalSteps, crystalStepsHandles);
HandleVector crystalStepsHandles = event.getMany<StepPointMCCollection>(getCrystalSteps);

//Calorimeter shower MC
art::Handle<CaloShowerSimCollection> caloShowerSimHandle;
Expand Down
4 changes: 2 additions & 2 deletions Analyses/src/ReadCaloDigi_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "art_root_io/TFileDirectory.h"
#include "messagefacility/MessageLogger/MessageLogger.h"
#include "art/Framework/Services/Optional/RandomNumberGenerator.h"
#include "art/Framework/Services/Registry/ServiceDefinitionMacros.h"

// Mu2e includes.
#include "CalorimeterGeom/inc/Calorimeter.hh"
Expand Down Expand Up @@ -449,10 +450,9 @@ namespace mu2e {

//Handle to VD steps
art::ProductInstanceNameSelector selector_vdhits("virtualdetector");
StepMCHandleVector vdStepsHandleVec;
art::Handle<StepPointMCCollection> *vdStepsHandle;
const StepPointMCCollection *vdHits;
event.getMany(selector_vdhits, vdStepsHandleVec);
StepMCHandleVector vdStepsHandleVec = event.getMany<StepPointMCCollection>(selector_vdhits);


//Handle to tracks collection
Expand Down
1 change: 1 addition & 0 deletions Analyses/src/ReadStrawHitReco_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "art/Framework/Services/Registry/ServiceHandle.h"
#include "art_root_io/TFileService.h"
#include "art/Framework/Principal/Provenance.h"
#include "art/Framework/Services/Registry/ServiceDefinitionMacros.h"

#include "fhiclcpp/ParameterSet.h"

Expand Down
8 changes: 5 additions & 3 deletions Analyses/src/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ babarlibs = env['BABARLIBS']

extrarootlibs = [ 'Geom' ]

mainlib = helper.make_mainlib ( [] )
mainlib = helper.make_mainlib ( ['fhiclcpp_types',
'tbb',] )

helper.make_plugins( [ mainlib,
'mu2e_TrkExt',
Expand Down Expand Up @@ -49,14 +50,16 @@ helper.make_plugins( [ mainlib,
'art_Framework_Principal',
'art_Framework_Services_Registry',
'art_root_io_tfile_support',
'art_root_io_TFileService_service',
'art_root_io_TFileService',
'art_Framework_Services_Optional_RandomNumberGenerator_service',
'art_Persistency_Common',
'art_Persistency_Provenance',
'art_Utilities',
'canvas',
'MF_MessageLogger',
'fhiclcpp',
'fhiclcpp_types',
'tbb',
'cetlib',
'cetlib_except',
'CLHEP',
Expand All @@ -66,7 +69,6 @@ helper.make_plugins( [ mainlib,
extrarootlibs,
'xerces-c',
'boost_filesystem',
'boost_system',
'pthread',
'hep_concurrency',
'DTCInterface',
Expand Down
3 changes: 1 addition & 2 deletions Analyses/src/SimParticleCheck00_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ namespace mu2e {

void SimParticleCheck00::analyze(const art::Event& event) {
typedef std::vector< art::Handle<SimParticleCollection> > HandleVector;
HandleVector allSims;
event.getManyByType(allSims);
HandleVector allSims = event.getMany<SimParticleCollection>();

_hNCollections->Fill(allSims.size());

Expand Down
1 change: 1 addition & 0 deletions Analyses/src/VMMonitor_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

#include "art/Framework/Core/EDAnalyzer.h"
#include "art/Framework/Core/ModuleMacros.h"
#include "art/Framework/Principal/Event.h"

namespace mu2e {

Expand Down
5 changes: 3 additions & 2 deletions BFieldTest/src/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,20 @@ helper.make_plugins( [
'art_Framework_Principal',
'art_Framework_Services_Registry',
'art_root_io_tfile_support',
'art_root_io_TFileService_service',
'art_root_io_TFileService',
'art_Persistency_Common',
'art_Persistency_Provenance',
'art_Utilities',
'canvas',
'MF_MessageLogger',
'fhiclcpp',
'fhiclcpp_types',
'tbb',
'cetlib',
'cetlib_except',
'CLHEP',
rootlibs,
'boost_filesystem',
'boost_system',
# 'pthread',
] )

Expand Down
1 change: 0 additions & 1 deletion BTrkData/src/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ mainlib = helper.make_mainlib ( [
'cetlib',
'cetlib_except',
'CLHEP',
'boost_system',
] )


Expand Down
1 change: 0 additions & 1 deletion CRVAnalysis/src/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ mainlib = helper.make_mainlib ( [ 'CLHEP',
'art_Persistency_Provenance',
'art_Utilities',
'canvas',
'boost_system',
'cetlib',
'cetlib_except',
'Core']
Expand Down
2 changes: 2 additions & 0 deletions CRVFilters/src/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ helper.make_plugins( [ mainlib,
'art_Utilities',
'canvas',
'fhiclcpp',
'fhiclcpp_types',
'tbb',
'cetlib',
'cetlib_except',
rootlibs,
Expand Down
1 change: 1 addition & 0 deletions CRVResponse/src/CrvStepsFromStepPointMCs_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "fhiclcpp/types/Atom.h"
#include "fhiclcpp/types/Sequence.h"
#include "canvas/Utilities/InputTag.h"
#include "messagefacility/MessageLogger/MessageLogger.h"

#include "CLHEP/Units/GlobalPhysicalConstants.h"
#include "GeometryService/inc/GeomHandle.hh"
Expand Down
5 changes: 3 additions & 2 deletions CRVResponse/src/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,22 @@ helper.make_plugins( [ mainlib,
'art_Framework_Principal',
'art_Framework_Services_Registry',
'art_root_io_tfile_support',
'art_root_io_TFileService_service',
'art_root_io_TFileService',
'art_Framework_Services_Optional_RandomNumberGenerator_service',
'art_Persistency_Common',
'art_Persistency_Provenance',
'art_Utilities',
'canvas',
'MF_MessageLogger',
'fhiclcpp',
'fhiclcpp_types',
'tbb',
'cetlib',
'cetlib_except',
'CLHEP',
'HepPDT',
rootlibs,
'boost_filesystem',
'boost_system',
] )

# this tells emacs to view this file in python mode.
Expand Down
8 changes: 4 additions & 4 deletions CalPatRec/src/MergePatRec_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,11 @@ namespace mu2e {

if (_debugLevel > 0) ObjectDumpUtils::printEventHeader(&AnEvent,"MergePatRec::produce");

AnEvent.getByToken(_tprToken, htpr);
AnEvent.getByToken(_cprToken, hcpr);
htpr = AnEvent.getHandle<mu2e::KalRepPtrCollection>(_tprToken);
hcpr = AnEvent.getHandle<mu2e::KalRepPtrCollection>(_cprToken);

AnEvent.getByToken(_stprToken, hstpr);
AnEvent.getByToken(_scprToken, hscpr);
hstpr = AnEvent.getHandle<KalSeedCollection>(_stprToken);
hscpr = AnEvent.getHandle<KalSeedCollection>(_scprToken);

_data.event = &AnEvent;
_data.list_of_kreps_tpr = nullptr;
Expand Down
Loading

0 comments on commit dcea32f

Please sign in to comment.