Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Anp::Header Class Reference

#include <Header.h>

List of all members.

Public Member Functions

 Header ()
 ~Header ()
int Run () const
int SubRun () const
int Snarl () const
int TimeFrame () const
int Sec () const
int NSec () const
int Trigger () const
int SpillType () const
int Detector () const
int SimFlag () const
int RunPeriod () const
int Release () const
int SpillSec () const
int SpillNSec () const
int GPSTime () const
int GPSError () const
int LITime () const
int CrateMask () const
int BeamDSec () const
int BeamDNSec () const
float Tor101 () const
float Tr101D () const
float TorTgt () const
float TrTgtD () const
float CoilCur () const
double Time2Spill () const
bool CoilRevs () const
bool GoodBeam () const
bool GoodCoil () const
bool GoodDetc () const
bool GoodHV () const
bool IsValid () const
bool IsData () const
bool IsNear () const
bool IsFar () const
long double BeamDTime () const
long double SpillTime () const
long double TriggTime () const
const std::string GetBEAMTYPE () const
const std::string GetDATATYPE () const
const std::string GetDETECTOR () const
const std::string GetMCRLTYPE () const
const std::string GetRECOTYPE () const
const std::string GetRUNCYCLE () const
void Clear ()
void Print (std::ostream &o=std::cout) const

Private Member Functions

int SetBeamType (const std::string &value)

Private Attributes

Int_t run
Int_t subrun
Int_t snarl
Int_t timeframe
Int_t sec
Int_t nsec
Int_t trigger
Int_t spilltype
Int_t detector
Int_t simflag
Int_t runperiod
Int_t relitype
Int_t spillsec
Int_t spillnsec
Int_t gpstime
Int_t gpserror
Int_t litime
Int_t cratemask
Int_t beamdsec
Int_t beamdnsec
Float_t tor101
Float_t tr101d
Float_t tortgt
Float_t trtgtd
Float_t coilcur
Double_t time2spill
Bool_t coilrevs
Bool_t goodbeam
Bool_t goodcoil
Bool_t gooddetc
Bool_t goodhv
Bool_t valid
char beamtype [9]

Friends

class FillHeader


Constructor & Destructor Documentation

Anp::Header::Header  ) 
 

Definition at line 18 of file Header.cxx.

References run().

00019    :run(-1),
00020     subrun(-1),
00021     snarl(-1),
00022     timeframe(-1),
00023     sec(-1),
00024     nsec(-1),
00025     trigger(-1),
00026     spilltype(-1),
00027     detector(-1),
00028     simflag(-1),
00029     runperiod(-1),
00030     relitype(-1),
00031     spillsec(-1),
00032     spillnsec(-1),
00033     gpstime(-1),
00034     gpserror(-1),
00035     litime(-1),
00036     cratemask(-1),
00037     beamdsec(-1),
00038     beamdnsec(-1),
00039     tor101(-1.0e6),
00040     tr101d(-1.0e6),
00041     tortgt(-1.0e6),
00042     trtgtd(-1.0e6),
00043     coilcur(-1.0e6),
00044     time2spill(-1.0e6),
00045     coilrevs(false),
00046     goodbeam(false),
00047     goodcoil(false),
00048     gooddetc(false),
00049     valid(false)
00050 {
00051    Header::SetBeamType("Unknown");
00052 }

Anp::Header::~Header  ) 
 

Definition at line 55 of file Header.cxx.

00056 {
00057 }


Member Function Documentation

int Anp::Header::BeamDNSec  )  const [inline]
 

Definition at line 161 of file Header.h.

00161 { return beamdnsec; }

int Anp::Header::BeamDSec  )  const [inline]
 

Definition at line 160 of file Header.h.

00160 { return beamdsec; }

long double Anp::Header::BeamDTime  )  const
 

Definition at line 132 of file Header.cxx.

Referenced by Anp::FillHeader::Run().

00133 {
00134    //
00135    // Return beam spill time in seconds
00136    //
00137    return static_cast<long double>(beamdsec) + 1.0e-9*static_cast<long double>(beamdnsec);
00138 }

void Anp::Header::Clear  ) 
 

Definition at line 60 of file Header.cxx.

