20 #include "AliCDBMetaData.h"
24 #include "TObjString.h"
66 const Int_t kSystem = AliMUONPreprocessor::kDAQ;
67 const char* kId =
"OCCUPANCY";
72 Master()->
Log(Form(
"Reading occupancy file for Run %d startTime %u endTime %u",
73 run,startTime,endTime));
80 while ( ( o = static_cast<TObjString*>(next()) ) )
82 TString fileName(
Master()->GetFile(kSystem,kId,o->GetName()));
83 Int_t ok =
ReadFile(fileName.Data());
94 Master()->
Log(
"Failed to read any occupancy");
119 AliCDBMetaData metaData;
120 metaData.SetBeamPeriod(0);
121 metaData.SetResponsible(
"MUON TRK");
122 TString
comment(
"Computed by AliMUONOccupancySubprocessor $Id$");
123 comment.ReplaceAll(
"$",
"");
124 metaData.SetComment(comment.Data());
126 Bool_t validToInfinity = kFALSE;
129 return ( result != kTRUE );
133 Master()->
Log(
"No occupancy map to store");
146 TString sFilename(gSystem->ExpandPathName(filename));
148 Master()->
Log(Form(
"Reading %s",sFilename.Data()));
155 Master()->
Log(Form(
"Could not open %s",sFilename.Data()));
static Int_t ReadOccupancy(const char *filename, AliMUONVStore &occupancyMap)
AliMUONPreprocessor * Master() const
Return the pointer to our master.
UInt_t Process(TMap *dcsAliasMap)
Process this sub-task.
virtual void Print(Option_t *wildcard="") const
Print all objects whose name matches wildcard.
virtual Int_t GetSize() const =0
The number of objects stored.
AliMUONVStore * fOccupancyMap
! Occupancy map (at the manu level) for the MUON TRK
Base class for a shuttle sub-task for MUON (either TRK or TRG)
TTimeStamp startTime(2009, 8, 7, 0, 0, 0)
Bool_t Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
void Print(Option_t *opt="") const
void Occupancy(ostream &outfile)
virtual ~AliMUONOccupancySubprocessor()
void Log(const char *message)
Publish AliPreprocessor::Log function.
Basic implementation of AliMUONVStore container using AliMpExMap internally.
TList * GetFileSources(Int_t system, const char *id)
Publish AliPreprocessor::GetFileSources function.
Bool_t Store(const char *pathLevel2, const char *pathLevel3, TObject *object, AliCDBMetaData *metaData, Int_t validityStart=0, Bool_t validityInfinite=kFALSE)
Publish AliPreprocessor::Store function.
Implementation of AliMUONVSubprocessor for MUON TRK occupancy.
Shuttle preprocessor for MUON subsystems (TRK and TRG)
Int_t ReadFile(const char *filename)
file is not of the expected format