X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ANALYSIS%2FAliXMLCollection.h;h=60cd82624efda25e12f5c90dd86abe003c140d80;hb=268bb76f409f104d0d98611fc263a611ba6d7428;hp=8e1c303ef57cdcf68bd065ad856c2c8743cf23f1;hpb=26f071d897e0bd8a42334923ae896e9185258d13;p=u%2Fmrichter%2FAliRoot.git diff --git a/ANALYSIS/AliXMLCollection.h b/ANALYSIS/AliXMLCollection.h index 8e1c303ef57..60cd82624ef 100644 --- a/ANALYSIS/AliXMLCollection.h +++ b/ANALYSIS/AliXMLCollection.h @@ -22,6 +22,7 @@ class TMap; class TIter; class TEntryList; +using std::ofstream; //___________________________________________________________________________ class AliXMLCollection : public TGridCollection { @@ -34,7 +35,9 @@ class AliXMLCollection : public TGridCollection { //____________________________________________________// Bool_t WriteHeader(); + Bool_t WriteSummary(Int_t aTotal, Int_t aAccepted, Int_t aRejRun, Int_t aRejLHC, Int_t aRejDet, Int_t aRejEvt); Bool_t WriteBody(Int_t counter, const char* guid, const char *lfn, const char *turl, TEntryList *fEntryList); + Bool_t WriteBody(Int_t counter, const char* guid, const char *lfn, const char *turl, TEntryList *fEntryListm, Int_t accSum, Int_t rejSum); Bool_t Export(); void SetCollectionName(const char* name) {fCollectionName = name;} @@ -49,8 +52,11 @@ class AliXMLCollection : public TGridCollection { const char *GetTURL(const char *name); const char *GetLFN(const char *name); const char *GetGUID(const char *name); + const char *GetCutSumm(); TEntryList *GetEventList(const char *filename) const; + TEntryList *GetEntryList(const char *filename) { return GetEventList(filename); } Bool_t OverlapCollection(TGridCollection * comparator); + Bool_t GetCollectionSummary(Int_t *aTot, Int_t *aAcc, Int_t *aRejRun, Int_t *aRejLHC, Int_t *aRejDet, Int_t *aRejEvt) const; static AliXMLCollection *Open(const char *localcollectionfile); @@ -64,6 +70,14 @@ class AliXMLCollection : public TGridCollection { TMap *fCurrent; // current event file map TString fCollectionName; //the name of the xml file ofstream fout; // The output stream + + // List summary information + Int_t fTotalEvents; // Total no. of events in collection + Int_t fAcceptedEvents; // No. of accepted events in collection + Int_t fRejectedRun; // No. of events rejected by Run cuts + Int_t fRejectedLHC; // No. of events rejected by LHC cuts + Int_t fRejectedDet; // No. of events rejected by Detector cuts + Int_t fRejectedEvt; // No. of events rejected by Event cuts AliXMLCollection & operator=(const AliXMLCollection & ) {return *this;}