References beamdnsec, beamdsec, coilcur, coilrevs, cratemask, detector, goodbeam, goodcoil, gooddetc, goodhv, gpserror, gpstime, litime, nsec, relitype, run, runperiod, sec, simflag, snarl, spillnsec, spillsec, spilltype, subrun, time2spill, timeframe, tor101, tortgt, tr101d, trigger, trtgtd, and valid.

Referenced by Anp::Record::Clear().

00061 {
00062    run        = -1;
00063    subrun     = -1;
00064    snarl      = -1;
00065    timeframe  = -1;
00066    sec        = -1;
00067    nsec       = -1;
00068    trigger    = -1;
00069    spilltype  = -1;
00070    detector   = -1;
00071    simflag    = -1;
00072    runperiod  = -1;
00073    relitype   = -1;
00074    spillsec   = -1;
00075    spillnsec  = -1;
00076    gpstime    = -1;
00077    gpserror   = -1;
00078    litime     = -1;
00079    cratemask  = -1;
00080    beamdsec   = -1;
00081    beamdnsec  = -1;
00082    tor101     = -1.0e6;
00083    tr101d     = -1.0e6;
00084    tortgt     = -1.0e6;
00085    trtgtd     = -1.0e6;
00086    coilcur    = -1.0e6;
00087    time2spill = -1.0e6;
00088    coilrevs   = false;
00089    goodbeam   = false;
00090    goodcoil   = false;
00091    gooddetc   = false;
00092    goodhv     = false;
00093    valid      = false;
00094 
00095    Header::SetBeamType("Unknown");
00096 }

float Anp::Header::CoilCur  )  const [inline]
 

Definition at line 167 of file Header.h.

Referenced by Anp::SelectSpill::PassCoil().

00167 { return coilcur; }

bool Anp::Header::CoilRevs  )  const [inline]
 

Definition at line 170 of file Header.h.

Referenced by Anp::SelectSpill::PassCoil().

00170 { return coilrevs; }

int Anp::Header::CrateMask  )  const [inline]
 

Definition at line 159 of file Header.h.

00159 { return cratemask; }

int Anp::Header::Detector  )  const [inline]
 

Definition at line 150 of file Header.h.

00150 { return detector; }

const std::string Anp::Header::GetBEAMTYPE  )  const
 

Definition at line 195 of file Header.cxx.

References beamtype, and IsValid().

Referenced by Anp::RunModule::Init(), Anp::SelectSpill::PassBeam(), Print(), Anp::FillMadId::Reset(), Anp::FillMadId::Run(), Anp::FillFlux::Run(), and Anp::RunkNN::SaveParts().

00196 {  
00197    //
00198    // Return beam type type as std::string
00199    //
00200 
00201    if(!IsValid())
00202    {
00203       cerr << "Header::GetBEAMTYPE - invalid Header" << endl;
00204       return "unknown";
00205    }
00206 
00207    string value;
00208    for(unsigned int i = 0; i < 9; ++i)
00209    {
00210       if(beamtype[i] != ' ') value.push_back(beamtype[i]);
00211    }
00212    
00213    return value;
00214 }

const std::string Anp::Header::GetDATATYPE  )  const
 

Definition at line 217 of file Header.cxx.

References GetMCRLTYPE(), IsData(), and IsValid().

Referenced by Anp::RunModule::Init().

00218 {  
00219    //
00220    // Return data type type as std::string
00221    //    for data return run period: run-1, run-2, run-3, etc
00222    //    for simulation return Monte-Carlo release type
00223 
00224    if(!IsValid())
00225    {
00226       cerr << "Header::GetDATATYPE - invalid Header" << endl;
00227       return "unknown";
00228    }
00229 
00230    if(IsData())
00231    {
00232       return std::string("data");
00233    }
00234    else
00235    {
00236       return Anp::Header::GetMCRLTYPE();
00237    }
00238    
00239    return std::string("unknown");
00240 }

const std::string Anp::Header::GetDETECTOR  )  const
 

Definition at line 243 of file Header.cxx.

References IsFar(), IsNear(), and IsValid().

Referenced by Anp::RunModule::Init(), and Anp::RunkNN::SaveParts().

00244 {
00245    if(!IsValid())
00246    {
00247       cerr << "Header::GetDETECTOR - invalid Header" << endl;
00248       return "unknown";
00249    }
00250 
00251    if(IsNear())
00252    {
00253       return std::string("near");
00254    }
00255    else if(IsFar())
00256    {
00257       return std::string("far");
00258    }
00259 
00260    cerr << "Header::GetDETECTOR - unknown detector type" << endl;
00261 
00262    return std::string("unknown");
00263 }

