ATLAS Offline Software
|
#include <TTileTripReader.h>
Public Types | |
enum | Verbosity { Default =0, Debug =1 } |
Public Member Functions | |
TTileTripReader (const char *name="TTileTripReader") | |
virtual | ~TTileTripReader () |
TTileTripReader (const TTileTripReader &)=delete | |
TTileTripReader & | operator= (const TTileTripReader &)=delete |
const char * | getName () const |
Get the name of the class instance. More... | |
const asg::AcceptInfo & | getAcceptInfo () const |
asg::AcceptData | accept (int run, int lbn, unsigned int event=0, double eta=-99.9, double phi=-99.9, int tileError=0, int tileFlags=0) |
double | areaTripFraction (int run, int lbn, double eta, double phi, double dR) |
float | calculate (int run, int lbn, double eta, double phi, double dR, int tileError=0, int tileFlags=0) |
bool | checkEtaPhi (int run, int lbn, double eta, double phi) |
bool | checkEvent (unsigned int run, unsigned int lbn, unsigned int event) |
bool | checkExtendedEtaPhi (int run, int lbn, double eta, double phi, double delEta, double delPhi) |
int | finalize () |
std::vector< TripRegion > | getEtaPhi (int run, int lbn, bool force=false) |
int | initialize () |
void | memLoadTripFile () |
closes the ability to add more trip files to the chain and loads the current TChain into memory as a TTree. More... | |
TripRegion | partModToEtaPhi (int part, int mod) |
void | readTileFlags (int run, int lbn, int tileError, int tileFlags) |
int | setTripFile (const char *file) |
void | setVerbosity (int v=Debug, std::ostream &stream=std::cout) |
Public Attributes | |
TripRegion | m_LBOffsets |
TripRegion | m_EBOffsets |
Private Member Functions | |
void | buildOffsets () |
Attempts to correct for improperly built trip list files. More... | |
int | findStartEntry (int run) |
void | setBadEventList () |
Fills the bad event map. More... | |
Private Attributes | |
std::string | m_name |
The name of the class instance. More... | |
asg::AcceptInfo | m_accept |
TTree * | m_trips |
TTree * | m_runMap |
int | m_mapRun |
int | m_Run |
int | m_FirstEntry |
int | m_currentRun |
int | m_currentLbn |
int | m_startEntry |
int | m_verbosity |
int | m_LastTileFlags |
std::map< unsigned int, std::map< unsigned short, unsigned int > > | m_badEvents |
std::vector< TripRegion > | m_currentTrips |
std::vector< int > | m_Offsets |
std::vector< char > * | m_Partition |
std::vector< char > * | m_Module |
int | m_LumiStart |
std::vector< int > * | m_LumiEnd |
std::ostream * | m_msglog |
bool | m_ChainsLoaded |
Definition at line 40 of file TTileTripReader.h.
Enumerator | |
---|---|
Default | |
Debug |
Definition at line 43 of file TTileTripReader.h.
Root::TTileTripReader::TTileTripReader | ( | const char * | name = "TTileTripReader" | ) |
Definition at line 28 of file TTileTripReader.cxx.
|
virtual |
|
delete |
asg::AcceptData Root::TTileTripReader::accept | ( | int | run, |
int | lbn, | ||
unsigned int | event = 0 , |
||
double | eta = -99.9 , |
||
double | phi = -99.9 , |
||
int | tileError = 0 , |
||
int | tileFlags = 0 |
||
) |
run | Run number |
lbn | Lumiblock number |
event | Event number |
eta | Eta position |
phi | Phi position |
tileError | the tileError value |
tileFlags | the tileFlags value |
Trip result is stored under "InTrip", event check is stored under "BadEvent"
Definition at line 63 of file TTileTripReader.cxx.
double Root::TTileTripReader::areaTripFraction | ( | int | run, |
int | lbn, | ||
double | eta, | ||
double | phi, | ||
double | dR | ||
) |
run | the run number |
lbn | the lumiblock number |
eta | the area central eta coordinate |
phi | the area central phi coordinate |
dR | the area size |
Definition at line 74 of file TTileTripReader.cxx.
|
private |
Attempts to correct for improperly built trip list files.
DEPRECIATED
Definition at line 104 of file TTileTripReader.cxx.
float Root::TTileTripReader::calculate | ( | int | run, |
int | lbn, | ||
double | eta, | ||
double | phi, | ||
double | dR, | ||
int | tileError = 0 , |
||
int | tileFlags = 0 |
||
) |
run | Run number |
lbn | Lumiblock number |
eta | Eta value of cone center |
phi | Phi value of cone center |
dR | Radius of the cone in (eta,phi) space |
tileError | the tileError value |
tileFlags | the tileFlags value |
Definition at line 99 of file TTileTripReader.cxx.
bool Root::TTileTripReader::checkEtaPhi | ( | int | run, |
int | lbn, | ||
double | eta, | ||
double | phi | ||
) |
run | the run number |
lbn | the lumiblock number |
eta | eta value to check |
phi | phi value to check |
Definition at line 147 of file TTileTripReader.cxx.
bool Root::TTileTripReader::checkEvent | ( | unsigned int | run, |
unsigned int | lbn, | ||
unsigned int | event | ||
) |
run | Run number |
lbn | Lumiblock number |
event | event number |
Checks against an internal map of 433 bad events
Definition at line 192 of file TTileTripReader.cxx.
bool Root::TTileTripReader::checkExtendedEtaPhi | ( | int | run, |
int | lbn, | ||
double | eta, | ||
double | phi, | ||
double | delEta, | ||
double | delPhi | ||
) |
run | the run number |
lbn | the lumiblock number |
eta | eta value to check |
phi | phi value to check |
delEta | extends each trip region checked by delEta on both sides |
delPhi | extends each trip region checked by delPhi on both sides |
Definition at line 224 of file TTileTripReader.cxx.
|
inline |
Definition at line 139 of file TTileTripReader.h.
|
private |
run | Run number |
Definition at line 250 of file TTileTripReader.cxx.
|
inline |
Definition at line 57 of file TTileTripReader.h.
vector< TripRegion > Root::TTileTripReader::getEtaPhi | ( | int | run, |
int | lbn, | ||
bool | force = false |
||
) |
run | the run number |
lbn | the lumiblock number |
force | Forces regenerating the trip list when the run and lbn haven't changed |
Definition at line 333 of file TTileTripReader.cxx.
|
inline |
int Root::TTileTripReader::initialize | ( | ) |
Definition at line 394 of file TTileTripReader.cxx.
void Root::TTileTripReader::memLoadTripFile | ( | ) |
closes the ability to add more trip files to the chain and loads the current TChain into memory as a TTree.
Definition at line 401 of file TTileTripReader.cxx.
|
delete |
TripRegion Root::TTileTripReader::partModToEtaPhi | ( | int | part, |
int | mod | ||
) |
part | tile partition: LBA=0, LBC=1, EBA=2, EBC=3 |
mod | tile module. Note: starts at 0, not 1 |
Definition at line 437 of file TTileTripReader.cxx.
void Root::TTileTripReader::readTileFlags | ( | int | run, |
int | lbn, | ||
int | tileError, | ||
int | tileFlags | ||
) |
run | the run number |
lbn | the lumiblock number |
tileError | the tileError value |
tileFlags | the tileFlags value |
Uses the tileError and tileFlags values to improve the set of trip regions in the event.
Definition at line 495 of file TTileTripReader.cxx.
|
private |
int Root::TTileTripReader::setTripFile | ( | const char * | file | ) |
file | the file path to the trip list root file |
The trip reader uses TChain to read the TTrees inside the root file.
You can load multiple files by using wildcards.
Definition at line 606 of file TTileTripReader.cxx.
|
inline |
Definition at line 188 of file TTileTripReader.h.
|
private |
Definition at line 217 of file TTileTripReader.h.
|
private |
Definition at line 229 of file TTileTripReader.h.
|
private |
Definition at line 237 of file TTileTripReader.h.
|
private |
Definition at line 225 of file TTileTripReader.h.
|
private |
Definition at line 224 of file TTileTripReader.h.
|
private |
Definition at line 230 of file TTileTripReader.h.
TripRegion Root::TTileTripReader::m_EBOffsets |
Definition at line 194 of file TTileTripReader.h.
|
private |
Definition at line 223 of file TTileTripReader.h.
|
private |
Definition at line 228 of file TTileTripReader.h.
TripRegion Root::TTileTripReader::m_LBOffsets |
Definition at line 193 of file TTileTripReader.h.
|
private |
Definition at line 235 of file TTileTripReader.h.
|
private |
Definition at line 234 of file TTileTripReader.h.
|
private |
Definition at line 221 of file TTileTripReader.h.
|
private |
Definition at line 233 of file TTileTripReader.h.
|
private |
Definition at line 236 of file TTileTripReader.h.
|
private |
The name of the class instance.
Definition at line 215 of file TTileTripReader.h.
|
private |
Definition at line 231 of file TTileTripReader.h.
|
private |
Definition at line 232 of file TTileTripReader.h.
|
private |
Definition at line 222 of file TTileTripReader.h.
|
private |
Definition at line 220 of file TTileTripReader.h.
|
private |
Definition at line 226 of file TTileTripReader.h.
|
private |
Definition at line 219 of file TTileTripReader.h.
|
private |
Definition at line 227 of file TTileTripReader.h.