Skip to content

Commit b87790e

Browse files
Merge pull request #335 from AndrewEdmonds11/v06-09-00
Final changes for V06_09_00
2 parents a3c677e + 69e511f commit b87790e

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

fcl/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ where ```tier``` is the data tier of the input dataset, ```type``` is the type o
2323
| from_mcs-mockdata_selectorExample.fcl | mock datasets | example on how to use a selector to select certain types of tracks before putting them into the EventNtuple |
2424
| from_mcs-mixed_trkQualCompare.fcl | reconstructed mixed (i.e. primary+background hits) datasets | shows how to output result of more than one TrkQual |
2525
| from_mcs-primary_addVDSteps.fcl | reconstructed primary (i.e. no background hits) datasets | shows how to add the branch for virtual detector steps |
26+
| from_mcs-Run1B.fcl | reconstructed Run-1B (backup plan) datasets | adds the branch for virtual detector steps |
2627
| from_mcs-DeMCalib.fcl | reconstructed primary or mixed datasets | only writes one track per event |
2728
| from_mcs-OffSpill.fcl | off spill datasets | only contains ```CentralHelix``` tracks (i.e. field-on cosmics) |
2829
| from_dig-mockdata.fcl | mock datasets (digis) | runs reconstruction and creates EventNtuple in one job |

fcl/from_mcs-Run1B.fcl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#include "EventNtuple/fcl/from_mcs-extracted.fcl"
2+
3+
physics.analyzers.EventNtuple.FillMCInfo : true
4+
physics.analyzers.EventNtuple.StepPointMCTags : [ "compressRecoMCs:virtualdetector" ]

src/EventNtupleMaker_module.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,8 @@ namespace mu2e {
461461
_ntuple=tfs->make<TTree>("ntuple","Mu2e Event Ntuple");
462462
_hVersion = tfs->make<TH1I>("version", "version number",3,0,3);
463463
_hVersion->GetXaxis()->SetBinLabel(1, "major"); _hVersion->SetBinContent(1, 6);
464-
_hVersion->GetXaxis()->SetBinLabel(2, "minor"); _hVersion->SetBinContent(2, 8);
465-
_hVersion->GetXaxis()->SetBinLabel(3, "patch"); _hVersion->SetBinContent(3, 2);
464+
_hVersion->GetXaxis()->SetBinLabel(2, "minor"); _hVersion->SetBinContent(2, 9);
465+
_hVersion->GetXaxis()->SetBinLabel(3, "patch"); _hVersion->SetBinContent(3, 0);
466466
// add event info branch
467467
_ntuple->Branch("evtinfo",&_einfo,_buffsize,_splitlevel);
468468
if (_fillmc) {

validation/create_val_file_rooutil.C

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,6 @@ void create_val_file_rooutil(std::string filename, std::string outfilename) {
504504
TH1F* h_calodigis_peakpos_ = new TH1F("h_calodigis_peakpos_", "", 100,0,100);
505505
TH1F* h_calodigis_caloRecoDigiIdx_ = new TH1F("h_calodigis_caloRecoDigiIdx_", "", 100,0,100);
506506

507-
TH1F* h_triginfo = new TH1F("h_triginfo", "", mu2e::TrigInfo::ntrig_,0,mu2e::TrigInfo::ntrig_);
508-
509507
TH1F* h_mcsteps_virtualdetector_vid = new TH1F("h_mcsteps_virtualdetector_vid", "", 150,0,150);
510508
TH1F* h_mcsteps_virtualdetector_sid = new TH1F("h_mcsteps_virtualdetector_sid", "", 100,0,100);
511509
TH1F* h_mcsteps_virtualdetector_iinter = new TH1F("h_mcsteps_virtualdetector_iinter", "", 100,0,100);
@@ -526,6 +524,8 @@ void create_val_file_rooutil(std::string filename, std::string outfilename) {
526524

527525
// Grab the first event to name the bins
528526
const auto& evt = util.GetEvent(0);
527+
int max_triginfo_bin = evt.trigger.NameToIndexMap().size();
528+
TH1F* h_triginfo = new TH1F("h_triginfo", "", max_triginfo_bin,0,max_triginfo_bin);
529529
for (const auto pair : evt.trigger.NameToIndexMap()) {
530530
h_triginfo->GetXaxis()->SetBinLabel(pair.second+1, pair.first.c_str());
531531
}
@@ -1168,7 +1168,7 @@ void create_val_file_rooutil(std::string filename, std::string outfilename) {
11681168

11691169
// Creating triginfo histogram
11701170
std::cout << "Creating triginfo histogram" << std::endl;
1171-
for (int i_trig = 0; i_trig < mu2e::TrigInfo::ntrig_; ++i_trig) {
1171+
for (int i_trig = 0; i_trig < max_triginfo_bin; ++i_trig) {
11721172
h_triginfo->AddBinContent(i_trig+1, event.triginfo._triggerArray[i_trig]);
11731173
}
11741174

0 commit comments

Comments
 (0)