const std::string Anp::Header::GetMCRLTYPE  )  const
 

Definition at line 266 of file Header.cxx.

References ReleaseType::GetMCSubVersion(), ReleaseType::IsDaikon(), IsData(), IsValid(), and Release().

Referenced by GetDATATYPE(), and Anp::RunkNN::SaveParts().

00267 {  
00268    //
00269    // Return Monte-Carlo release type as string formatted for batch processing.
00270    //
00271 
00272    if(!IsValid())
00273    {
00274       cerr << "Header::GetMCRLTYPE - invalid Header" << endl;
00275       return "unknown";
00276    }
00277 
00278    if(IsData())
00279    {
00280       return "unknown";
00281    }
00282 
00283    const int rtype = Release();
00284 
00285    const int mcver = ReleaseType::GetMCSubVersion(rtype);
00286    if(ReleaseType::IsDaikon(rtype) && mcver >= 0 && mcver <= 99)
00287    {
00288       stringstream mctype;
00289       mctype << "daikon_" << setw(2) << setfill('0') << mcver;
00290       return std::string(mctype.str());
00291    }
00292 
00293    cerr << "Header::GetMCRLTYPE - unknown Monte-Carlo release" << endl;
00294 
00295    return std::string("unknown");
00296 }

const std::string Anp::Header::GetRECOTYPE  )  const
 

Definition at line 299 of file Header.cxx.

References ReleaseType::GetRecoSubVersion(), ReleaseType::IsCedar(), ReleaseType::IsDogwood(), IsValid(), and Release().

Referenced by Anp::RunModule::Init(), and Anp::RunkNN::SaveParts().

00300 {
00301    //
00302    // Return reconstruction release type as string formatted for batch processing.
00303    //
00304   cout<<" INSIDE get RECOTYPE "<<endl;
00305    if(!IsValid())
00306    {
00307       cerr << "Header::GetRECOTYPE - invalid Header" << endl;
00308       return "unknown";
00309    }
00310    
00311    const int rtype = Release();
00312    
00313    if(ReleaseType::IsCedar(rtype))
00314    {
00315       if(ReleaseType::GetRecoSubVersion(rtype) == 0 ||
00316          ReleaseType::GetRecoSubVersion(rtype) == 1)
00317       {
00318          return std::string("cedar");
00319       }
00320       else if(ReleaseType::GetRecoSubVersion(rtype) == 2)
00321       {
00322          return std::string("cedar_phy");
00323       }
00324       else if(ReleaseType::GetRecoSubVersion(rtype) == 3)
00325       {
00326          return std::string("cedar_phy_bhcurv");
00327       }
00328    }
00329    else if (ReleaseType::IsDogwood(rtype))
00330    {
00331      if(ReleaseType::GetRecoSubVersion(rtype) == 0)
00332        {
00333          return std::string("dogwood0");
00334        }
00335      if(ReleaseType::GetRecoSubVersion(rtype) == 1)
00336        {
00337          return std::string("dogwood1");
00338        }
00339      else{
00340        cerr<<" Header::GetRECOTYPE -- Dogwood with subReco Version "<<
00341          ReleaseType::GetRecoSubVersion(rtype);
00342        return std::string("dogwood1");  
00343      }
00344 
00345    }
00346    
00347    cerr << "Header::GetRECOTYPE - unknown reconstruction release --" << rtype<<"--- "<<endl;
00348    
00349    return "dogwood1";
00350 }

const std::string Anp::Header::GetRUNCYCLE  )  const
 

Definition at line 353 of file Header.cxx.

References IsData(), IsValid(), and RunPeriod().

Referenced by Anp::RunModule::Init().

00354 {
00355    //
00356    // Return reconstruction release type as string formatted for batch processing.
00357    //
00358 
00359    if(!IsValid())
00360    {
00361       cerr << "Header::GetRUNCYCLE - invalid Header" << endl;
00362       return "unknown";
00363    }
00364    
00365    if(IsData())
00366    {
00367       if(RunPeriod() > 0)
00368       {
00369          stringstream rcycle;
00370          rcycle << "run-" << std::setw(1) << RunPeriod();
00371          return std::string(rcycle.str());
00372       }
00373    }
00374    else
00375    {
00376       return std::string("run-0");
00377    }
00378 
00379    cerr << "Header::GetRUNCYCLE - unknown runperiod" << endl;
00380    
00381    return "unknown";
00382 }

