1 #ifndef EVENTFILTER_UTILTIES_PLUGINS_EVFDAQDIRECTOR 2 #define EVENTFILTER_UTILTIES_PLUGINS_EVFDAQDIRECTOR 36 class PathsAndConsumesOfModulesBase;
77 std::string getInputJsonFilePath(
const unsigned int ls,
const unsigned int index)
const;
78 std::string getRawFilePath(
const unsigned int ls,
const unsigned int index)
const;
79 std::string getOpenRawFilePath(
const unsigned int ls,
const unsigned int index)
const;
80 std::string getOpenInputJsonFilePath(
const unsigned int ls,
const unsigned int index)
const;
89 std::string getOpenProtocolBufferHistogramFilePath(
const unsigned int ls,
std::string const& stream)
const;
91 std::string getMergedProtocolBufferHistogramFilePath(
const unsigned int ls,
std::string const& stream)
const;
95 std::string getEoLSFilePathOnBU(
const unsigned int ls)
const;
96 std::string getEoLSFilePathOnFU(
const unsigned int ls)
const;
97 std::string getBoLSFilePathOnFU(
const unsigned int ls)
const;
102 void removeFile(
unsigned int ls,
unsigned int index);
106 void tryInitializeFuLockFile();
108 FILE * maybeCreateAndLockFileHeadForStream(
unsigned int ls,
std::string &stream);
109 void unlockAndCloseMergeStream();
111 void unlockInitLock();
117 void unlockFULocal();
119 void unlockFULocal2();
120 void createRunOpendirMaybe();
121 void createProcessingNotificationMaybe()
const;
124 fileDeleteLockPtr_=fileDeleteLock;
125 filesToDeletePtr_ = filesToDelete;
138 bool bumpFile(
unsigned int& ls,
unsigned int& index,
std::string& nextFile, uint32_t& fsize,
int maxLS);
140 std::string inputFileNameStem(
const unsigned int ls,
const unsigned int index)
const;
185 struct flock bu_w_flk;
186 struct flock bu_r_flk;
187 struct flock bu_w_fulk;
188 struct flock bu_r_fulk;
189 struct flock fu_rw_flk;
190 struct flock fu_rw_fulk;
191 struct flock data_rw_flk;
192 struct flock data_rw_fulk;
200 int currentFileIndex_ = -1;
203 std::list<std::pair<int,InputFile*>> *filesToDeletePtr_ =
nullptr;
205 pthread_mutex_t init_lock_ = PTHREAD_MUTEX_INITIALIZER;
207 unsigned int nStreams_=0;
208 unsigned int nThreads_=0;
210 bool readEolsDefinition_ =
true;
211 unsigned int eolsNFilesIndex_ = 1;
214 unsigned int stop_ls_override_ = 0;
std::string & buBaseRunDir()
FILE * bu_t_monitor_stream
std::vector< int > streamFileTracker_
std::vector< int > * getStreamFileTracker()
def create(alignables, pedeDump, additionalData, outputFile, config)
static boost::mutex mutex
std::shared_ptr< Json::Value > transferSystemJson_
std::map< std::string, std::string > mergeTypeMap_
bool isSingleStreamThread()
unsigned long previousFileSize_
bool microMergeDisabled() const
void overrideRunNumber(unsigned int run)
std::string hltSourceDirectory_
std::string mergeTypePset_
void updateFileIndex(int const &fileIndex)
bool outputAdler32Recheck_
bool outputAdler32Recheck() const
void setDeleteTracking(std::mutex *fileDeleteLock, std::list< std::pair< int, InputFile * >> *filesToDelete)
std::string stopFilePath_
std::string findCurrentRunDir()
std::string selectedTransferMode_
std::string & buBaseRunOpenDir()
JSON (JavaScript Object Notation).
std::string eorFileName(const unsigned int run)
std::string stopFilePathPid_
bool emptyLumisectionMode_
std::string & baseRunDir()
unsigned long long uint64_t
FILE * bu_w_monitor_stream
static const std::vector< std::string > MergeTypeNames_
unsigned int getRunNumber() const
bool emptyLumisectionMode() const
std::string getRunOpenDirPath() const
void setFMS(evf::FastMonitoringService *fms)
unsigned int fuLockPollInterval_
std::string eolsFileName(const unsigned int run, const unsigned int ls)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run
std::string bu_run_open_dir_