Skip to content

Commit 17eac29

Browse files
committed
Remove more unnecessary guards.
1 parent 125a71a commit 17eac29

4 files changed

Lines changed: 8 additions & 11 deletions

File tree

rooutil/inc/Event.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ namespace rooutil {
202202

203203
// Because calomcsim branch contains all calorimeter mc particles and not just those associated with the cluster
204204
// we need to loop through and add the correct ones to the CaloCluster class here
205-
if (calomcsim != nullptr && calo_cluster.caloclustermc != nullptr) {
205+
if (calomcsim != nullptr) {
206206
for (auto& calosim_Id : calo_cluster.caloclustermc->simParticleIds) { // the SimParticle IDs
207207
MCParticle mc_particle;
208208

src/CrvInfoHelper.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ namespace mu2e
4949
std::array<float,CRVId::nSidesPerBar> sideTimes_ = {static_cast<float>(cluster.GetSideTimes()[0]), static_cast<float>(cluster.GetSideTimes()[1])};
5050
for(size_t j=0; j<coincRecoPulses_.size(); j++) // Loop through the pulses
5151
{
52-
if(!coincRecoPulses_.at(j)) continue;
5352
// Get PEs associated with this reco pulse
5453
float PEs = coincRecoPulses_.at(j)->GetPEs();
5554
// Get layer number from the bar index associated with this reco pulse

src/EventNtupleMaker_module.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -856,12 +856,12 @@ namespace mu2e {
856856
// Fill Calo MC
857857

858858
// Retrieve CaloShowerSim collection for both caloDigisMC and caloDigiSimInfos branches
859-
if (_fillmc && (_fillcalodigismc || _fillcalodigisiminfos)) {
859+
if (_fillcalodigismc || _fillcalodigisiminfos) {
860860
event.getByLabel(_conf.caloShowerSimTag(),_caloShowerSim);
861861
}
862862

863863
// Fill Calo MC Digis branch
864-
if (_fillmc && _fillcalodigismc){
864+
if (_fillcalodigismc){
865865
if (_caloShowerSim.isValid()){
866866
for (const auto& showerSim : *_caloShowerSim.product()){
867867
_infoMCStructHelper.fillCaloDigiMCInfo(showerSim,_caloDigiMCIs);
@@ -870,14 +870,14 @@ namespace mu2e {
870870
}
871871

872872
// Fill Calo MC Hits branch
873-
if (_fillmc && _fillcalohitsmc){
873+
if (_fillcalohitsmc){
874874
for (const auto& hitmc : *_chmcch.product()){
875875
_infoMCStructHelper.fillCaloHitInfoMC(hitmc,_caloHIMCs);
876876
}
877877
}
878878

879879
// Fill Calo MC Clusters branch
880-
if (_fillmc && _fillcaloclustersmc){
880+
if (_fillcaloclustersmc){
881881
for (const auto& clustermc : *_ccmcch.product()){
882882

883883
_infoMCStructHelper.fillCaloClusterInfoMC(clustermc,_caloCIMCs);
@@ -902,13 +902,13 @@ namespace mu2e {
902902
}
903903
}
904904

905-
if (_fillmc && _fillcalosiminfos){
905+
if (_fillcalosiminfos){
906906
for (const auto& clustermc : *_ccmcch.product()){
907907
_infoMCStructHelper.fillCaloSimInfos(clustermc,_caloSIMCs);
908908
}
909909
}
910910

911-
if (_fillmc && _fillcalodigisiminfos){
911+
if (_fillcalodigisiminfos){
912912
if (_caloShowerSim.isValid()){
913913
for (const auto& showerSim : *_caloShowerSim.product()){
914914
_infoMCStructHelper.fillCaloDigiSimInfos(showerSim,_caloDigiSIMCs);
@@ -981,7 +981,7 @@ namespace mu2e {
981981

982982
// WARNING: calohits (CaloHitMaker) and calohitsmc (compressRecoMCs) are not index-aligned.
983983
// Record the legacy positional index RooUtil used (calohitsmc[i] <-> calohits[i]) in caloHitIdx_.
984-
if (_fillmc && _fillcalohitsmc && _fillcalohits) {
984+
if (_fillcalohitsmc && _fillcalohits) {
985985
for (uint mcIdx = 0; mcIdx < _caloHIMCs.size(); ++mcIdx) {
986986
_caloHIMCs[mcIdx].caloHitIdx_ =
987987
(mcIdx < _caloHIs.size()) ? static_cast<int>(mcIdx) : -1;

validation/ceSimReco.fcl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,3 @@
77

88
physics.producers.KKDe.KKFitSettings.SaveHitCalibInfo : true
99
outputs.Output.fileName : "mcs.owner.val-ceSimRecoVal.dsconf.seq.art"
10-
// Production/Validation/ceSimReco drops CaloDigis; append keep so it wins over drop
11-
outputs.Output.outputCommands[50]: "keep mu2e::CaloDigis_CaloDigiMaker_*_*"

0 commit comments

Comments
 (0)