bool Anp::Header::GoodBeam  )  const [inline]
 

Definition at line 171 of file Header.h.

Referenced by Anp::SelectSpill::PassBeam().

00171 { return goodbeam; }

bool Anp::Header::GoodCoil  )  const [inline]
 

Definition at line 172 of file Header.h.

Referenced by Anp::SelectSpill::PassCoil().

00172 { return goodcoil; }

bool Anp::Header::GoodDetc  )  const [inline]
 

Definition at line 173 of file Header.h.

00173 { return gooddetc; }

bool Anp::Header::GoodHV  )  const [inline]
 

Definition at line 174 of file Header.h.

00174 { return goodhv; }

int Anp::Header::GPSError  )  const [inline]
 

Definition at line 156 of file Header.h.

00156 { return gpstime; }

int Anp::Header::GPSTime  )  const [inline]
 

Definition at line 157 of file Header.h.

00157 { return gpserror; }

bool Anp::Header::IsData  )  const
 

Definition at line 99 of file Header.cxx.

References simflag.

Referenced by Anp::RunkNN::AddData(), Anp::ApplyTrueWeights(), Anp::PlotTrack::FillResol(), Anp::Record::FindStdHep(), Anp::Record::FindTruth(), GetDATATYPE(), GetMCRLTYPE(), GetRUNCYCLE(), Anp::Pmt::GetValidity(), Anp::Draw::GetValidity(), Anp::FillShortVar::GetVldc(), Anp::FillMuonId::GetVldc(), Anp::FillEnergy::GetVldc(), Anp::PlotShort::Init(), Anp::RunkNN::MakeNames(), Anp::PlotShortSelect::Particle(), Anp::PlotShort::Particle(), Anp::PlotData::Particle(), Anp::SelectSpill::PassBeam(), Anp::SelectSpill::PassCoil(), Anp::SelectSpill::PassList(), Anp::PlotData::Plot(), Anp::RecordStore::PrintTruth(), Anp::SelectSpill::ReadList(), Anp::SelectTrue::Run(), Anp::SelectReson::Run(), Anp::SelectKinem::Run(), Anp::SelectFlux::Run(), Anp::PlotVtx::Run(), Anp::PlotTruth::Run(), Anp::PlotShortSelect::Run(), Anp::PlotPur::Run(), Anp::PlotFlux::Run(), Anp::PlotEff::Run(), Anp::FillShortEvent::Run(), Anp::FillMuonId::Run(), Anp::FillFlux::Run(), Anp::RunModule::RunChain(), and Anp::StdHepTab::Set().

00100 {
00101    if(simflag == 1) return true;
00102    else if(simflag == 2) return false;
00103    
00104    cerr << "Header::IsData - unknown simflag value: " << simflag << endl;
00105 
00106    return false;
00107 }

bool Anp::Header::IsFar  )  const
 

Definition at line 121 of file Header.cxx.

References detector.

Referenced by Anp::FillFlux::Fill(), Anp::FillEvent::Fill(), GetDETECTOR(), Anp::PmtHit::GetPixel(), Anp::Pmt::GetValidity(), Anp::Draw::GetValidity(), Anp::FillShortVar::GetVldc(), Anp::FillMuonId::GetVldc(), Anp::FillEnergy::GetVldc(), Anp::PmtHit::Init(), Anp::SnarlTimeTab::NewSnarl(), Anp::SelectFiducial::Pass(), Anp::SelectSpill::PassCoil(), Anp::SelectSpill::ReadList(), Anp::FillMadId::Reset(), Anp::SelectNuMu::ResetStop(), Anp::FillMadId::Run(), and Anp::RunModule::RunChain().

00122 {
00123    if(detector == 1) return false;
00124    else if(detector == 2) return true;
00125    
00126    cerr << "Header::IsFar - unknown detector value: " << detector << endl;
00127 
00128    return false;
00129 }

bool Anp::Header::IsNear  )  const
 

Definition at line 110 of file Header.cxx.

References detector.

