Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
LBTMutex.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file LBTMutex.cc
1
#include <vector>
2
#include <string>
3
#include <iostream>
4
#include <memory>
5
6
#include "
JetScapeTask.h
"
7
#include "
LBTMutex.h
"
8
9
using namespace
std;
10
using
std::shared_ptr;
11
using namespace
Jetscape;
12
13
LBTMutex::LBTMutex
() {}
14
15
LBTMutex::~LBTMutex
() {}
16
17
bool
LBTMutex::CheckMutex
(vector<
shared_ptr<JetScapeTask>
> modules) {
18
bool
isMartini =
false
;
19
bool
isAdscft =
false
;
20
21
for
(
auto
module : modules) {
22
string
name
= module->GetId();
23
if
(!name.compare(
"Martini"
))
24
isMartini =
true
;
25
if
(!name.compare(
"AdSCFT"
))
26
isAdscft =
true
;
27
}
28
29
if
(isMartini || isAdscft)
30
return
false
;
31
return
true
;
32
}
JETSCAPE
blob
main
src
jet
LBTMutex.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:25
using
1.8.2 with
sPHENIX GitHub integration