 |
ATLAS Offline Software
|
Go to the documentation of this file.
29 setSV0_significance3D )
33 sv0TPAcc1(
"SV0_TrackParticles" );
35 sv0TPAcc2(
"SV0_TrackParticleLinks" );
39 if( sv0TPAcc1.isAvailable( *
this ) ) {
40 return sv0TPAcc1( *
this );
42 return sv0TPAcc2( *
this );
47 sv0TPAcc2( *
this ) =
value;
53 if( ( ! sv0TPAcc1.isAvailable( *
this ) ) &&
58 if( tpl.size() <=
i ) {
69 if( ( ! sv0TPAcc1.isAvailable( *
this ) ) &&
79 sv0TPAcc2( *this ).push_back( link );
85 sv0TPAcc2( *this ).clear();
102 sv1TPAcc1(
"SV1_TrackParticles" );
104 sv1TPAcc2(
"SV1_TrackParticleLinks" );
108 if( sv1TPAcc1.isAvailable( *
this ) ) {
109 return sv1TPAcc1( *
this );
111 return sv1TPAcc2( *
this );
116 sv1TPAcc2( *
this ) =
value;
122 if( ( ! sv1TPAcc1.isAvailable( *
this ) ) &&
123 ( ! sv1TPAcc2.isAvailable( *
this ) ) ) {
127 if( tpl.size() <=
i ) {
133 return *( tpl[
i ] );
138 if( ( ! sv1TPAcc1.isAvailable( *
this ) ) &&
139 ( ! sv1TPAcc2.isAvailable( *
this ) ) ) {
148 sv1TPAcc2( *this ).push_back( link );
154 sv1TPAcc2( *this ).clear();
175 ip2dTPAcc1( "IP2D_TrackParticles" );
177 ip2dTPAcc2( "IP2D_TrackParticleLinks" );
181 if( ip2dTPAcc1.isAvailable( *
this ) ) {
182 return ip2dTPAcc1( *
this );
184 return ip2dTPAcc2( *
this );
189 ip2dTPAcc2( *
this ) =
value;
196 if( ( ! ip2dTPAcc1.isAvailable( *
this ) ) &&
201 if( tpl.size() <=
i ) {
207 return *( tpl[
i ] );
212 if( ( ! ip2dTPAcc1.isAvailable( *
this ) ) &&
222 ip2dTPAcc2( *this ).push_back( link );
228 ip2dTPAcc2( *this ).clear();
246 ip3dTPAcc1(
"IP3D_TrackParticles" );
248 ip3dTPAcc2(
"IP3D_TrackParticleLinks" );
252 if( ip3dTPAcc1.isAvailable( *
this ) ) {
253 return ip3dTPAcc1( *
this );
255 return ip3dTPAcc2( *
this );
260 ip3dTPAcc2( *
this ) =
value;
267 if( ( ! ip3dTPAcc1.isAvailable( *
this ) ) &&
268 ( ! ip3dTPAcc2.isAvailable( *
this ) ) ) {
272 if( tpl.size() <=
i ) {
278 return *( tpl[
i ] );
283 if( ( ! ip3dTPAcc1.isAvailable( *
this ) ) &&
284 ( ! ip3dTPAcc2.isAvailable( *
this ) ) ) {
293 ip3dTPAcc2( *this ).push_back( link );
299 ip3dTPAcc2( *this ).clear();
325 const std::
string& bckgd )
const {
329 bool puvalid = variable<float>(taggername, bckgd ,
pu);
330 bool pbvalid = variable<float>(taggername,
signal,
pb);
331 if( !pbvalid || !puvalid )
return false;
332 if(
"IP3D"==taggername&&
pb==1.&&
pu==1.e9) {
355 bool output = variable<float>(taggername,
"pu",
tmp);
362 bool output = variable<float>(taggername,
"pb",
tmp);
369 bool output = variable<float>(taggername,
"pc",
tmp);
376 bool output = variable<float>(taggername,
"ptau",
tmp);
383 bool output = variable<float>(taggername,
"discriminant",
tmp);
393 setMV1_discriminant )
404 if( ! acc )
return false;
405 if( ! acc->isAvailable( *
this ) )
return false;
406 value = ( *acc )( *this );
413 if( ! acc )
return false;
414 if( ! acc->isAvailable( *
this ) )
return false;
415 value = ( *acc )( *this );
422 if( ! acc )
return false;
423 if( !
acc->isAvailable( *
this ) )
return false;
424 value = ( *acc )( *this );
432 if( ! acc )
return false;
433 if( !
acc->isAvailable( *
this ) )
return false;
434 value = ( *acc )( *this );
442 if( ! acc )
return false;
443 if( !
acc->isAvailable( *
this ) )
return false;
444 value = ( *acc )( *this );
452 if( ! acc )
return false;
453 if( !
acc->isAvailable( *
this ) )
return false;
454 value = ( *acc )( *this );
462 if( ! acc )
return false;
463 if( !
acc->isAvailable( *
this ) )
return false;
464 value = ( *acc )( *this );
472 ( *acc )( *this ) =
value;
480 ( *acc )( *this ) =
value;
497 ( *acc )( *this ) =
value;
506 ( *acc )( *this ) =
value;
515 ( *acc )( *this ) =
value;
524 ( *acc )( *this ) =
value;
void clearIP2D_TrackParticleLinks()
clear vector of IP2D TrackParticle ElementLinks
size_t nIP2D_TrackParticles() const
Get the number of IP2D TrackParticles associated with the object.
bool ptau(const std::string &taggername, double &value) const
const TPELVec_t & IP2D_TrackParticleLinks() const
get vector of IP2D TrackParticle ElementLinks
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
const SG::AuxElement::Accessor< float > * taggerInfoAccessorV1float(BTagInfo info)
const SG::AuxElement::Accessor< std::string > * taggerInfoAccessorV1string(BTagInfo info)
const TPELVec_t & IP3D_TrackParticleLinks() const
get vector of IP3D TrackParticle ElementLinks
const SG::AuxElement::Accessor< std::vector< bool > > * taggerInfoAccessorV1vectorOfBools(BTagInfo info)
bool taggerInfo(int &value, BTagInfo info) const
get taggers information (int)
const TPELVec_t & SV0_TrackParticleLinks() const
get vector of SV0 TrackParticle ElementLinks
float calcLLR(double num, double den) const
const xAOD::TrackParticle * IP3D_TrackParticle(size_t i) const
Get one particular IP3D TrackParticle as a bare pointer.
const xAOD::TrackParticle * IP2D_TrackParticle(size_t i) const
Get one particular IP2D TrackParticle as a bare pointer.
void clearIP3D_TrackParticleLinks()
clear vector of IP3D TrackParticle ElementLinks
Helper class to provide type-safe access to aux data.
std::vector< ElementLink< xAOD::TrackParticleContainer > > TPELVec_t
A helper typedef.
void addIP2D_TrackParticle(const ElementLink< xAOD::TrackParticleContainer > &link)
add a TrackParticle ElementLink for IP2D
const SG::AuxElement::Accessor< std::vector< int > > * taggerInfoAccessorV1vectorOfInts(BTagInfo info)
size_t nSV1_TrackParticles() const
Get the number of SV1 TrackParticles associated with the object.
void setIP3D_TrackParticleLinks(const TPELVec_t &value)
set vector of IP3D TrackParticle ElementLinks
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
const SG::AuxElement::Accessor< int > * taggerInfoAccessorV1int(BTagInfo info)
Helper function for managing BTagging Accessor objects.
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
const SG::AuxElement::Accessor< uint8_t > * taggerInfoAccessorV1uint8_t(BTagInfo info)
bool const RAWDATA *ch2 const
void setDynTPELName(const std::string &taggername, const std::string &variablename)
XAOD_AUXDATA_DEPRECATED bool isAvailable(const std::string &name, const std::string &clsname="") const
Check if an aux variable is available for reading.
void addSV1_TrackParticle(const ElementLink< xAOD::TrackParticleContainer > &link)
add a TrackParticle ElementLink for SV1
void setSV0_TrackParticleLinks(const TPELVec_t &value)
set vector of SV0 TrackParticle ElementLinks
SG::AuxElement::Accessor< T > Accessor
void setIP2D_TrackParticleLinks(const TPELVec_t &value)
set vector of IP2D TrackParticle ElementLinks
bool pc(const std::string &taggername, double &value) const
void clearSV1_TrackParticleLinks()
clear vector of SV1 TrackParticle ElementLinks
BTagging_v1()
Default constructor.
const TPELVec_t & SV1_TrackParticleLinks() const
get vector of SV1 TrackParticle ElementLinks
void setDynBTagVxELName(const std::string &taggername, const std::string &variablename)
const xAOD::TrackParticle * SV0_TrackParticle(size_t i) const
Get one particular SV0 TrackParticle as a bare pointer.
const SG::AuxElement::Accessor< std::vector< float > > * taggerInfoAccessorV1vectorOfFloats(BTagInfo info)
bool pu(const std::string &taggername, double &value) const
void addSV0_TrackParticle(const ElementLink< xAOD::TrackParticleContainer > &link)
add a TrackParticle ElementLink for SV0
void clearSV0_TrackParticleLinks()
clear vector of SV0 TrackParticle ElementLinks
const xAOD::TrackParticle * SV1_TrackParticle(size_t i) const
Get one particular SV1 TrackParticle as a bare pointer.
size_t nSV0_TrackParticles() const
Get the number of SV0 TrackParticles associated with the object.
size_t nIP3D_TrackParticles() const
Get the number of IP3D TrackParticles associated with the object.
void setSV1_TrackParticleLinks(const TPELVec_t &value)
set vector of SV1 TrackParticle ElementLinks
void addIP3D_TrackParticle(const ElementLink< xAOD::TrackParticleContainer > &link)
add a TrackParticle ElementLink for IP3D
Class describing a TrackParticle.
void setTaggerInfo(int value, BTagInfo info)
set taggers information (int)
setBGCode setTAP setLVL2ErrorBits bool
void setDynVxELName(const std::string &taggername, const std::string &variablename)
bool MVx_discriminant(const std::string &taggername, double &value) const
bool pb(const std::string &taggername, double &value) const