1 #ifndef BEAMDATA_PROTODUNEBEAMEVENT_H 2 #define BEAMDATA_PROTODUNEBEAMEVENT_H 20 const std::pair< double, double > &
GetT0()
const{
return t0;};
23 void SetT0(std::pair< double, double > theT0){
t0 = theT0;};
33 std::bitset<32>
toBinary(
double num){
return std::bitset<32>( (uint32_t(num)) );};
44 void SetCalibrations(
double TOFCalAA,
double TOFCalBA,
double TOFCalAB,
double TOFCalBB){
126 std::pair<double,double>
t0;
148 std::vector<double>
TOFCal = {0.,0.,0.,0.};
172 :
t0({0.,0.}), CTBTimestamp(0), RDTimestamp(0), TOFChan(0),
173 theTOF(0.), activeTrigger(0), BITrigger(0), TimingTrigger(0),
174 SpillStart(0.), SpillOffset(0.), MagnetCurrent(0.) {
187 fiberMonitors[
"dummy"] =
dummy;
199 std::cout <<
"Error FBM " << FBMName <<
" not found" <<
std::endl;
202 std::cout <<
"\t" << itF->first <<
std::endl;
224 std::cout <<
"FBM " << FBMName <<
" Not Found" <<
std::endl;
230 for(
int iSet = 0; iSet < 6; ++iSet){
234 for(
int iFiber = 0; iFiber < 32; ++iFiber){
235 fiberMonitors[FBMName].fibers[iSet*32 + iFiber] = theseFibers[iFiber];
236 if(theseFibers[iFiber])
fiberMonitors[FBMName].active.push_back(iSet*32 + iFiber);
261 std::cout <<
"FBM " << FBMName <<
" not found in list" <<
std::endl;
code to link reconstructed objects back to the MC truth information
const FBM & GetFBM(std::string) const
std::vector< size_t > DownstreamTriggers
const double & GetT0Nano() const
size_t GetNRecoBeamMomenta()
const int & GetTimingTrigger() const
const recob::Track & GetBeamTrack(size_t i) const
void SetSpillStart(double theSpillStart)
const std::vector< double > & GetTOFs() const
const long long & GetCTBTimestamp() const
void ClearRecoBeamMomenta()
const std::vector< double > & GetCalibrations() const
const double & GetCKov0Pressure() const
std::vector< double > TOFCal
void SetTimingTrigger(int theTrigger)
const short & GetCKov1Status() const
const long long & GetRDTimestamp() const
const double & GetSpillOffset() const
std::vector< int > MultipleTOFChans
std::vector< size_t > UpstreamTriggers
const double & GetCKov0Time() const
void SetBITrigger(int theTrigger)
void SetSpillOffset(double theSpillOffset)
void SetFBMTrigger(std::string, FBM)
void DecodeFibers(std::string)
void SetCKov0(CKov theCKov)
std::pair< double, double > t0
const std::vector< size_t > & GetDownstreamTriggers() const
void SetMagnetCurrent(double theMagnetCurrent)
const std::vector< short > & GetActiveFibers(std::string) const
const std::vector< double > & GetRecoBeamMomenta() const
std::bitset< 32 > toBinary(double num)
const double & GetTOF() const
const double & GetT0Sec() const
const double & GetSpillStart() const
const std::vector< size_t > & GetUpstreamTriggers() const
const double & GetFiberTime(std::string) const
void SetRDTimestamp(long long theRDTimestamp)
void SetCTBTimestamp(long long theCTBTimestamp)
void AddBeamTrack(recob::Track theTrack)
const std::pair< double, double > & GetT0() const
std::map< std::string, FBM > fiberMonitors
void AddRecoBeamMomentum(double theMomentum)
const size_t & GetActiveTrigger() const
const std::vector< int > & GetTOFChans() const
const double & GetCKov1Time() const
std::vector< recob::Track > Tracks
void SetDownstreamTriggers(std::vector< size_t > theContent)
Provides recob::Track data product.
std::vector< double > RecoBeamMomenta
void SetUpstreamTriggers(std::vector< size_t > theContent)
const short & GetFiberStatus(std::string, size_t) const
std::vector< double > MultipleTOFs
cet::LibraryManager dummy("noplugin")
const std::vector< recob::Track > & GetBeamTracks() const
const short & GetCKov0Status() const
void SetT0(std::pair< double, double > theT0)
const int & GetBITrigger() const
void SetCKov1(CKov theCKov)
const double & GetRecoBeamMomentum(size_t i) const
const double & GetMagnetCurrent() const
const bool & CheckIsMatched() const
void SetTOFs(std::vector< double > theContent)
const int & GetTOFChan() const
void SetCalibrations(double TOFCalAA, double TOFCalBA, double TOFCalAB, double TOFCalBB)
Track from a non-cascading particle.A recob::Track consists of a recob::TrackTrajectory, plus additional members relevant for a "fitted" track:
void SetTOFChans(std::vector< int > theContent)
QTextStream & endl(QTextStream &s)
const double & GetCKov1Pressure() const
void SetActiveTrigger(size_t theTrigger)