Referenced by Anp::FillFlux::Fill(), Anp::FillEvent::Fill(), GetDETECTOR(), Anp::PmtHit::GetPixel(), Anp::FillShortEvent::GetPlaneStrips(), Anp::FillShortVar::GetTrackMap(), Anp::Pmt::GetValidity(), Anp::Draw::GetValidity(), Anp::FillShortVar::GetVldc(), Anp::FillMuonId::GetVldc(), Anp::FillEnergy::GetVldc(), Anp::PmtHit::Init(), Anp::SnarlTimeTab::NewSnarl(), Anp::SelectKinem::Pass(), Anp::SelectFiducial::Pass(), Anp::SelectSpill::PassCoil(), Anp::SelectSpill::ReadList(), Anp::FillMadId::Reset(), Anp::SelectNuMu::ResetStop(), Anp::FillMadId::Run(), and Anp::FillMuonId::Select().

00111 {
00112    if(detector == 1) return true;
00113    else if(detector == 2) return false;
00114    
00115    cerr << "Header::IsNear - unknown detector value: " << detector << endl;
00116 
00117    return false;
00118 }

bool Anp::Header::IsValid  )  const [inline]
 

Definition at line 175 of file Header.h.

Referenced by GetBEAMTYPE(), GetDATATYPE(), GetDETECTOR(), GetMCRLTYPE(), GetRECOTYPE(), GetRUNCYCLE(), Anp::SelectTrue::Init(), Anp::SelectKinem::Init(), Anp::RunModule::Init(), Anp::PmtHit::Plot(), Anp::RunModule::Run(), Anp::FillShower::Run(), Anp::FillEvent::Run(), Anp::DrawSnarl::Run(), and Anp::RunAlgSnarl::RunRecord().

00175 { return valid; }

int Anp::Header::LITime  )  const [inline]
 

Definition at line 158 of file Header.h.

00158 { return litime; }

int Anp::Header::NSec  )  const [inline]
 

Definition at line 147 of file Header.h.

Referenced by Anp::Pmt::GetValidity(), Anp::Draw::GetValidity(), Anp::FillShortVar::GetVldc(), Anp::FillMuonId::GetVldc(), Anp::FillEnergy::GetVldc(), Anp::PlotTime::Run(), and Anp::PlotSnarl::Run().

00147 { return nsec; }

void Anp::Header::Print std::ostream &  o = std::cout  )  const
 

Definition at line 159 of file Header.cxx.

References beamdnsec, beamdsec, coilcur, coilrevs, cratemask, detector, GetBEAMTYPE(), goodbeam, goodcoil, gooddetc, goodhv, gpserror, gpstime, litime, nsec, relitype, run, runperiod, sec, simflag, snarl, spillnsec, spillsec, subrun, time2spill, timeframe, tor101, tortgt, tr101d, trigger, trtgtd, and valid.

Referenced by Anp::Record::Print().

00160 {
00161    o << "Header::Print" << endl
00162      << "   run, subrun, snarl = " << run << ", " << subrun << ", " << snarl << endl
00163      << "   timeframe  = " << timeframe << endl
00164      << "   sec        = " << sec << endl
00165      << "   nsec       = " << nsec << endl
00166      << "   trigger    = " << trigger << endl
00167      << "   detector   = " << detector << endl
00168      << "   simflag    = " << simflag << endl
00169      << "   runperiod  = " << runperiod << endl
00170      << "   relitype   = " << relitype << endl
00171      << "   gpstime    = " << gpstime << endl
00172      << "   gpserror   = " << gpserror << endl
00173      << "   litime     = " << litime  << endl
00174      << "   cratemask  = " << cratemask << endl
00175      << "   spillsec   = " << spillsec << endl
00176      << "   spillnsec  = " << spillnsec << endl
00177      << "   beamdsec   = " << beamdsec << endl
00178      << "   beamdnsec  = " << beamdnsec << endl
00179      << "   tor101     = " << tor101 << endl
00180      << "   tr101d     = " << tr101d << endl
00181      << "   tortgt     = " << tortgt << endl
00182      << "   trtgtd     = " << trtgtd << endl
00183      << "   coilcur    = " << coilcur << endl
00184      << "   time2spill = " << time2spill << endl
00185      << "   beamtype   = " << GetBEAMTYPE() << endl
00186      << "   coilrevs   = " << coilrevs << endl
00187      << "   goodbeam   = " << goodbeam << endl
00188      << "   goodcoil   = " << goodcoil << endl
00189      << "   gooddetc   = " << gooddetc << endl
00190      << "   goodhv     = " << goodhv << endl
00191      << "   valid      = " << valid << endl;
00192 }

