Skip to content

Commit 731762b

Browse files
Merge pull request #316 from AndrewEdmonds11/v06-08-00
Last updates for v06_08_00
2 parents 03397f7 + c167684 commit 731762b

9 files changed

Lines changed: 13 additions & 7 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,11 @@ git checkout --no-track -b vXX-YY-ZZ mu2e/main
8080
```
8181
* update version number in histogram ```_hVersion``` in ```src/EventNtupleMaker_module.cc``` and commit
8282
* make sure EventNtuple runs following these [steps](validation/README.md#Validating-eventntuple-runs)
83+
* if any test fails, then you can look in ```test_fcls.log``` to see the error. You can also see the command to rerun and debug locally without having to re-run the whole ```test_fcls.sh``` script
8384
* create a "before" ntuple with the previous release of EventNtuple. In a fresh login:
8485
```
8586
mu2einit
86-
muse setup EventNtuple vXX-YY-ZZ
87+
muse setup EventNtuple vXX_YY_ZZ
8788
mu2e -c EventNtuple/fcl/from_mcs-mockdata.fcl -S ../EventNtupleDev_NewTag/filelists/mcs.mu2e.ensembleMDS2cMix1BBTriggered.MDC2020ba_best_v1_3.art.list --TFileName nts.ntuple.before.root -n 100
8889
root -l -b ${MUSE_WORK_DIR}/EventNtuple/validation/create_val_file_rooutil.C\(\"nts.ntuple.before.root\",\"val.ntuple.before.root\"\)
8990
```

fcl/from_mcs-DeCalib.fcl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
#include "EventNtuple/fcl/from_mcs-mockdata.fcl"
44

55
process_name: DeCalib
6-
source : { module_type : RootInput }
7-
services : @local::Services.Reco
86
physics :
97
{
108
producers : {

fcl/from_mcs-mockdata.fcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ physics.trigger_paths : [ EventNtuplePath ]
2222
physics.end_paths : [ EventNtupleEndPath ]
2323

2424
services.TFileService.fileName: "nts.owner.description.version.sequencer.root"
25+
26+
#include "Production/JobConfig/common/epilog.fcl"

fcl/from_rec-crv-vst.fcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ physics.analyzers.EventNtuple.FillCaloHits : false # no calorimeter
1010
physics.analyzers.EventNtuple.RecoCountTag : ""
1111
physics.analyzers.EventNtuple.PBTTag : ""
1212
physics.analyzers.EventNtuple.hasCRV : true
13+
physics.analyzers.EventNtuple.FillTriggerInfo : false
1314

1415
physics.analyzers.EventNtuple.CrvDigisTag : "CrvDigi"
1516
physics.analyzers.EventNtuple.CrvCoincidencesTag: "CrvCoincidenceClusterFinder"

fcl/prolog.fcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ ENDeCalib : {
379379
{ input: "MergeKKDeCalib"
380380
branch : "trk"
381381
trkQualTags : ["TrkQualDe"]
382+
trkPIDTags : ["TrkPIDDe"]
382383
options : { fillMC : true fillHits : true genealogyDepth : -1 }
383384
}
384385
]

inc/TrigInfo.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace mu2e
99
{
1010
struct TrigInfo {
1111

12-
static const unsigned int ntrig_ = 30;
12+
static const unsigned int ntrig_ = 35;
1313

1414
bool _triggerArray[ntrig_];
1515

rooutil/examples/PrintEvents.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ void PrintEvents(std::string filename) {
258258
}
259259

260260
// trigger branches
261-
for (const auto pair : event.trigNameMap) {
261+
for (const auto& pair : event.trigNameMap) {
262262
std::cout << pair.first << ": " << event.triginfo._triggerArray[pair.second] << std::endl;
263263
}
264264

rooutil/inc/RooUtil.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public:
143143

144144
if(event->trkmcsim) { output_ntuple->Branch("trkmcsim", event->trkmcsim); }
145145

146-
for (const auto pair : event->trigNameMap) {
146+
for (const auto& pair : event->trigNameMap) {
147147
output_ntuple->Branch(pair.first.c_str(), &event->triginfo._triggerArray[pair.second]);
148148
}
149149

src/EventNtupleMaker_module.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ namespace mu2e {
447447
_ntuple=tfs->make<TTree>("ntuple","Mu2e Event Ntuple");
448448
_hVersion = tfs->make<TH1I>("version", "version number",3,0,3);
449449
_hVersion->GetXaxis()->SetBinLabel(1, "major"); _hVersion->SetBinContent(1, 6);
450-
_hVersion->GetXaxis()->SetBinLabel(2, "minor"); _hVersion->SetBinContent(2, 7);
450+
_hVersion->GetXaxis()->SetBinLabel(2, "minor"); _hVersion->SetBinContent(2, 8);
451451
_hVersion->GetXaxis()->SetBinLabel(3, "patch"); _hVersion->SetBinContent(3, 0);
452452
// add event info branch
453453
_ntuple->Branch("evtinfo",&_einfo,_buffsize,_splitlevel);
@@ -932,6 +932,9 @@ namespace mu2e {
932932
TriggerResultsNavigator tnav(trigResults);
933933

934934
if (firstEvent) {
935+
if (tnav.getTrigPaths().size() > TrigInfo::ntrig_) {
936+
throw cet::exception("EventNtuple") << "More trigger paths in TriggerResultsNavigator than maximum allowed by TrigInfo::ntrig_. Increase TrigInfo::ntrig_ and rebuild\n";
937+
}
935938
for (unsigned int i = 0; i < tnav.getTrigPaths().size(); ++i) {
936939
const std::string name = "trig_"+tnav.getTrigPathName(i);
937940
_ntuple->Branch(name.c_str(), &_triggerResults._triggerArray[i], _buffsize,_splitlevel);

0 commit comments

Comments
 (0)