112 tree = tfs->
make<TTree>(
"beamana",
"");
114 tree->Branch(
"run",&
run,
"run/I");
289 std::vector<art::Ptr<brb::BeamlineDigit>> tofCFDDigits;
293 for (std::vector<
art::Ptr<brb::BeamlineDigit>>::const_iterator tofDigitIt = tofCFDDigits.begin(); tofDigitIt != tofCFDDigits.end(); ++tofDigitIt){
297 switch ( (*tofDigitIt)->ChannelID().Detector ){
300 switch( (*tofDigitIt)->ChannelID().Channel ){
324 switch( (*tofDigitIt)->ChannelID().Channel ){
348 switch( (*tofDigitIt)->ChannelID().Channel ){
379 std::vector<art::Ptr<rawdata::RawBeamlineWC>> wcObj;
384 for (
unsigned int WCdigitIdx = 0; WCdigitIdx < wcHandle->size(); ++WCdigitIdx){
386 std::vector<rawdata::RawBeamlineWC::WCPulse> xPulses = WCdigit.
XPulses();
387 std::vector<rawdata::RawBeamlineWC::WCPulse> yPulses = WCdigit.
YPulses();
389 std::vector<int> xPulseChannel;
390 std::vector<int> xPulseTime;
391 std::vector<int> yPulseChannel;
392 std::vector<int> yPulseTime;
396 for (
unsigned int xIdx = 0; xIdx < xPulses.size(); ++xIdx){
397 xPulseChannel.push_back(xPulses[xIdx].Channel);
398 xPulseTime.push_back(xPulses[xIdx].Time);
401 for (
unsigned int yIdx = 0; yIdx < yPulses.size(); ++yIdx){
402 yPulseChannel.push_back(yPulses[yIdx].Channel);
403 yPulseTime.push_back(yPulses[yIdx].Time);
450 std::vector<art::Ptr<brb::BeamlineDigit>> cherenkovs;
454 for (
auto ckov : cherenkovs) {
std::vector< WCPulse > YPulses() const
std::vector< int > wc2xTime
std::vector< int > wc2yChannel
SubRunNumber_t subRun() const
std::string fRawWCDataLabel
std::vector< int > wc1xChannel
std::vector< int > wc1xTime
std::string fRawDataLabel
std::vector< int > wc1yTime
std::vector< WCPulse > XPulses() const
std::vector< int > wc3xTime
DEFINE_ART_MODULE(TestTMapFile)
unsigned long int spilltimesec
double mc6int
MC6 intensity [ppp].
std::vector< int > wc4yChannel
unsigned long int spilltimensec
std::vector< int > wc4xTime
std::string fSpillDataLabel
Encapsulation of reconstructed digitizer 'hits'. Used for ToF PMTs and SiPMs, and Cherenkov and Muon ...
std::vector< int > wc2yTime
std::vector< int > wc3yTime
void analyze(art::Event const &e) override
T get(std::string const &key) const
Encapsulation of reconstructed Time-of-Flight (ToF) information. Part of beamline reconstruction for ...
double mc6col
MC6 vertical collimator opening [mm].
std::vector< int > wc2xChannel
std::vector< int > wc4yTime
std::vector< int > wc1yChannel
EventNumber_t event() const
EDAnalyzer(Table< Config > const &config)
std::vector< int > wc4xChannel
std::string fRecoCkovLabel
double mcenrg
MCenter energy [GeV].
T * make(ARGS...args) const
BeamlineAna(fhicl::ParameterSet const &pset)
double daqtrigger
Beamline DAQ triggers [counts].
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
double mc7magnet
Tertiary beamline magnet current [Amps].
void reconfigure(fhicl::ParameterSet const &pset)
std::vector< int > wc3yChannel
Raw data definitions for beamline data used in NOvA test beam experiment.
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
double targetsc
MC7 target counter [counts].
std::vector< int > wc3xChannel
beamlinegeo::DetectorID DetectorID() const
double mc7int
MC7 intensity [counts] - scintillator counter.