int Anp::Header::Release  )  const [inline]
 

Definition at line 153 of file Header.h.

Referenced by GetMCRLTYPE(), GetRECOTYPE(), Anp::FillMadId::Run(), Anp::FillHeader::Run(), and Anp::FillEnergy::Run().

00153 { return relitype; }

int Anp::Header::Run  )  const [inline]
 

Definition at line 142 of file Header.h.

Referenced by Anp::EventDisplay::NewEvent(), Anp::operator==(), Anp::SelectSpill::PassList(), Anp::EventDisplay::PrintTab(), Anp::SelectSpill::Run(), Anp::SelectCount::Run(), and Anp::RunModule::RunChain().

00142 { return run; }

int Anp::Header::RunPeriod  )  const [inline]
 

Definition at line 152 of file Header.h.

Referenced by GetRUNCYCLE().

00152 { return runperiod; }

int Anp::Header::Sec  )  const [inline]
 

Definition at line 146 of file Header.h.

Referenced by Anp::Pmt::GetValidity(), Anp::Draw::GetValidity(), Anp::FillShortVar::GetVldc(), Anp::FillMuonId::GetVldc(), Anp::FillEnergy::GetVldc(), and Anp::PlotTime::Run().

00146 { return sec; }

int Anp::Header::SetBeamType const std::string &  value  )  [private]
 

Definition at line 385 of file Header.cxx.

References beamtype.

Referenced by Anp::FillHeader::Run().

00386 {
00387    if(value.size() > 9)
00388    {
00389       cerr << "Header::SetBeamType - truncating input string to first 9 characters: " << value << endl;
00390    }
00391 
00392    for(unsigned int i = 0; i < 9; ++i)
00393    {
00394       if(i < value.size())
00395       {
00396          beamtype[i] =  value[i];
00397       }
00398       else
00399       {
00400          beamtype[i] = ' ';
00401       }
00402    }
00403 
00404    return 9 - int(value.size());
00405 }

int Anp::Header::SimFlag  )  const [inline]
 

Definition at line 151 of file Header.h.

00151 { return simflag; }

int Anp::Header::Snarl  )  const [inline]
 

Definition at line 144 of file Header.h.

Referenced by Anp::EventDisplay::NewEvent(), Anp::operator==(), Anp::SelectSpill::PassList(), Anp::EventDisplay::PrintTab(), Anp::SelectSpill::Run(), and Anp::SelectCount::Run().

00144 { return snarl; }

int Anp::Header::SpillNSec  )  const [inline]
 

Definition at line 155 of file Header.h.

00155 { return spillnsec; }

int Anp::Header::SpillSec  )  const [inline]
 

Definition at line 154 of file Header.h.

00154 { return spillsec; }

long double Anp::Header::SpillTime  )  const
 

Definition at line 141 of file Header.cxx.

Referenced by Anp::FillHeader::Run().

00142 {
00143    //
00144    // Return beam spill time in seconds
00145    //
00146    return static_cast<long double>(spillsec) + 1.0e-9*static_cast<long double>(spillnsec);
00147 }

int Anp::Header::SpillType  )  const [inline]
 

Definition at line 149 of file Header.h.

00149 { return spilltype; }

int Anp::Header::SubRun  )  const [inline]
 

Definition at line 143 of file Header.h.

Referenced by Anp::operator==(), Anp::SelectSpill::PassList(), Anp::SelectSpill::Run(), and Anp::RunModule::RunChain().

00143 { return subrun; }

double Anp::Header::Time2Spill  )  const [inline]
 

Definition at line 168 of file Header.h.

00168 { return time2spill; }

int Anp::Header::TimeFrame  )  const [inline]
 

Definition at line 145 of file Header.h.

00145 { return timeframe; }

float Anp::Header::Tor101  )  const [inline]
 

Definition at line 163 of file Header.h.

Referenced by Anp::SelectSpill::Count(), Anp::HistTime::Fill(), Anp::PlotSnarl::Run(), and Anp::PlotShower::Run().

00163 { return tor101; }

float Anp::Header::TorTgt  )  const [inline]
 

