Functions | |
| template<class OutputIterator, class CandDaughterType> | |
| OutputIterator | CDL2STL (const CandHandle &handle, OutputIterator result) |
| Base function to convert a candidate daughter list to an STL container of CandHandles. | |
| template<class CandDaughterType> | |
| std::vector< const CandDaughterType * > | CDL2STLvector (const CandHandle &handle) |
| Convert a Candidate's Daughter list to an STL vector of pointers to given candidate handle type. | |
| template<class CandDaughterType> | |
| std::vector< CandDaughterType * > | CDL2STLvector (CandHandle &handle) |
| non const | |
| template<class CandDaughterType> | |
| std::list< const CandDaughterType * > | CDL2STLlist (const CandHandle &handle) |
| Convert a Candidate's Daughter list to an STL list of pointers to given candidate handle type. | |
| template<class CandDaughterType> | |
| std::list< CandDaughterType * > | CDL2STLlist (CandHandle &handle) |
| nonconst version: | |
| Bool_t | IsGoodFDData (const NtpStRecord *st) |
| bool | dump_mom (const MomNavigator *, std::ostream &os) |
| Dump the contents of mom ot give ostream. | |
| bool | dump_cand (const CandHandle *ch, std::ostream &os, std::string prefix="", int recurse_depth=1, int max_daughters=5) |
| const CandHeader * | GetCandHeader (const MomNavigator *mom) |
| Return the CandHeader from mom. | |
| template<class CandType> | |
| CandType * | GetCandidate (const MomNavigator *mom, const char *cand_type=0, const char *cand_name=0) |
| Pull candidate of given name and type out of mom. Return 0 if fail. | |
| void | GetDetectorBinsZ (UgliGeomHandle ugh, int &nbins, double &min, double &max) |
| Return number of bins and min/max in z to let one create integral binning based on z position of scintilator planes. | |
| void | GetDetectorBinsUV (UgliGeomHandle ugh, PlaneView::EPlaneView view, int &nbins, double &min, double &max) |
| Return number of bins and min/max in U or V to let one create integral binning based on z position of scintilator strips. In general the two views give different results (NearDet). | |
| DetectorType::Detector_t | GetDetectorType (const MomNavigator &mom) |
| Returns the type of detector associated with the data in the given Mom. | |
| template<class BlockType> | |
| std::vector< const BlockType * > | GetRawBlocks (const MomNavigator *mom) |
| Pull RawData blocks out of Mom. | |
| template<class BlockType> | |
| const BlockType * | GetRawBlock (const MomNavigator *mom) |
| template<class HeaderType> | |
| const HeaderType * | GetRawHeader (const MomNavigator *mom) |
| Pull out the RawHeader from Mom. | |
| template<class RecordType> | |
| std::vector< RecordType * > | GetRecords (MomNavigator *mom) |
| Pull out records from Mom. | |
| template<class RecordType> | |
| std::vector< RecordType * > | GetRecords (const MomNavigator *mom) |
| bool | GetRunSnarlEvent (const MomNavigator *mom, int &run, int &snarl, int &event) |
| Return run, snarl and event. | |
| const Registry * | GetTempTags (const TObject *record) |
| Return a temptags Registry for a MINOS record without requiring the user to handle the two disparate inheritance hierarchies. | |
| std::string | GetTempTagString (const TObject *record, std::string key) |
| Return a string value from a MINOS record temptags Registry; if the key doesn't exist return nonsense value. Works only for string type keys. | |
| UgliGeomHandle | GetUgliGeomHandle (const MomNavigator *mom) |
| Try to produce an UgliGeomHandle from data in mom. | |
| std::vector< VldContext > | GetVldContext (const MomNavigator *mom, const char *filter=0) |
| Return a vector of unique VldContexts from the records in mom. Optional character string holds a comma separated list of class names to use to filter from what records the VldContexts are taken. The string either lists an inclusive set, or if the first character is a '!', and exclusive set. If not set, all records will be considered. | |
|
||||||||||
|
nonconst version:
Definition at line 160 of file CDL2STL.h. 00161 {
00162 typedef std::list<CandDaughterType*> dvec_t;
00163 dvec_t dv;
00164 typedef std::back_insert_iterator<dvec_t> dv_inserter;
00165 dv_inserter dvi(dv);
00166 DataUtil::CDL2STL<dv_inserter, CandDaughterType>(handle,dvi);
00167 return dv;
00168 }
|
|
||||||||||
|
non const
Definition at line 127 of file CDL2STL.h. 00128 {
00129 typedef std::vector<CandDaughterType*> dvec_t;
00130 dvec_t dv;
00131 typedef std::back_insert_iterator<dvec_t> dv_inserter;
00132
00133 dv_inserter dvi(dv);
00134 DataUtil::CDL2STL<dv_inserter, CandDaughterType>(handle,dvi);
00135 return dv;
00136 }
|
|
||||||||||||||||||||||||
|
Definition at line 22 of file DumpMom.cxx. References Form(), CandHandle::GetDaughterIterator(), CandHandle::GetName(), CandHandle::GetNDaughters(), and CandHandle::GetTitle(). Referenced by dump_mom(). 00027 {
00028 // Add name and title if it's a CandHandle.
00029 if(ch) {
00030 os << prefix
00031 << Form("%s \t\"%s\" %s",ch->ClassName(),ch->GetName(), ch->GetTitle())
00032 << std::endl;
00033 int n = ch->GetNDaughters();
00034 if( max_daughters < n ) n = max_daughters;
00035 if( recurse_depth <=0) n = 0;
00036 if(n > 0) {
00037 TIter iter = ch->GetDaughterIterator();
00038 for(int i=0;i<n;i++) {
00039 const CandHandle* next = dynamic_cast<const CandHandle*>(iter.Next());
00040 if(next)
00041 if(! next->InheritsFrom("CandDigitHandle") )
00042 dump_cand(next,
00043 os,
00044 prefix+" ",
00045 recurse_depth-1,
00046 max_daughters);
00047
00048 }
00049 }
00050 if(ch->GetNDaughters() > 0) {
00051 os << prefix << ".. Total daughters:" << ch->GetNDaughters() << endl;
00052 }
00053
00054 return true;
00055 }
00056 return false;
00057 }
|
|
||||||||||
|
Definition at line 65 of file GetRawBlock.h. 00066 {
00067 std::vector<const BlockType*> v = GetRawBlocks<BlockType>(mom);
00068 if(v.size()>0) return v[0];
00069 else return NULL;
00070 }
|
|
||||||||||
|
Definition at line 53 of file GetRecords.h. 00054 {
00055 return GetRecords<RecordType>(const_cast<MomNavigator*>(mom));
00056 }
|
|
|
Definition at line 12 of file DataQualDB.cxx. References abs(), NtpSRDataQuality::cratemask, NtpStRecord::dataquality, VldContext::GetDetector(), RecRecordImp< T >::GetHeader(), HvStatusFinder::GetHvStatus(), SpillServerMonFinder::GetNearestSpill(), VldTimeStamp::GetSec(), VldContext::GetSimFlag(), SpillServerMon::GetSpillTime(), SpillServerMon::GetSpillTimeError(), VldContext::GetTimeStamp(), RecHeader::GetVldContext(), HvStatus::Good(), SpillServerMonFinder::Instance(), HvStatusFinder::Instance(), and CoilTools::IsOK(). Referenced by ANtpEventInfoAna::Analyze(), MadTVAnalysis::CreatePAN(), MadPIDAnalysis::CreatePAN(), NuExtraction::ExtractDataQuality(), ANtpInfoObjectFiller::FillHeaderInformation(), and Anp::FillHeader::Run(). 00012 {
00013
00014
00015 // only for FD data
00016
00017 const RecCandHeader* Header = &(st->GetHeader());
00018 VldContext cx = Header->GetVldContext();
00019
00020 if(cx.GetSimFlag()==1 && cx.GetDetector()==2) {
00021
00022
00023 const NtpSRDataQuality *ntpDataQual;
00024 ntpDataQual = &(st->dataquality);
00025
00026 Int_t hvstatus=1;
00027 Int_t coilstatus=1;
00028 Int_t spillstatus=1;
00029 Int_t cratemask=0;
00030
00031 // number of crates enabled
00032
00033 cratemask=ntpDataQual->cratemask;
00034
00035
00036 // check HV status within 60 secs of snarl
00037
00038 HvStatus::HvStatus_t hv_ok =
00039 HvStatusFinder::Instance().GetHvStatus(cx,60,1);
00040
00041 // get spillserver monitoring block for this snarl
00042
00043 SpillServerMonFinder& smon=SpillServerMonFinder::Instance();
00044 const SpillServerMon& spill_near=smon.GetNearestSpill(cx);
00045 VldTimeStamp dt=spill_near.GetSpillTime()-cx.GetTimeStamp();
00046
00047 Int_t dt_sec=abs(dt.GetSec());
00048
00049 // get GPS worst case uncertainty (nsec)
00050
00051 Int_t gps_error=spill_near.GetSpillTimeError();
00052
00053 // check coil status
00054
00055 Bool_t coil_ok=CoilTools::IsOK(cx);
00056
00057
00058 if(!HvStatus::Good(hv_ok)) hvstatus=0; // bad hv
00059 if(!coil_ok) coilstatus=0; // bad coil
00060 if (dt_sec<360 && gps_error>1000) spillstatus=0; // bad GPS within 5 mins
00061
00062 // if hv, coil or spill status is bad, or some crates are off - return false
00063
00064 if (hvstatus==0 || coilstatus==0 || spillstatus==0 || cratemask!=16) return false;
00065
00066 }
00067
00068
00069 return true;
00070
00071 }
|
1.3.9.1