Definition at line 165 of file Header.h.

Referenced by Anp::SelectSpill::Count(), Anp::HistTime::Fill(), Anp::PlotSnarl::Run(), and Anp::PlotShower::Run().

00165 { return tortgt; }

float Anp::Header::Tr101D  )  const [inline]
 

Definition at line 164 of file Header.h.

Referenced by Anp::SelectSpill::Count(), Anp::HistTime::Fill(), and Anp::PlotShower::Run().

00164 { return tr101d; }

int Anp::Header::Trigger  )  const [inline]
 

Definition at line 148 of file Header.h.

00148 { return trigger; }

long double Anp::Header::TriggTime  )  const
 

Definition at line 150 of file Header.cxx.

00151 {
00152    //
00153    // Return trigger time in seconds
00154    //
00155    return static_cast<long double>(sec) + 1.0e-9*static_cast<long double>(nsec);
00156 }

float Anp::Header::TrTgtD  )  const [inline]
 

Definition at line 166 of file Header.h.

Referenced by Anp::SelectSpill::Count(), Anp::HistTime::Fill(), and Anp::PlotShower::Run().

00166 { return trtgtd; }


Friends And Related Function Documentation

friend class FillHeader [friend]
 

Definition at line 92 of file Header.h.


Member Data Documentation

Int_t Anp::Header::beamdnsec [private]
 

Definition at line 113 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Int_t Anp::Header::beamdsec [private]
 

Definition at line 112 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

char Anp::Header::beamtype[9] [private]
 

Definition at line 128 of file Header.h.

Referenced by GetBEAMTYPE(), and SetBeamType().

Float_t Anp::Header::coilcur [private]
 

Definition at line 118 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Bool_t Anp::Header::coilrevs [private]
 

Definition at line 121 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Int_t Anp::Header::cratemask [private]
 

Definition at line 111 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Int_t Anp::Header::detector [private]
 

Definition at line 102 of file Header.h.

Referenced by Clear(), IsFar(), IsNear(), Print(), and Anp::FillHeader::Run().

Bool_t Anp::Header::goodbeam [private]
 

Definition at line 122 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Bool_t Anp::Header::goodcoil [private]
 

Definition at line 123 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Bool_t Anp::Header::gooddetc [private]
 

Definition at line 124 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Bool_t Anp::Header::goodhv [private]
 

Definition at line 125 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Int_t Anp::Header::gpserror [private]
 

Definition at line 109 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Int_t Anp::Header::gpstime [private]
 

Definition at line 108 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Int_t Anp::Header::litime [private]
 

Definition at line 110 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Int_t Anp::Header::nsec [private]
 

Definition at line 99 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Int_t Anp::Header::relitype [private]
 

Definition at line 105 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Int_t Anp::Header::run [private]
 

Definition at line 94 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Int_t Anp::Header::runperiod [private]
 

Definition at line 104 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Int_t Anp::Header::sec [private]
 

Definition at line 98 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Int_t Anp::Header::simflag [private]
 

Definition at line 103 of file Header.h.

Referenced by Clear(), IsData(), Print(), and Anp::FillHeader::Run().

Int_t Anp::Header::snarl [private]
 

Definition at line 96 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Int_t Anp::Header::spillnsec [private]
 

Definition at line 107 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Int_t Anp::Header::spillsec [private]
 

Definition at line 106 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Int_t Anp::Header::spilltype [private]
 

Definition at line 101 of file Header.h.

Referenced by Clear(), and Anp::FillHeader::Run().

Int_t Anp::Header::subrun [private]
 

Definition at line 95 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Double_t Anp::Header::time2spill [private]
 

Definition at line 119 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Int_t Anp::Header::timeframe [private]
 

Definition at line 97 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Float_t Anp::Header::tor101 [private]
 

Definition at line 114 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Float_t Anp::Header::tortgt [private]
 

Definition at line 116 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Float_t Anp::Header::tr101d [private]
 

Definition at line 115 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Int_t Anp::Header::trigger [private]
 

Definition at line 100 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Float_t Anp::Header::trtgtd [private]
 

Definition at line 117 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().

Bool_t Anp::Header::valid [private]
 

Definition at line 126 of file Header.h.

Referenced by Clear(), Print(), and Anp::FillHeader::Run().


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:10:32 2010 for loon by  doxygen 1.3.9.1